Exemple #1
0
 static SourceEditorDisplayBinding()
 {
     MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init();
     DefaultSourceEditorOptions.Init();
     SyntaxModeService.EnsureLoad();
     LoadCustomStylesAndModes();
 }
        public static void InitSourceEditor()
        {
            if (IsInitialized)
            {
                return;
            }
            IsInitialized = true;

            MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init();
            DefaultSourceEditorOptions.Init();
            SyntaxModeService.EnsureLoad();
            LoadCustomStylesAndModes();
        }
Exemple #3
0
        string[] ITextEditorFactory.GetSyntaxProperties(string mimeType, string name)
        {
            var mode = SyntaxModeService.GetSyntaxMode(null, mimeType);

            if (mode == null)
            {
                return(null);
            }
            System.Collections.Generic.List <string> value;
            if (!mode.Properties.TryGetValue(name, out value))
            {
                return(null);
            }
            return(value.ToArray());
        }