SourceBuffer.setStyleScheme

Sets a gsv.SourceStyleScheme to be used by the buffer and the view.

Note that a gsv.SourceStyleScheme affects not only the syntax highlighting, but also other gsv.SourceView features such as highlighting the current line, matching brackets, the line numbers, etc.

Instead of setting a NULL scheme, it is better to disable syntax highlighting with Source.bufferSetHighlightSyntax, and setting the gsv.SourceStyleScheme with the "classic" or "tango" ID, because those two style schemes follow more closely the GTK+ theme (for example for the background color).

The buffer holds a reference to scheme.

class SourceBuffer
void
setStyleScheme

Parameters

scheme SourceStyleScheme