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

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

</div>

> [@Trying\_to\_learn](#):
>
> I put them in (without the leading `//` but node-red just complains when started.

unsurprising, that is **not** how i said it should be.

You put `codeEditor` outside of `editorTheme` I said...

> [@Steve-Mcl](#):
>
> Yes, inside of `editorTheme`
> 
> ```auto
> 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",
> }
> }
> }
> 
> ```

---

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