set_style_scheme


Description:

public void set_style_scheme (SourceStyleScheme? scheme)

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

Note that a SourceStyleScheme affects not only the syntax highlighting, but also other 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 set_highlight_syntax, and setting the 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.

Parameters:

this

a SourceBuffer.

scheme

a SourceStyleScheme or null.