Exemplo n.º 1
0
        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);
        }
        /// <summary>
        /// 
        /// </summary>
        public SyntaxDefinitionList()
        {
            languages = new List<SyntaxDefinition>();

            string[] files = Directory.GetFiles(".", "*.syn");
            foreach (string file in files) {
                var loader = new SyntaxDefinitionLoader();
                SyntaxDefinition syntax = loader.Load(file);
                languages.Add(syntax);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        public SyntaxDefinitionList()
        {
            languages = new List <SyntaxDefinition>();

            string[] files = Directory.GetFiles(".", "*.syn");
            foreach (string file in files)
            {
                var loader = new SyntaxDefinitionLoader();
                SyntaxDefinition syntax = loader.Load(file);
                languages.Add(syntax);
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public SyntaxDefinitionList()
        {
            languages = new List<SyntaxDefinition>();

            string[] files = Directory.GetFiles(@"C:\Users\hadasn.BDB\Desktop\SourceCode-2\Alsing\SyntaxBox\SyntaxFiles", "*.syn");
            foreach (string file in files)
            {
                var loader = new SyntaxDefinitionLoader();
                SyntaxDefinition syntax = loader.Load(file);
                languages.Add(syntax);
            }
        }
Exemplo n.º 5
0
		public Main()
		{
			InitializeComponent();
			
			SyntaxDefinitionLoader sl = new SyntaxDefinitionLoader();
			syntaxDefinition = sl.LoadXML(DEVotion.Properties.Resources.LUA.ToString());

			LoadSettings();

			tabDocs.OnClose += CloseTab;
			tabDocs.OnAfterClose += AfterCloseTab;
			UpdateButtons();
		}
        /// <summary>
        ///
        /// </summary>
        public SyntaxDefinitionList()
        {
            languages = new List <SyntaxDefinition>();

            var assy    = Assembly.GetExecutingAssembly();
            var assyDir = Path.GetDirectoryName(assy.Location);

            string[] files = Directory.GetFiles(assyDir, "*.syn");
            foreach (string file in files)
            {
                var loader = new SyntaxDefinitionLoader();
                SyntaxDefinition syntax = loader.Load(file);
                languages.Add(syntax);
            }
        }
Exemplo n.º 7
0
        public static SyntaxDefinition FromSyntaxFile(string filename)
        {
            var sl = new SyntaxDefinitionLoader();

            return(sl.Load(filename));
        }
Exemplo n.º 8
0
        public static SyntaxDefinition FromSyntaxXml(string xml)
        {
            var sl = new SyntaxDefinitionLoader();

            return(sl.LoadXML(xml));
        }
Exemplo n.º 9
0
 public static SyntaxDefinition FromSyntaxFile(string filename)
 {
     var sl = new SyntaxDefinitionLoader();
     return sl.Load(filename);
 }
Exemplo n.º 10
0
 public static SyntaxDefinition FromSyntaxXml(string xml)
 {
     var sl = new SyntaxDefinitionLoader();
     return sl.LoadXML(xml);
 }