Buffer.setHighlightSyntax

void setHighlightSyntax(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 gtksource.language.Language set with gtksource.buffer.Buffer.setLanguage.

If highlight is false, syntax highlighting is disabled and all the gtk.text_tag.TextTag objects that have been added by the syntax highlighting engine are removed from the buffer.

Parameters

highlighttrue to enable syntax highlighting, false to disable it.