Code folding seems to be not part of GtkSourceView. Maybe this can be implemented by extending it in Julia.