Anthony: > 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!
Yes, this is deliberate. Saving styling with undo/redo was one of the major reasons the Windows RichEdit control was very difficult to use for automatically styled source code documents. Scintilla was written to avoid this behaviour. Scintilla normally styles text automatically through calling container code or one of the supplied lexers. > Is the styling info not saved with undo and not restored with redo? No. > Is it possible to have styling information restored on a redo? It should be possible to implement your own undo/redo code. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
