Is there a way to highlight embedded JavaScript inside a XML CDATA Tag in VSCODE?

Viewed 20

I have a hard time analyzing JS code inside XML's CDATA tags since VSCODE highlights it in a single color like a comment. So is there a way to highlight the JavaScript code inside the XML CDATA tag?

The CDATA Tag for example.

<Script>
    <![CDATA[

      let x = myFunction(4, 3);   

      function myFunction(a, b) {
          return a * b;            
      }
            
    ]]>
</Script>
0 Answers
Related