Пример #1
0
        /// <summary>
        /// Sets Irony parser
        /// </summary>
        public virtual void SetParser(Parser parser)
        {
            this.parser = parser;
            ClearStylesBuffer();
            AddStyle(WavyStyle);

            VariablesColor = Color.Crimson;
            InputsColor    = Color.BlueViolet;
            OutputsColor   = Color.DarkBlue;

            SolidBrush variablebrush = new SolidBrush(VariablesColor);

            SyntaxHighlighter.VariableStyle = new TextStyle(variablebrush, null, FontStyle.Regular);

            SyntaxHighlighter.InitStyleSchema(Language.CSharp);
            InitBraces();
            OnTextChanged(Range);
        }