Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I get VS Code to syntax-highlight JsRender templates?

Inside a <script type="text/x-jsrender">, all code is displayed in white. If I just change x-jsrender to html, the syntax highlighting works as expected.

Is there a way to teach VS Code to treat x-jsrender like html?

like image 807
Felix Dombek Avatar asked Oct 18 '22 09:10

Felix Dombek


1 Answers

Currently there is no support OOTB, you will have to write a plugin to enable that syntax highlighting.

like image 133
Henrik Andersson Avatar answered Oct 30 '22 01:10

Henrik Andersson