Add and use codemirror for code editing.