react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

Unable to apply theme and mode

Open VishalSingh28 opened this issue 3 years ago • 4 comments

When I am trying to apply theme and mode its not working even i reduce the version of codemirror to 3.2.1

VishalSingh28 avatar Apr 22 '22 03:04 VishalSingh28

Example: https://codesandbox.io/s/react-codemirror-example-codemirror-6-slvju?from-embed=&file=/src/App.js

v4 supports themes.

@VishalSingh28

jaywcjlove avatar Apr 22 '22 04:04 jaywcjlove

Meet the same issue, it seems only have @codemirror/theme-one-dark theme, how can we support other themes? like neo?

AllenQU-LR avatar Apr 25 '22 14:04 AllenQU-LR

@AllenQU-LR Requires a custom theme package. Because codemirror 6 is very new.

jaywcjlove avatar Apr 25 '22 15:04 jaywcjlove

@AllenQU-LR @VishalSingh28

New themes are being created. https://uiwjs.github.io/react-codemirror/#/theme/list

jaywcjlove avatar Jun 18 '22 06:06 jaywcjlove