private void TemplateEditor_Load(object sender, EventArgs e) { var sl = new SyntaxDefinitionLoader(); SyntaxDefinition lang = sl.LoadXML(Resources.CSharpTemplate); TemplateSyntaxBox.Document.Parser.Init(lang); lang = sl.LoadXML(Resources.CSharp); SourceSyntaxBox.Document.Parser.Init(lang); OutputSyntaxBox.Document.Parser.Init(lang); }
public Main() { InitializeComponent(); SyntaxDefinitionLoader sl = new SyntaxDefinitionLoader(); syntaxDefinition = sl.LoadXML(DEVotion.Properties.Resources.LUA.ToString()); LoadSettings(); tabDocs.OnClose += CloseTab; tabDocs.OnAfterClose += AfterCloseTab; UpdateButtons(); }
public static SyntaxDefinition FromSyntaxXml(string xml) { var sl = new SyntaxDefinitionLoader(); return(sl.LoadXML(xml)); }
public static SyntaxDefinition FromSyntaxXml(string xml) { var sl = new SyntaxDefinitionLoader(); return sl.LoadXML(xml); }