Can / should all the packages have usage examples?

For example: GitHub - codemirror/theme-one-dark: One Dark theme for the CodeMirror code editor

it doesn’t say what to import, how to use it, etc.

There are api docs, which is cool, but for folks new to codemirror (me :upside_down_face: ) Where do the extensions go?

(I already know the answer at this point, but it would have helped a couple days ago to have this information)

1 Like

I second the motion — especially since using the extensions and indeed looking at the code are an excellent way to learn how CodeMirror 6 works. It would also serve as a gentle introduction because users can experiment by mix & match from examples of different packages.

Specifically, examples for doing things like this would be priceless.