Armel Asselin:

> - 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 are drawn after (over) the text so can not change
background colour. SinkWorld (Scintilla 2.0) will have decorations
both under and over the text, but this requires that background
filling be performed separately from text drawing so the background
decoration can be slotted in between. Scintilla supports two modes:
single phase and two phase drawing and it is only in two phase drawing
that this would be possible.

> - I would like to pretty print some of the files (for example XML-like
> files) for which I can re-format the text but I would like to keep the
> original line endings as they were before pretty printing. Is there a way to
> have a special line ending character? with UTF8 we use could set a
> private-plane character without interfering with any thing?

   Scintilla doesn't even treat as line ends the Unicode characters
U+2028 (LS:Line Separator) or U+2029 (PS:Paragraph Separator) as they
are three bytes long in UTF-8 so are complex to handle as they are
inserted and deleted.

   It would be easier to perform your formatting by assuming that you
know the line end characters in the file (say LF) and could use the
other (CR) for your temporary line ends. You wouldn't be able to
insert a CR just before an LF as they would combine, but I expect this
won't be wanted.

   Neil

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

Reply via email to