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.
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 inctrl-enter
andshift-enter
for running code making amateur use of CodeMirror 6'sStateField
and keybindings.For the theme, I copied from https://www.zackrw.com/cbz/codemirror-themes-with-shadcn-ui.
Clearly more to be tweaked and refined. I'm just happy to have this bootstrapped a bit.