Browse Source

feat: add a note in UI about using custom CM themes

tophf 5 years ago
parent
commit
56a94320e6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/_locales/en/messages.yml

+ 4 - 0
src/_locales/en/messages.yml

@@ -122,6 +122,10 @@ descEditorOptions:
     them may not work in Violentmonkey. See <a
     them may not work in Violentmonkey. See <a
     href="https://codemirror.net/doc/manual.html#config" target="_blank"
     href="https://codemirror.net/doc/manual.html#config" target="_blank"
     rel="noopener noreferrer">full list</a>.
     rel="noopener noreferrer">full list</a>.
+    To use a custom CodeMirror theme, specify its file name like
+    <code>"theme": "3024-day"</code> here and paste the
+    <a href="https://github.com/codemirror/CodeMirror/tree/master/theme" target="_blank"
+    rel="noopener noreferrer">actual theme's CSS</a> in "Custom Style" input below.
 editHelpDocumention:
 editHelpDocumention:
   description: Label in the editor help tab for the documentation link.
   description: Label in the editor help tab for the documentation link.
   message: 'Documentation on userscript metadata block and <code>GM</code> API:'
   message: 'Documentation on userscript metadata block and <code>GM</code> API:'