3

Can I change the font color and background for the plain text in an HTML/Razor page in the Visual Studio editor?

<h1>Highlight this plain code</h1>

I've tried the "Plain Text" setting, but that changes EVERYTHING.

2 Answers 2

2

It is actually the Plain Text option. I changed the color for that and text within h1 blocks changed to it, along with all other plain text in the HTML. Not sure what you mean by it changing everything, as it did not change color for HTML elements.

Sign up to request clarification or add additional context in comments.

Comments

1

For VS 2017, go to Tools -> Options -> Environment -> Fonts and Colors and select what you want to change from Display items (ex: the HTML element) and select the color

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.