Help converting a codemirror side-by-side diff example to an AnyWidget #801
Unanswered
habemus-papadum
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to create an AnyWidget that shows the diff of two code snippets using CodeMirror. A standalone html is included below.
I don't think CodeMirror uses esm, but does use custom css, and many of the addons needed seem to rely on global variables (attached to
window
). My javascript, modules, bundling abilities are rusty so I am not able to assess how difficult it will be to make this work with AnyWidget. Would anyone be able to to provide guidance about next steps or feasibility? If bundling is required, then as simple as possible (es-build
?) would be great.Thanks! nehal
Beta Was this translation helpful? Give feedback.
All reactions