Print

How to save/restore additional information about bookmarks, gutter, line styles, etc. of the SyntaxEdit control?

Saving and loading state of the SyntaxEdit control is performed using XML serialization. The usage of the XML format causes the entire state of the editor and all related components (text source and syntax parser) to be serialized/deserialized. You can use the following code:

syntaxEdit.SaveFile(FileName, ExportFormat.Xml);
syntaxEdit.LoadFile(FileName, ExportFormat.Xml);


Comment

No Very




Captcha Image