Ishio
Ishio

Reputation: 765

Turn off Visual Studio Highlight Color

I"m having an issue with Visual Studio. I am working in CSS and HTML, but the program does all this highlighting.

Here's an example of what I'm talking about.

I just want to turn off that highlighting in the common words, brackets, and syntax bracket highlight.

I can't find it anywhere in the Tools -> Options section.

Upvotes: 4

Views: 6698

Answers (3)

William Hou
William Hou

Reputation: 1771

Actually it's the "HTML Razor Code Background" item (I found it by going down the list one by one). I changed the "Item background" to black, and it looks very nice, having got rid of the gray highlighting, which was, sorry to say it, very annoying.

The steps are the same as listed by Mark Cidade above:

Tools → Options → Environment → Fonts and Colors 

enter image description here

The following picture is the result, which is only a screenshot and is very nice already. The real thing is much nicer.

enter image description here

Upvotes: 2

Ishio
Ishio

Reputation: 765

If you have Web Essentials installed, this is what is causing the issue. Still looking into the specific area.

Upvotes: 1

Mark Cidade
Mark Cidade

Reputation: 99957

Tools → Options → Environment → Fonts and Colors 

→ Brace Matching (Rectangle)
→ CSS Keyword, etc.
→ Find Match (Highlight)
→ Highlighted Reference

enter image description here

To turn off syntax highlighting completely, you can assign another editor, like Script Editor to the css extension (this will also disable all CSS recognition):

Tools → Options → Text Editor → File Extension

enter image description here

Upvotes: 6

Related Questions