Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeMirror editor #17

Merged
merged 4 commits into from
Jan 14, 2024
Merged

CodeMirror editor #17

merged 4 commits into from
Jan 14, 2024

Conversation

rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Jan 14, 2024

My goal here is to set up CodeMirror as the code editor for code and markdown cells while matching the styling of shadcn/ui. Additionally, I added in ctrl-enter and shift-enter for running code making amateur use of CodeMirror 6's StateField and keybindings.

For the theme, I copied from https://www.zackrw.com/cbz/codemirror-themes-with-shadcn-ui.

image

Clearly more to be tweaked and refined. I'm just happy to have this bootstrapped a bit.

@rgbkrk rgbkrk force-pushed the themed-codemirror branch from f0634fb to dcbe354 Compare January 14, 2024 23:01
@rgbkrk rgbkrk changed the title [WIP] Themed codemirror CodeMirror editor Jan 14, 2024
@rgbkrk rgbkrk merged commit ff32e1a into main Jan 14, 2024
3 checks passed
@rgbkrk rgbkrk deleted the themed-codemirror branch January 14, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants