Matt Cheddar:

If i do the processing in a timer, how can i be sure that the styling has
been performed so that the update doesn't take place after the text has
been modified but before the style data has been updated?
Maybe i should set a flag in SCN_STYLENEEDED and clear it in
SCN_MODIFIED but that wouldn't work if i switch from
SCLEX_CONTAINER to one of the included lexers though.

  When you receive the timer/idle, you can discover what has been
styled from the SCI_GETENDSTYLED message. Process all the text in the
changed range up to the end of styling and remove the processed text
from the changed range. You won't necessarily see styling for all of
the text in the buffer as it is often styled only to the last line
displayed.

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to