Themes and addons in CodeMirror
See original GitHub issueI tried setting editor.setOption 'theme', 'blackboard'
but the colors didn’t change. From the CodeMirror docs, it looks like I need to also manually include the relevant CSS (theme/blackboard.css
). Similarly, add-on loading seems to be manually by including the relevant JavaScript. (With Ace, this inclusion was automatic.) Should I be adding <script>
and <link>
tags to my Meteor code to do this?
Issue Analytics
- State:
- Created 7 years ago
- Comments:26 (2 by maintainers)
Top Results From Across the Web
Theme Demo - CodeMirror
Theme Demo ; 1. function findSequence(goal) { ; 2. function find(start, history) { ; 3. if (start == goal) ; 4. return history;...
Read more >WP CodeMirror Themes – WordPress plugin
Navigate to 'Tools > CodeMirror Themes' and select a theme you like · Navigate to either 'Appearance > Editor' or 'Plugins > Editor' ......
Read more >FarhadG/code-mirror-themes: A large collection of ... - GitHub
Once you have the desired CSS file, you simply configure your CodeMirror editor and pass in the theme's name as the CodeMirror theme...
Read more >How to require mode, theme or addon of code mirror in ...
@import (inline) "./../../node_modules/codemirror/lib/codemirror.css"; @import (inline) "./../../node_modules/codemirror/theme/monokai.css ...
Read more >How to Add The CodeMirror Editor to any WordPress Plugin or ...
That tweaking (and CodeMirror) is available in Appearance – Editor where you can edit theme files, in Plugins – Editor where you do...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That helped, thanks! I added
@5.14.2
tomizzao:sharejs-codemirror
and forced an update withmeteor update --allow-incompatible-update
; thenmeteor
crashed, but with a useful error message, pointing at Meteor package djedi:sanitize-html-client as the offender. Not sure exactly how that interacts with codemirror, but replacing that package with a modern npm dependency onsanitize-html
caused everything to work!Is there any way to actually apply a mode and theme to CodeMirror editor?