SourceBuffer.setLanguage

Associates a #GtkSourceLanguage with the buffer.

Note that a #GtkSourceLanguage affects not only the syntax highlighting, but also the [context classes][context-classes]. If you want to disable just the syntax highlighting, see gtk_source_buffer_set_highlight_syntax().

The buffer holds a reference to @language.

class SourceBuffer
void
setLanguage

Parameters

language SourceLanguage

a #GtkSourceLanguage to set, or %NULL.

Meta