# Function Editor missing highlights and snippet/keyword

**URL:** <https://discourse.nodered.org/t/function-editor-missing-highlights-and-snippet-keyword/64071>\
**Category:** General\
**Tags:** function-node\
**Created:** [17 June 2022 10:59 UTC](https://discourse.nodered.org/t/function-editor-missing-highlights-and-snippet-keyword/64071 "2022-06-17T10:59:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Demonyck92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/demonyck92/32/63398_2.png) [@Demonyck92](https://discourse.nodered.org/u/Demonyck92)\
**Post date:** [17 June 2022 10:59 UTC](https://discourse.nodered.org/t/function-editor-missing-highlights-and-snippet-keyword/64071/1 "2022-06-17T10:59:42Z")

</div>

Hello everybody!  
I start to use node-red at home after using a Loytec DALI contreller (which integrate a full node-red deployment) in one job for my company.  
Inside the Loytec controller I see that editing the javascript code (in a function node for example) the editor suggest me all the snippet/keyword automatically while typing; the same is not working in my home deployment (v2.2.2). From last night I also noted that all the keywords are not highlighted anymore.

In light theme the loytec controller, in dark theme my home deployment

Thanks to everyone

 ![Cattura](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1aeb9a429f97f39a4c9bf9d5e56dfd59532ca27e.png)

 ![Cattura2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/c/6cb5d22f37ab5b2fa6c78ca2cfd4a1bc80a938df.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [17 June 2022 16:45 UTC](https://discourse.nodered.org/t/function-editor-missing-highlights-and-snippet-keyword/64071/2 "2022-06-17T16:45:00Z")

</div>

The dark one is the old ACE editor. Open your settings.js file & change the entry `codeEditor` from "ACE" to "MONACO" & restart node-red, refresh browser.

---

<div class="post-metadata">

**Author:** ![Demonyck92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/demonyck92/32/63398_2.png) [@Demonyck92](https://discourse.nodered.org/u/Demonyck92)\
**Post date:** [20 June 2022 12:48 UTC](https://discourse.nodered.org/t/function-editor-missing-highlights-and-snippet-keyword/64071/3 "2022-06-20T12:48:20Z")

</div>

Beautiful!!!, thank you so much, I was struggling how to solve it 😅

![Cattura2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b6f8b3435fcd28faa78be017079e947356feda8c.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 July 2022 12:49 UTC](https://discourse.nodered.org/t/function-editor-missing-highlights-and-snippet-keyword/64071/4 "2022-07-04T12:49:04Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
