Inheritance: System.Windows.Controls.UserControl
Exemple #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));
        }
Exemple #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#");
 }
Exemple #3
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new DefaultIndentationStrategy();
     editor.InitializeFolding(new XmlFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("XML");
 }