Open sreenigaddam77 opened 5 years ago
same thing happens here, mode can only work with theme of 'monokai', other themes never work...
I got the Answer. need to import the theme css in your root file such as App.js/index.js
for example:(in our index.js) .... import 'codemirror/lib/codemirror.css'; import 'codemirror/theme/monokai.css'; import 'codemirror/theme/blackboard.css';
... ReactDOM.render(
In my case, I didn't have included one of the language-specific modes in the mode
folder.
hi,
I have tried to apply different themes, i can see only background change working, but code syntax, keywords highlighting not working. Editor is part of webapp, could you please advise, what iam missing here