Пример #1
0
        void HighlightCategorizedToken(CategorizedToken token, List <SyntaxHighlightToken> syntaxTokens)
        {
            var highlightProperties = syntaxHighlightInfo.CalculateTokenCategoryHighlight(token.Category);
            var syntaxToken         = SetTokenColor(token, highlightProperties);

            if (syntaxToken != null)
            {
                syntaxTokens.Add(syntaxToken);
            }
        }
        void HighlightCategorizedToken(CategorizedToken token, List <SyntaxHighlightToken> syntaxTokens)
        {
            var backColor           = editor.ActiveView.BackColor;
            var highlightProperties = syntaxHighlightInfo.CalculateTokenCategoryHighlight(token.Category);
            var syntaxToken         = SetTokenColor(token, highlightProperties, backColor);

            if (syntaxToken != null)
            {
                syntaxTokens.Add(syntaxToken);
            }
        }