[QScintilla] Ask for document recoloring

Phil Thompson phil at riverbankcomputing.com
Fri Dec 28 22:42:53 GMT 2007


On Wednesday 26 December 2007, Xavier Noëlle wrote:
> Hi,
> I'm still writing a lexer, almost done, but I still have some (very
> normal) glitches. When I start a comment, as long as it's not
> finished, its color is different from the usual one. It helps to see
> unterminated comments, as well as unterminated strings.
> The problem is that, if a comment get closed, the unusual color  of
> its content should be turned into the normal comment color. For that,
> I would need it to be parsed again, or to explicitly tell the lexer to
> color it in a given way.
>
> How can I do this, with my little hands ? :-D Call explicitly my
> coloring method, with startPos set to where I want to start ?

You'll probably have more luck asking on the Scintilla list. Not many people 
on this list will be writing their own lexers.

Phil



More information about the QScintilla mailing list