Buffer.setStyleScheme
void setStyleScheme(gtksource.style_scheme.StyleScheme scheme = null)Sets a gtksource.style_scheme.StyleScheme to be used by the buffer and the view.
Note that a gtksource.style_scheme.StyleScheme affects not only the syntax highlighting, but also other gtksource.view.View 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 gtksource.buffer.Buffer.setHighlightSyntax, and setting the gtksource.style_scheme.StyleScheme 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.
Parameters
scheme | a #GtkSourceStyleScheme or null. |