CodeMirror 6 Needs on CodePen
This page shows live CodeMirror 6 editors in all the modes that we need (so far) on CodePen. It also has dropdowns for settings that we need to support.
Synced State ViewPlugin DemoSettings
We have lots of themes to port over; may want to drop
NOTE: Does not convert previous indentations to a new width. There are some ways to do that through Prettier. Is there an official CodeMirror way of altering indent width of pre-authored code for spaces?
NOTE: Does not convert previous indentations to the new indent unit.
TODO: CodePen has traditionally paired this concept with Close Brackets, but they are different plugins in CodeMirror. Should we separate or combine?
TODO: There's also the concept of `matchClosingTags` and `autoCloseTags` for HTML (possibly JSX as well?). Do we want this all linked to one option? In the interest of simplicity, they do all seem related.
Officially supported. Need to figure out which languages it works on. Doesn't seem to do simple stuff in JavaScript like `document`, or `querySelector`. Also we need to pipe in authored JavaScript, so autocomplete works on user-authored code.
Implemented as a plugin by Sergey.