Open StructByLightning opened 5 years ago
Please note for comparison that the normal HTML syntax (from which this syntax derives) also has the same behavior—HTML comments are unsupported in style
element descendants.
It is not the HTML/XML comment causing the problem, its the #include rule from CSS, so that also means it has nothing to do with CSHTML.
Using a
#include
inside a<style>
tag breaks syntax highlighting for the rest of the file.Minimum working example:
What it should look like:
What it actually looks like:
Edit: For anyone else who reads this, you can add a {} to fix the highlighting, like this:
<style><!-- #include file = "blah/blah/blah/something.css" -->{}</style>