Armel Asselin wrote:

- on particular portions of texts set a given background while using any of the standard lexers... could indicators do that? maybe with a new 'background' type which would override normal background of the style?

Indicators give you access to 1 - 3 at a time of extra predefined "styles" which can be used to hilite or draw attention to text which has already been fully styled by at current lexer.

The "trick" is that there are a limited number of style bits available; a lexer which uses the "normal" 5 bits for styling can indeed have 3 bits left for indicators... but a lexer which uses 7 bits has only 1 indicator bit available.

Indicators are more for adding graphical "decorations" to text, like boxes or squiggles... if all you really want are custom background colors, markers may do what you want - and are also independent of the current lexer's styling.

But do note a key difference: markers are applied at the *line* level, while indicators are applied at the *character* level.

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