As far as i remember, VSC already properly highlights both .BRS (BrightScript) and XML files. My suggestion is to keep code and markup separate, i.e. do not embed your code in XML but instead put in .brs file and include it in the XML with a tag
<script type="text/brightscript" uri="pkg:/components/myComp.brs" />
It’s considered good practice and you’ll get proper syntax highlights.
Answered By – Nas Banov
Answer Checked By – Pedro (AngularFixing Volunteer)