Use GtkSourceView and implement simple syntax highlighting