pushqrdx / vscode-inline-html

🎨 Adding Syntax Highlighting, Emmet, IntelliSense support for ES6 Template Strings in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=pushqrdx.inline-html
GNU General Public License v3.0
54 stars 15 forks source link

Syntax highlighting broken is JS literal #48

Closed TiLopes closed 4 months ago

TiLopes commented 7 months ago

With extension enabled: image

Extension disabled: image

The theme used is GitHub Dark Default

pushqrdx commented 4 months ago

@TiLopes this is not a bug, it's because you're using /*css*/ which expects valid CSS (so it needs a class to wrap the background-color property in your case)

However if you want to directly embed CSS properties use /*style*/ which will correctly highlight your code like so:

image