public void Init(string syntaxDefinitionPath) { if (!syntaxDefinitionPath.ToLowerInvariant().EndsWith(".syn")) syntaxDefinitionPath += ".syn"; var loader = new SyntaxDefinitionLoader(); var syntax = loader.Load(syntaxDefinitionPath); Init(syntax); }
private void setSyntax(string synName) { string resName = string.Format("SQL8r.WinForms.SyntaxFiles.{0}.syn", synName); string xml = ResourceReader.GetResourceSyntax(resName); var s = new SyntaxDefinitionLoader(); SyntaxDefinition l = s.LoadXML(xml); _view.txtEditor.Document.Parser.Init(l); }
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 void Init(string syntaxDefinitionPath) { if (!syntaxDefinitionPath.ToLowerInvariant().EndsWith(".syn")) { syntaxDefinitionPath += ".syn"; } var loader = new SyntaxDefinitionLoader(); var syntax = loader.Load(syntaxDefinitionPath); Init(syntax); }
public void Init(string syntaxFile, string separators) { try { if (!syntaxFile.ToLowerInvariant().EndsWith(".syn")) { syntaxFile += ".syn"; } SyntaxDefinition = new SyntaxDefinitionLoader().Load(syntaxFile, separators); } catch {} }
/// <summary> /// /// </summary> /// <param name="SyntaxFile"></param> public void Init(string SyntaxFile) { try { if (!SyntaxFile.ToLowerInvariant().EndsWith(".syn")) { SyntaxFile += ".syn"; } SyntaxDefinition = new SyntaxDefinitionLoader().Load(SyntaxFile); } catch {} }
public Main() { InitializeComponent(); SyntaxDefinitionLoader sl = new SyntaxDefinitionLoader(); syntaxDefinition = sl.LoadXML(DEVotion.Properties.Resources.LUA.ToString()); LoadSettings(); tabDocs.OnClose += CloseTab; tabDocs.OnAfterClose += AfterCloseTab; UpdateButtons(); }
public void Init(string syntaxFile, string separators) { try { if (!syntaxFile.ToLowerInvariant().EndsWith(".syn")) syntaxFile += ".syn"; SyntaxDefinition = new SyntaxDefinitionLoader().Load(syntaxFile, separators); } catch {} }
/// <summary> /// /// </summary> /// <param name="SyntaxFile"></param> public void Init(string SyntaxFile) { try { if (!SyntaxFile.ToLowerInvariant().EndsWith(".syn")) SyntaxFile += ".syn"; SyntaxDefinition = new SyntaxDefinitionLoader().Load(SyntaxFile); } catch {} }