SourceBuffer.setLanguage

Associate a GtkSourceLanguage with the buffer. If language is not-NULL and syntax highlighting is enabled (see gtk_source_buffer_set_highlight_syntax()), the syntax patterns defined in language will be used to highlight the text contained in the buffer. If language is NULL, the text contained in the buffer is not highlighted. The buffer holds a reference to language.

class SourceBuffer
void
setLanguage

Parameters

language SourceLanguage

a GtkSourceLanguage to set, or NULL. [allow-none]

Meta