diff --git a/packages/node_modules/node-red/settings.js b/packages/node_modules/node-red/settings.js index f15d53b44..13631b78e 100644 --- a/packages/node_modules/node-red/settings.js +++ b/packages/node_modules/node-red/settings.js @@ -337,6 +337,21 @@ module.exports = { // section of 'User Settings' within the editor mode: "manual" } - } + }, + codeEditor: { + lib: "ace", //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", + //// other overrides can be set e.g. fontSize, fontFamily, fontLigatures etc. + //// for the full list, see https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.istandaloneeditorconstructionoptions.html + //fontSize: 14, + //fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace" + //fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace" + //fontLigatures: true, + } + }, } }