Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode text coloring inside HTML script tag

I would like JS <script type="xx"> content to be colored nicely inside my HTML document.

Right now, when adding the type to a script tag, the element text becomes uniform white, as seen below.

enter image description here

Of course, the JS code is colored nicely within the HTML if removing the type attribute.

Is there some setting I can modify to make this work?

like image 596
AlexG Avatar asked Oct 30 '22 05:10

AlexG


1 Answers

No setting to modify. This is a known issue. From the thread it looks like syntax highlighting was working at one point for script tags with the type attribute but was lost.

Hopefully it's fixed soon. I'm seeing the same thing on VSCode 1.13.1.

like image 177
nick Avatar answered Dec 28 '22 09:12

nick