# Function editor highlights text arbitrarily?

**URL:** <https://discourse.nodered.org/t/function-editor-highlights-text-arbitrarily/85571>\
**Category:** General\
**Created:** [15 February 2024 16:45 UTC](https://discourse.nodered.org/t/function-editor-highlights-text-arbitrarily/85571 "2024-02-15T16:45:10Z")\
**Posts on this page:** 1\
**Showing post:** 21

<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:** [15 February 2024 19:21 UTC](https://discourse.nodered.org/t/function-editor-highlights-text-arbitrarily/85571/21 "2024-02-15T19:21:54Z")

</div>

> [@Rgrove](#):
>
> Yeah, I'm going to do that, just need to dig through what that means, first.

You go back to ace and lose a lot of functionality including the ability to use most ES6 features (it doesn't understand them)

> [@Rgrove](#):
>
> but it's wholly dependent on the editor behaving like a standard text editor

Sorry, but I dont get your point. As far as i can see, it functions like pretty much any multi document editor. In your video, there is highlighted text and the cursor is blinking, and you proceeded to type. It is literally doing what you ask of it.

Here is a demonstration comparing Node-REDs editor to another MDI application - I see no differences (windows 11)

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/b/ebe1d29c562e8aa6da5ef41d9b48a177419b1196.jpeg "Monaco in Node-RED") ](https://www.youtube.com/watch?v=nF0ewV6wXnA)
  

If it is simply a case of the highlight not being clear, chose from one of the many included ones

For example, this is the ACE theme in monaco:  
 ![chrome_qUQTviSDps](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/1/c12d8cb83429a099700a6b2acbd7db05da378cc6.gif)

And here is a thread that shows you how to change the theme: [How to use themes with Monaco editor](https://discourse.nodered.org/t/how-to-use-themes-with-monaco-editor/48310)

Essetially set `codeEditor` -\> `options` -\> `theme` to `"ace"` or `"github-dark"` or any one of [59 options](https://github.com/node-red/node-red/tree/dev/packages/node_modules/%40node-red/editor-client/src/vendor/monaco/dist/theme) other themes included

---

_[View the full topic](https://discourse.nodered.org/t/function-editor-highlights-text-arbitrarily/85571)._
