Chmanie code mirror

As I already wrote in the comments, here is my pull request for using CodeMirror.