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

Is it possible to use the themes from this project with CodeMirror 6 without using React?

Open brendand opened this issue 1 year ago • 1 comments

I am working on a Swift app (macOS/AppKit and iOS/UIKit) and I'm using CodeMirror for a script editor screen. I'd love to be able to use the themes in this project, but I'm not sure how to integrate them without using React. Can the themes be used in the basic CodeMirror without all the React dependencies?

brendand avatar Mar 31 '24 01:03 brendand

https://github.com/uiwjs/react-codemirror/blob/6440766e7ea354229dcbe1db2416eceb4fe70470/themes/abyss/README.md?plain=1#L22-L31

Everything should be fine under normal circumstances, but if you're using it in pure HTML, we might need to make some changes.

https://github.com/uiwjs/react-codemirror/blob/36a1e009436bbc259c6bab868d33ed0f2a406598/bundle.html#L12-L43

@brendand If your non-React application uses a bundling tool, it should be able to run.

jaywcjlove avatar Apr 02 '24 11:04 jaywcjlove