Buffer.getHighlightSyntax

bool getHighlightSyntax()

Determines whether syntax highlighting is activated in the source buffer.

Returns

true if syntax highlighting is enabled, false otherwise.