public SQLDoc() { InitializeComponent(); SetTextEditorDefaultProperties(); SetupMenuIemSelectCompare(); SQLToolResourceSyntaxModeProvider provider = new SQLToolResourceSyntaxModeProvider(); ICSharpCode.TextEditor.Document.HighlightingManager.Manager.AddSyntaxModeFileProvider(provider); txtEditCtl.Document.HighlightingStrategy = HighlightingManager.Manager.FindHighlighter("SQL"); // TODO: replace with SQL folding strategy XmlFoldingStrategy folding = new XmlFoldingStrategy(); txtEditCtl.Document.FoldingManager.FoldingStrategy = (IFoldingStrategy)folding; WireEvents(); }