1

Is there an extension for Visual Studio Code that will highlight Angular template syntax in component HTML templates?

Angular component with an HTML template

Right now, without any syntax highlighting in the template, it just looks like a mess since it is one solid color without any contrast.

1

2 Answers 2

2

If you want proper syntax highlighting in your templates, the easiest way is to store your templates in their own files. This is what your example looks like in VSCode if you store that template in its' own .html file for example:

Template Syntax Highlighting

That said, if you want to keep using inline templates, this plugin is what you are looking for.

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

Comments

0

Try this extension angular2-inline I been used and It's very good

enter image description here

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.