T357482 set up integration with the 2017 editor. However, CM6's highlighting has become more expensive in a way that makes the viewport not being clipped really slow.
Currently this is worked around by disabling CodeMirror when a sufficiently long article is loaded. This is not ideal.
The CodeMirror help page says the long-term plan is to adjust the 2017 editor's viewport to be more friendly to CodeMirror.