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