예제 #1
0
        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();
        }
예제 #2
0
        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();
        }