From a6f116b57bcb9d22b40ee5fd8bd49751b1da3c62 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Sat, 1 May 2021 22:17:48 +0100 Subject: [PATCH] add default basic entries in settings,js - defaults to "ace" but provides instruction for using monaco --- packages/node_modules/node-red/settings.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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, + } + }, } }