set_language


Description:

public void set_language (Language? language)

Associates a [class@Language] with the buffer.

Note that a [class@Language] affects not only the syntax highlighting, but also the [context classes](./class.Buffer.html#context-classes ). If you want to disable just the syntax highlighting, see [[email protected]_highlight_syntax].

The buffer holds a reference to language.

Parameters:

this

a Buffer.

language

a Language to set, or null.




2022 vala-language.org