Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect comment blocks in html script blocks #59

Open
rishavs opened this issue Mar 26, 2024 · 0 comments
Open

incorrect comment blocks in html script blocks #59

rishavs opened this issue Mar 26, 2024 · 0 comments

Comments

@rishavs
Copy link

rishavs commented Mar 26, 2024

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.

@rishavs rishavs changed the title support correct comment blocks in script blocks incorrect comment blocks in html script blocks Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant