# Syntax Highlighting when creating a custom node

**URL:** <https://discourse.nodered.org/t/syntax-highlighting-when-creating-a-custom-node/14707>\
**Category:** General\
**Created:** [23 August 2019 12:22 UTC](https://discourse.nodered.org/t/syntax-highlighting-when-creating-a-custom-node/14707 "2019-08-23T12:22:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Regalia](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Regalia](https://discourse.nodered.org/u/Regalia)\
**Post date:** [23 August 2019 12:22 UTC](https://discourse.nodered.org/t/syntax-highlighting-when-creating-a-custom-node/14707/1 "2019-08-23T12:22:22Z")

</div>

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 😕  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [23 August 2019 12:35 UTC](https://discourse.nodered.org/t/syntax-highlighting-when-creating-a-custom-node/14707/2 "2019-08-23T12:35:13Z")

</div>

> [@Regalia](#):
>

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

---

<div class="post-metadata">

**Author:** ![Regalia](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Regalia](https://discourse.nodered.org/u/Regalia)\
**Post date:** [23 August 2019 12:39 UTC](https://discourse.nodered.org/t/syntax-highlighting-when-creating-a-custom-node/14707/3 "2019-08-23T12:39:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [23 August 2019 20:53 UTC](https://discourse.nodered.org/t/syntax-highlighting-when-creating-a-custom-node/14707/4 "2019-08-23T20:53:39Z")

</div>

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.
