Getting the monaco editor to work in NR 2.x

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

Yes, inside of editorTheme

    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)
1 Like