-
Hello there 👋 , I'm trying to style inner CodeMirror elements like The official CodeMirror docs show how to do this: But I don't know how to do it with vue-codemirror. I've tried with So how can I style specific parts of the editor, like background color of highlighted text etc.? Thank you for your help. 🙂 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, I think I've found the answer thanks to AI search The gist is: You need to provide a custom theme and provide it as a |
Beta Was this translation helpful? Give feedback.
Ok, I think I've found the answer thanks to AI search
phind
:https://www.phind.com/search?cache=5d629319-43c5-4111-b8f5-498d9bdf0308
The gist is: You need to provide a custom theme and provide it as a
:theme
prop into thevue-codemirror
component.When you create a custom theme, you have access to the inner classes of codemirror. See an example for the oneDark theme here:
https://github.com/codemirror/theme-one-dark