Matt_Bro
Matt_Bro

Reputation: 14482

How do I turn off web essentials' razor highlighting?

I just installed Web Essentials 2013 for Update 2. Ever since I installed it, the C# in cshtml files is highlighted white. I have a dark theme. So, since the text is also white, it's unreadable. The theme I'm using is here: https://studiostyl.es/schemes/eye-friend

I looked in the web essentials section of my options and couldn't find anything pertaining to text highlighting. I'm using Visual Studio 2013 with Update 2 installed.

How do I turn off the highlighting?

Upvotes: 3

Views: 1572

Answers (3)

Ethan
Ethan

Reputation: 154

I have this same issue with Visual Studio's 2013 default Dark theme. However, if I go to

Tools - Options - General 

and switch the theme to Light, or Blue then click OK and then change the theme back to Dark the highlighting corrects itself.

Upvotes: 0

dsnunez
dsnunez

Reputation: 837

I imported the settings of your color schema and got this on one of my cshtml files enter image description here

Then, I went to: Tools > Options > Environment > Fonts and colors

Looked for "HTML Server Code Block Background" and changed its background color for a dark one.

Accepted changes, reopened the cshtml files and got this instead: enter image description here

Hope it helps!

Upvotes: 7

Shahar Galukman
Shahar Galukman

Reputation: 902

You can change the highlighting color to the background color.

Upvotes: 0

Related Questions