简体   繁体   English

使用Roslyn更改部分源代码中的背景色

[英]Change background-colour in parts of sourcecode with Roslyn

I am a bit confused, because I didn't find any information about colouring with the editor services of Roslyn. 我有点困惑,因为我没有在Roslyn的编辑器服务中找到有关着色的任何信息。 Probably I used the wrong phrases and expressions. 可能是我使用了错误的短语和表达方式。

I would like to change the background-colour of words or blocks in my source-code, after my analysis with Roslyn. 在与Roslyn进行分析之后,我想更改源代码中单词或块的背景颜色。 The highlight possibility to underline parts with a type of "error", "info" or "warning" is not what I am looking for! 我要查找的不是带有“错误”,“信息”或“警告”类型的零件下划线的突出可能性! Maybe you can provide me with an idea or the information where to start! 也许您可以为我提供一个想法或信息,从哪里开始!

I use Visual Studio 2012 Ultimate and Roslyn Vers. 我使用Visual Studio 2012 Ultimate和Roslyn Vers。 Sep. 2012 2012年9月

Take a look at the ClassificationProvider sample. 看一下ClassificationProvider示例。 Classification is the term that the VS editor uses for syntax coloring. 分类是VS编辑器用于语法着色的术语。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM