public BATDoc() { InitializeComponent(); m_fileName = "SSTcmdline.bat"; SetTextEditorDefaultProperties(); SetupMenuIemSelectCompare(); BATToolResourceSyntaxModeProvider provider = new BATToolResourceSyntaxModeProvider(); ICSharpCode.TextEditor.Document.HighlightingManager.Manager.AddSyntaxModeFileProvider(provider); txtEditCtl.Document.HighlightingStrategy = HighlightingManager.Manager.FindHighlighter("BAT"); // TODO: replace with BAT folding strategy XmlFoldingStrategy folding = new XmlFoldingStrategy(); txtEditCtl.Document.FoldingManager.FoldingStrategy = (IFoldingStrategy)folding; WireEvents(); }