Neil,

> I'm thinking of adding the capability to have a set of indicators
> that are not stored in the styling bytes but rather in a compact format
> similar to run length encoding. They may be called "Extended Indicators"
> or "Decorations". The implementation would be based on SinkWorld's
> RunStyles class. The existing indicator drawing code would
> be reused with the same styles available for each type.

Sounds excellent, the current system can be complicated to use and very
restrictive when using complicated lexers like the hypertext one.

As far as storage, I can't see a view with >32 indicators as anything
other than disastrous from a usability point of view so surely a 32-bit
field would be adequate?

I'm presuming lexers will be able to set decorations as well as making
them available via an API. In this case would it not be better to store
the state with the document, I don't think we currently lex multiple times
for multiple views?

Simon.

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

Reply via email to