Posted 20 years ago
by @hotmail.com
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