use codemirror for code editor