Method GTK2.SourceBuffer()->set_language()


Method set_language

GTK2.SourceBuffer set_language(GTK2.SourceLanguage lang)

Description

Sets the source language the source buffer will use, adding GTK2.SourceTag tags with the language's patterns and setting the escape character with set_escape_char(). Note that this will remove any GTK2.SourceTag tags currently in the buffer's tag table.