private static void InitializeXmlEditor(TextEditorControlBase textEditorControl) { textEditorControl.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("XML"); textEditorControl.Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy(); textEditorControl.Document.FormattingStrategy = new XmlFormattingStrategy(); textEditorControl.TextEditorProperties = InitializeProperties(); textEditorControl.Document.FoldingManager.UpdateFoldings(string.Empty, null); textEditorControl.ActiveTextAreaControl.TextArea.Refresh(textEditorControl.ActiveTextAreaControl.TextArea.FoldMargin); }
private static void InitializeTextEditor(TextEditorControlBase textEditorControl) { textEditorControl.TextEditorProperties = InitializeProperties(); textEditorControl.ActiveTextAreaControl.TextArea.Refresh(textEditorControl.ActiveTextAreaControl.TextArea.FoldMargin); }