set_highlight_syntax


Description:

public void set_highlight_syntax (bool highlight)

Controls whether syntax is highlighted in the buffer.

If highlight is true, the text will be highlighted according to the syntax patterns specified in the [class@Language] set with [[email protected]_language].

If highlight is false, syntax highlighting is disabled and all the [[email protected]] objects that have been added by the syntax highlighting engine are removed from the buffer.

Parameters:

this

a Buffer.

highlight

true to enable syntax highlighting, false to disable it.




2022 vala-language.org