0x00000001A / es6-string-html

Highlight code in ES6 multiline strings
https://marketplace.visualstudio.com/items?itemName=Tobermory.es6-string-html
MIT License
132 stars 79 forks source link

incorrect comment blocks in html script blocks #59

Open rishavs opened 7 months ago

rishavs commented 7 months ago

if I have a html string like this;

let str = /*html*/`
<div> This is a div </div>
<script> console.log("This is script")</script>
`

I want to use the comment shortcuts in vs code to comment out the js within the script tags. I would expect the comment command to add // to the line. Instead it adds <!-- --> to the line.