我在哪里可以更改VS10中突出显示的Asp.net MVC 3 Razor语法? [英] Where can I change the Asp.net MVC 3 Razor syntax highlighting in VS10?

查看:93
本文介绍了我在哪里可以更改VS10中突出显示的Asp.net MVC 3 Razor语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了工具">选项",但是我可以在VS10的哪里关闭或更改ASP.NET MVC 3中@nuggets上新的Razor视图的默认突出显示?

I searched Tools > Options, but where in VS10 can I turn off or change the default highlighting for the new Razor view on the @nuggets in ASP.NET MVC 3?

推荐答案

Razor仅将一个条目添加到Fonts&中.颜色,剃刀代码".这可控制赋予剃刀代码"块的背景颜色.其余颜色与C#/VB颜色相同.由于另外一个安德鲁(Andrew)来挖掘特定条目).

Razor only adds one entry to Fonts & Colors, "Razor Code". That controls the background color given to Razor Code nuggets. The rest of the colors are the same as the C#/VB colors. The "@" character itself and Razor keywords like "model" and "section" use the same color as the ASPX "<%" tag ("HTML Server-Side Script", thanks to another Andrew for digging up the specific entry).

如果您希望我们为其中一些提供单独的条目,请给我们发送电子邮件并建议:razorvs@microsoft.com

If you'd rather we had separate entries for some of these, please email us and suggest that: razorvs@microsoft.com

这篇关于我在哪里可以更改VS10中突出显示的Asp.net MVC 3 Razor语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆