CodeMirror 6.0 is pretty sweet - If you want to see it in action, we've been using it to build the new version of the micro:bit Python Editor:
https://python.microbit.org/v/beta
We’ve found CodeMirror 6’s APIs and in particular its extensibility to be well thought out and great to work with.
Thanks Marijn!