SourceBuffer.setLanguage

Associates a gsv.SourceLanguage with the buffer.

Note that a gsv.SourceLanguage affects not only the syntax highlighting, but also the [context classes][context-classes]. If you want to disable just the syntax highlighting, see Source.bufferSetHighlightSyntax.

The buffer holds a reference to language.

class SourceBuffer
void
setLanguage

Parameters

language SourceLanguage

a gsv.SourceLanguage to set, or NULL.