Description
The command toggle_comment
creates different comment syntax for the scopes CSS or JS.
For example, in a HTML document, inside a CSS scope or JS scope, use toggle comment to place a comment. This will place a HTML comment inside CSS scope. All consecutive comments are for correct syntax inside this scope.
I learned that this is technically correct:
when using the
<style>
element, you may use<!-- -->
to hide CSS from older browsers, although this is not recommended.
source: https://developer.mozilla.org/en-US/docs/Web/CSS/Comments
However, it is inconsistent and annoying me. I am not sure if this is intended, what is the point in using two different syntax for the same command?
Steps to reproduce
- create HTML document as PHP file
- inside HTML document, create CSS or JS script
- inside CSS scope, toggle_comment
- add another comment
- observe 1st comment in HTML syntax
Actual behavior
1st comment inside CSS scope is in HTML syntax, consecutive comments inside the same scope is in CSS syntax.
Does it make sense to suggest an improvement here? Meaning that the type of comment applied being consistent within the current scope.