开发者

Visual Studio Fonts and Colors - Ref Keyword

开发者 https://www.devze.com 2023-01-19 17:01 出处:网络
I just imported new fonts and colors for Visual Studio 2008.I want to change the color on the ref keyword on a parameter to stand out a little more. 开发者_如何学运维 Anyone know what option that is i

I just imported new fonts and colors for Visual Studio 2008. I want to change the color on the ref keyword on a parameter to stand out a little more. 开发者_如何学运维 Anyone know what option that is in the Display Items under Fonts and Colors?


That's not how syntax highlighting works in VS2008. It is done by 'lexical analysis', not a language parser. In other words, it tokenizes the text in the source code file and classifies them by lexical type. Keyword, identifier, number, string literal, comment, whitespace. And gives them their associated color.

It is important that it works that way because lexical analysis is fast, parsing is slow. Getting text to repaint in a text editor needs to be fast. Accordingly, it has no option to classify individual keywords, the only option you got is the "Keyword" color in the dialog. Which changes the color of all keywords, not just ref.

0

精彩评论

暂无评论...
验证码 换一张
取 消