Custom Snippet Loading

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by NSXDavid
Avatar
Is there support for loading Snippets from streams, memory or some other place than the filesystem? Our application loads and saves data from a specialized repository rather than the local filesystem.

-- David

Comments (3)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes, there is an overload of LoadFromXml that accepts an CodeSnippet.XmlDocument. An overload of CodeSnippet.SaveToXml saves to an XmlDocument.


Actipro Software Support

Posted 13 years ago by NSXDavid
Avatar
So you load a file into a XMLDocument and then use that... but doesn't that lose the folder concept?
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Once you load a CodeSnippet, you can programmatically add it to a CodeSnippetFolder. You can even programmatically create CodeSnippets if you want and set up the properties you need from code.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.