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.
精彩评论