SourceBuffer.setHighlightSyntax

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 gsv.SourceLanguage set with Source.bufferSetLanguage.

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

class SourceBuffer
void
setHighlightSyntax
()

Parameters

highlight bool

TRUE to enable syntax highlighting, FALSE to disable it.