Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

NedRise's avatar
Level 11

Syntax highlighting for html inside template literals in VSCode

As writen above, i'm searching for a good extension which highlights the syntax adequate in template literals (vue.js). Seen that in many tutorials from jeffrey but didn't got any working extension for it yet.

Could you guys help me out there?

Best regards!

0 likes
4 replies
Niush's avatar

Doesn't Volar plugin support it by default?

Otherwise, there is this generic plugin that requires a little /*html*/ comment. (es6-string-html)

NedRise's avatar
Level 11

@Niush I've Volar activated but it doesn't highlight it, dunno why exactly :/ I've to mention that is should do that inside a *.js file, not a .vue one.

NedRise's avatar
Level 11

Still doesn't work. Those html syntax highlighting inside of javascript looks like a real problem to VS Code.

Please or to participate in this conversation.