[QScintilla] Re: (Q)Scintilla lexer extension

Phil Thompson phil at riverbankcomputing.com
Thu Nov 13 10:13:27 GMT 2008


On Wed, 12 Nov 2008 11:48:39 +0100, Detlev Offenbach
<detlev at die-offenbachs.de> wrote:
> Hi,
> 
> how can a (Q)Scintilla lexer be entended to provide
additional/alternative 
> syntax highlighting (e.g. for Django)?

There is no such thing as a QScintilla lexer. The QScintilla lexer classes
are just containers for the configuration of the Scintilla lexers.

The Scintilla lexers are monolithic lumps of code. There is no attempt at a
nice class hierachy that allows code to be shared between lexers, or to
allow lexers to be easily extended. Any code that is similar between lexers
is probably because the author hacked together a new lexer from an existing
one.

So the operative word here is "hack".

Phil


More information about the QScintilla mailing list