开发者

How does visual studio colorize c# code?

开发者 https://www.devze.com 2023-03-16 16:29 出处:网络
How does visual studio colorize c# code? I know visual studio has an abstract class LanguageService, it has a property GetColorizer, may colorize code.

How does visual studio colorize c# code?

I know visual studio has an abstract class LanguageService, it has a property GetColorizer, may colorize code.

But I can't find c# language's implement of LanguageService class.

Help me开发者_高级运维.

Or any other method to use visual studio's way to colorize is acceptable.


You are looking in the wrong place. The editor is the component that does the coloring, not the language service.

http://msdn.microsoft.com/en-us/library/dd885244.aspx

There is also sample code in the MSDN gallery that implements color highlighting for IronRuby. I would study that code for an example.

0

精彩评论

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