Neil Hodgson wrote:

   One thing to look into is what is happening to the EndStyled
cursor. When using indicators over the top of a lexed buffer, you
should restore the styling cursor after performing your indicator
setting. Something like:

es = GetEndStyled()
StartStyling(pos,INDIC0_MASK)
SetStyling(len,INDIC0_MASK)
StartStyling(es,31)

Excellent! Thanks, Neil - this was all I needed... my next question was going to be "how does this indicator stuff relate to lexers?" :)


This is is probably something which you (NH) *can't* see, because of your familiarity with most things Scintilla - but between the fact that others of us just sort of see lexing (syntax coloring) happening magically in the background (even after writing one), and the indicator discussion presenting that topic as if it exists in isolation, this is a *really* easy mistake to make. If you don't mind, I will add a few words about this to the "Indicators" section when I make the doc adjustment for SC_LASTSTEPINUNDOREDO. :)

Is there any reason not to do a get_style_at (the underscore look is from my OCaml binding for Scintilla, if you hadn't guessed) on the value returned by get_end_styled, and use *that* value on the final start_styling? Or would it be the char before that?

   I wouldn't worry about the performance of resetting style bits over
the whole document unless you measure it being a problem.

So in your estimation there is no real reason to go to the trouble I am to find the runs containing "indicator" styles and clearing them? Cool.


   This is a case where including the screenshots in the message is
worthwhile, but the 40K limit happens after the mail has been
uuencoded so occurs on smaller messages than may be expected. These
images can be compressed down to about 55% by using PNG format through
the PNGOUT compressor.
http://www.advsys.net/ken/utils.htm

Yup, if you use the "max" compression... if everyone speaks PNG, I am all for it. BTW, I have used IrfanView for years for this sort of thing.


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

Reply via email to