/// <summary> /// The default constructor. /// </summary> public XmlEditor() { m_cdpXmlCompletionProvider = new XmlCompletionProvider(this); ActiveTextAreaControl.TextArea.KeyEventHandler += TextArea_KeyEventHandler; Disposed += DisposeCodeCompletionWindow; Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy(); Document.FormattingStrategy = new XmlFormattingStrategy(); m_tmrFoldUpdater.Tick += UpdateFolds; m_tmrFoldUpdater.Interval = 2000; m_tmrValidator.Tick += ValidateOnTimer; m_tmrValidator.Interval = 2000; m_cdpXmlCompletionProvider.GotAutoCompleteList += m_cdpXmlCompletionProvider_GotAutoCompleteList; }
/// <summary> /// The default constructor. /// </summary> public XmlEditor() { m_cdpXmlCompletionProvider = new XmlCompletionProvider(this); SetHighlighting("XML"); ActiveTextAreaControl.TextArea.KeyEventHandler += new ICSharpCode.TextEditor.KeyEventHandler(TextArea_KeyEventHandler); this.Disposed += DisposeCodeCompletionWindow; Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy(); Document.FormattingStrategy = new XmlFormattingStrategy(); m_tmrFoldUpdater.Tick += UpdateFolds; m_tmrFoldUpdater.Interval = 2000; m_tmrValidator.Tick += ValidateOnTimer; m_tmrValidator.Interval = 2000; m_cdpXmlCompletionProvider.GotAutoCompleteList += new EventHandler<AutoCompleteListEventArgs>(m_cdpXmlCompletionProvider_GotAutoCompleteList); }