[QScintilla] XML and Python Lexer suggestions

Phil Thompson phil at riverbankcomputing.com
Fri Nov 14 13:43:09 GMT 2008


On Wed, 12 Nov 2008 22:43:28 +0000, Baz Walter <bazwal at ftml.net> wrote:
> hello
> 
> in earlier versions of scintilla, the xml lexer does not style cdata 
> sections inside script tags. scintilla 1.77 has introduced a property 
> 'lexer.xml.allow.scripts' to control this behaviour, and it would be 
> nice if a getter/setter for it could be added to qscintilla's xml lexer 
> class. unfortunately, the property is switched on (i.e. no styling) by 
> default, which (to my eye) looks like a bug when viewing xhtml documents 
> as xml. (is this one of the bugs referred to recently in qscintilla's 
> change history?)

The flag is the other way round and the fact that scripts aren't styled is
a bug. Fixed in tonight's snapshot.

A future version will allow you to disable the styling of scripts.

> the python lexer suggestion is a lot simpler: could 'as' be added to the 
> keyword list? (this is mainly for the new exceptions syntax in python
2.6)

Done.

Thanks,
Phil


More information about the QScintilla mailing list