Language injection in HTML
Hi,
I'm trying to setup a language injection for Sass/SCSS in a HTML file but cannot get my head round how to do this. So, e.g. I have this code:
The help for language injections (unhelpfully..) only explains the list but not actually how to set up an injection up. I tried changing the existing "xml:style" and "xml:*/@style" settings to "Sass" or "SCSS" but that didn't change anything.
Although I'm not even sure if this is the right way forward? All I want is that SCCS code is properly syntax highlighted when included in HTML files.
Any help appreciated.
Thanks
Kai
I'm trying to setup a language injection for Sass/SCSS in a HTML file but cannot get my head round how to do this. So, e.g. I have this code:
<style lang="scss">
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
</style>
The help for language injections (unhelpfully..) only explains the list but not actually how to set up an injection up. I tried changing the existing "xml:style" and "xml:*/@style" settings to "Sass" or "SCSS" but that didn't change anything.
Although I'm not even sure if this is the right way forward? All I want is that SCCS code is properly syntax highlighted when included in HTML files.
Any help appreciated.
Thanks
Kai
Please sign in to leave a comment.