Exemple #1
0
 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);
 }
Exemple #2
0
 private static void InitializeTextEditor(TextEditorControlBase textEditorControl)
 {
     textEditorControl.TextEditorProperties = InitializeProperties();
     textEditorControl.ActiveTextAreaControl.TextArea.Refresh(textEditorControl.ActiveTextAreaControl.TextArea.FoldMargin);
 }