set up CodeMirror for on-page solution input