Bug when using the default comment snippet with html <style>

RKS 6 years ago 0

Sorry if this is a duplicate, I searched but didn't come up with anything.

When you have <style></style> in the head section of your html document and try to command+/ it returns the expected behavior of <!-- <style></style> -->

However, if you have some CSS in there like:


    body { height: 100%; }


and you command+/ on the <style> tag, it will return /*<style>*/ which won't comment it out in the html doc. Selecting the whole group will also wrap the group in /**/ instead of <!-- -->.