Reputation: 822
I wanted to try out blazor and mess around with it and make some stuff for testing. I really like it, but the only thing that really annoys me is the highlighting of sequences in the razor file, where C# is written.
I marked some "highlights" in the picture above. Is there any way to remove this, so it looks normal, like when I am writing in a .cs file?
Upvotes: 32
Views: 5461
Reputation: 418
Visual Studio 2022
Tools > Options > Environment > Fonts and Colors> Razor Code Background
Click Custom for "Item background" and set color to rgb(30,30,30).
Also, you need to change prefix to matching colors.
Tools > Options > Environment > Fonts and Colors> HTML Server-Side Script
Click Custom for "Item background" and set color to rgb(30,30,30)
Upvotes: 1
Reputation: 4140
Go to Tools > Options > Environment > Fonts and Colors. Scroll for HTML Razor Code Background, select it and for an Item background choose Custom. Select rgb(30, 30, 30) to match your editor background and make it invisible.
Upvotes: 73