Closed Sicos1977 closed 2 years ago
Is it possible to set the theme that is used by codemirror?
In codemirror I can do it like this.
var editor = window.CodeMirror.fromTextArea(element, { theme: 'darcula' });
ms.getCodeMirror().setOption("theme", "darcula");
Something like this should also work:
mirrorsharp(element, { /* other options..., */ forCodeMirror: { theme: 'darcula' } })
Is it possible to set the theme that is used by codemirror?
In codemirror I can do it like this.