add codemirror for live preview