When LMD SyntaxEdit uses HTML.xml to parse HTML documents, is it possible to stop parsing "<!-- xxx -->" in "style" elements as comments? Comments in "style" elements should only be in the form "/* comment */".
Currently, when this is used:
<style>
<!--
a{background:blue;}
-->
</style>
The CSS is highlighted in green like it is in a comment, but because it's in a "style" element, browsers will see and apply the CSS... so it's not really a comment and shouldn't be highlighted as such.
Instead, it might be nice if "<!--" and "-->" were highlighted in red when they're used in "style" elements.... or at least not treated as comment markers in "style" elements.
Not a big deal as it's been like this for years, but it would be nice if the above could be done. Hopefully it is an easy update to HTML.xml. I haven't tried to make the change myself though.
That same applies within "script" elements as well.
Thanks.
Comments