Update CodeMirror and code formatting