Eric Promislow:
The SCN_MODIFIED event works if getting the list of decorations at a range (which might be one-byte long) would be efficient.
Retrieving the value at a particular position requires a binary search of the run starts sequence. If a separate RunStyles is used for each type of decoration then this must be repeated for each type. Since each run has a 32 bit integer value, all of the decorations could be encoded into a single RunStyles but this is harder to process in other ways such as finding the end of a particular type and becomes inefficient when multiple denser decorations are combined. Determining the set of bits that are set for some portion of a range could be made reasonably efficient although I hadn't thought of that as an API. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
