Generate CodeMirror editor.