# Getting the monaco editor to work in NR 2.x

**URL:** <https://discourse.nodered.org/t/getting-the-monaco-editor-to-work-in-nr-2-x/65466>\
**Category:** General\
**Created:** [22 July 2022 06:59 UTC](https://discourse.nodered.org/t/getting-the-monaco-editor-to-work-in-nr-2-x/65466 "2022-07-22T06:59:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [22 July 2022 07:08 UTC](https://discourse.nodered.org/t/getting-the-monaco-editor-to-work-in-nr-2-x/65466/2 "2022-07-22T07:08:28Z")

</div>

> [@Trying\_to\_learn](#):
>
> But looking at the `settings.js` file I can't even find the code for the older/original editor.

Because there was only one editor pre v2.1 (so no setting)

> [@Trying\_to\_learn](#):
>
> So is it just a case of adding that and the editor would be changed?

Yes, inside of `editorTheme`

```javascript
    editorTheme: {
        codeEditor: {
            lib: "monaco", //can be "monaco" or "ace"
            options: {
                // /* theme - must match the file name of a theme in 
                // * packages/node_modules/@node-red/editor-client/src/vendor/monaco/dist/theme
                // * e.g. "tomorrow-night", "upstream-sunburst", "github", "my-theme"
                // */
                theme: "vs-dark",
            }
        }
    }

```

NOTES.

1. I added theme as I know you run a dark theme
2. You really should just delete your settings file & let node-red build a new up-to-date one for you - (yours is clearly well out of date)

---

_[View the full topic](https://discourse.nodered.org/t/getting-the-monaco-editor-to-work-in-nr-2-x/65466)._
