[QScintilla] Re: QScintilla feature request (minor change)

Phil Thompson phil at riverbankcomputing.com
Mon Nov 17 19:50:45 GMT 2008


On Mon, 17 Nov 2008 21:39:21 +0100, Detlev Offenbach
<detlev at die-offenbachs.de> wrote:
> Hi Phil,
> 
> can you please change line 2683 of qsciscintilla.cpp 
> ("SendScintilla(SCI_SETLEXERLANGUAGE, lex->lexer());") to read
> 
> 	if (qstrcmp(lex->lexer(), "container") == 0)
>         {
>             SendScintilla(SCI_SETLEXER, SCLEX_CONTAINER);
>         } else {
>             SendScintilla(SCI_SETLEXERLANGUAGE, lex->lexer());
>         }
> 
> That makes attaching a custom lexer much, much easier and works for me
over
> 
> here.

I'll add the requirement to the TODO list, but not that implementation. I'd
rather have an QsciLexerContainer class, maybe with extra stuff that would
make it easier to write custom lexers.

Phil


More information about the QScintilla mailing list