SourceBuffer.with_language
Description:
[ CCode ( has_construct_function = false ) ]
public SourceBuffer.with_language (SourceLanguage language)
public SourceBuffer.with_language (SourceLanguage language)
Creates a new source buffer using the highlighting patterns in language
.
This is equivalent to creating a new source buffer with a new tag table and then calling set_language.
Parameters:
language |
Returns:
a new source buffer which will highlight text according to the highlighting patterns in |