[QScintilla] Ask for document recoloring

Xavier Noëlle gray2style at gmail.com
Wed Dec 26 10:07:24 GMT 2007


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 ?

Thanks in advance,

-- 
Xavier NOELLE


More information about the QScintilla mailing list