Anthony wrote:
I have written some code in PureBasic that inserts characters into
Scintilla editor with styling, here is the code:
[snip]
The text will display initially with the styling correctly displayed.
The problem is that if the user does an undo - then a redo, the
styling information is lost - it goes back to style 0!
Is the styling info not saved with undo and not restored with redo?
No, and that is by design.
Styling information is volatile, and eg. if you move a piece of code in
a different context, it could be styled differently.
Is it possible to have styling information restored on a redo?
Just force a restyling. It is quite fast nowadays.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest