Philippe wrote:

I'm setting indicators to show errors in code. Then, before a new code
checking I need to "unset" the indicators.

To clear the indicators I am currently doing something like that:
current = SCI_GETENDSTYLED()
indicator = 0
mask = 1 << SCI_GETSTYLEBITS()
SCI_STARTSTYLING(0, mask+indicator)
SCI_SETSTYLING(textlength, 0)
SCI_STARTSTYLING(current, mask-1)

That is, I am re-styling all the text. It works but is it the more
efficient way to go?

I am in exactly the same position and Neil recommended the "reset all indicator bits in the buffer approach" - and it works well for me, with no perceptible "pause".

I use the full "text length" of the buffer, and INDICS_MASK (since this is being used only with my own lexer and I know the # of bits).

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to