First add. Obviously, CodeMirror and GtkSourceView handle texts in a different ways. So having the same output will be very difficult, but that's a good start.