# 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:** 33

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

</div>

> [@Trying\_to\_learn](#):
>
> Now all I need to do is look back and find how to get the `midnight-red` theme working

```auto
        theme: "midnight-red", // << same as before - set it in settings.
        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",
                wordWrap: true,
                fontSize: 14,
                fontLigatures: true,
                fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace"
            }
        }

```

---

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