Use CodeMirror for preview contents