Hi,
I asked this question before (
http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=1584#5613), and it worked fine. But now with the changes it's broke the code :S
I have tried to update it, but I haveAny help would be appreciated. Thanks!
I asked this question before (
http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=1584#5613), and it worked fine. But now with the changes it's broke the code :S
I have tried to update it, but I have
if (File.Exists(FileUtilities.GetAppPath() + "\\Syntax\\Dark Basic Professional.xml"))
{
DynamicSyntaxLanguage syn = ActiproSoftware.SyntaxEditor.Addons.Dynamic.DynamicSyntaxLanguage.LoadFromXml(FileUtilities.GetAppPath() + "\\Syntax\\Dark Basic Professional.xml", 0);
for (int pattern = 0; pattern < DBPSyntax.GetKeywordCount(); pattern++)
{
syn.LexicalPatternGroups.Insert(0, new LexicalPatternGroup(LexicalPatternType.Regex, "ReservedWordToken", editor.Document.Language.HighlightingStyles["ReservedWordStyle"], DBPSyntax.GetKeyword(pattern).GetKeyword().Replace(" ", "\\s+"), "{NonWordMacro}"));
}
editor.Document.Language = syn;
}