开发者

How does visual studio colorize c# 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜