Buffer.setLanguage
void setLanguage(gtksource.language.Language language = null)Associates a classLanguage with the buffer.
Note that a classLanguage affects not only the syntax highlighting, but also the context classes. If you want to disable just the syntax highlighting, see [gtksource.buffer.Buffer.setHighlightSyntax].
The buffer holds a reference to language.
Parameters
language | a #GtkSourceLanguage to set, or null. |