Posted 15 years ago by @hotmail.com
Avatar
In sample program, language file is loaded by the following code:
projectPath = Path.GetFullPath(Path.GetDirectoryName(Application.ExecutablePath) + @"\..\..\");
languagePath = projectPath + @"Languages\";
// Load the XML language file
editor.LoadLanguageFromXml(languagePath + "ActiproSoftware.VBDotNet.xml", 0);

We would like to make ActiproSoftware.VBDotNet.xml language file as a resource file and load it when our program runs. Does SyntaxEditor support that? If yes, please tell me which function I can use to do it.

Thanks

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes you can do that... you just need to add the file as an embedded resource in your project and then you can get it using the Assembly.GetManifestResourceStream method. Check that out in the MSDN.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.