Inheritance: System.Windows.Controls.UserControl
Esempio n. 1
0
        public void Apply(CodeEditor editor)
        {
            editor.Editor.TextArea.IndentationStrategy = new DefaultIndentationStrategy();
            editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("CSharpRazor") ?? LoadCSharpRazorDefinition();

            var cSharpRazorLanguageBinding = new CSharpRazorLanguageBinding(new TextEditorWithParseInformationFoldingFactory(),
                                                    new RazorFoldGeneratorFactory(".cshtml"));

            cSharpRazorLanguageBinding.Attach(new CodeCompletionEditorAdapter(editor.Editor));
        }
Esempio n. 2
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new CSharpIndentationStrategy(editor.Editor.Options);
     editor.InitializeFolding(new BraceFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("C#");
 }
Esempio n. 3
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new DefaultIndentationStrategy();
     editor.InitializeFolding(new XmlFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("XML");
 }