1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

add default basic entries in settings,js

- defaults to "ace" but provides instruction for using monaco
This commit is contained in:
Steve-Mcl 2021-05-01 22:17:48 +01:00
parent 0a80186a92
commit a6f116b57b

View File

@ -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,
}
},
}
}