File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ Monaco comes with a number of built-in themes available. The full list is [here]
135135The name of the theme can be provided in the plugin settings:
136136
137137```javascript
138- RED.plugins.registerPlugin("midnight-red ", {
138+ RED.plugins.registerPlugin("my-custom-theme ", {
139139 type: "node-red-theme",
140140 css: "style.css",
141141 monacoOptions: {
@@ -154,7 +154,7 @@ Rather than specifying a built-in theme by name, the `monacoOptions.theme` setti
154154be used to provide a custom Monaco theme object:
155155
156156```javascript
157- RED.plugins.registerPlugin("midnight-red ", {
157+ RED.plugins.registerPlugin("my-custom-theme ", {
158158 monacoOptions: {
159159 theme: {
160160 "base": "vs-dark",
@@ -198,14 +198,14 @@ Rather than hardcode the theme settings, you can store the Monaco theme JSON in
198198separate file and use `require` to import it:
199199
200200```javascript
201- RED.plugins.registerPlugin("midnight-red ", {
201+ RED.plugins.registerPlugin("my-custom-theme ", {
202202 monacoOptions: {
203- theme: require("midnight-red -monaco-theme.json"),
203+ theme: require("my-custom-theme -monaco-theme.json"),
204204 }
205205})
206206```
207207
208- `midnight-red -monaco-theme.json` file example:
208+ `my-custom-theme -monaco-theme.json` file example:
209209```json
210210{
211211 "base": "vs-dark",
You can’t perform that action at this time.
0 commit comments