Posted 20 years ago
by @hotmail.com
![Avatar](https://secure.gravatar.com/avatar/2d9ea2516ad3c61c44bae3b8777afc8e.jpg?s=64&d=identicon&r=g)
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
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