Syntax Highlighting when creating a custom node

Hello, I've recently been creating new nodes for personal project and one of the main issue I have is that in one of the <script /> tag, there is no color. Indeed the <script type="text/x-red" data-template-name"X" /> doesn't seem to be supported by my IDE (I'm using Visual Studio Code). Does anyone know how I could have some colours back? It's becoming really hard to see mistakes in html :confused:
Thanks in advance

You can use <script type="text/html" data-template-name"X" /> and everything should still work.

3 Likes

Thanks a lot, it indeed worked as usual with text/html!

Personally, I've started editing the file split into 3 parts so that the editor and linting all works as expected. I have a script that stitches everything back together.

I find this a much more comfortable way of working.

Check out my recent nodes including uibuilder.

1 Like