Html HighlightStyle

I want to define three separate styles - one for html, css, js.

I think that when I want to combine these for an html document I need to add scoping to the css, js based on the NodeType.

I’m just not sure exactly how to define the NodeType correctly.

highlightExtension = [
    HighlightStyle.define(myJsStyles, {scope: ????}), 
    HighlightStyle.define(myCssStyles, {scope: ???}), 

Use javascriptLanguage.topNode for the scope.

1 Like