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)); }
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#"); }
public void Apply(CodeEditor editor) { editor.Editor.TextArea.IndentationStrategy = new DefaultIndentationStrategy(); editor.InitializeFolding(new XmlFoldingStrategy()); editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("XML"); }