according to the highlighting patterns in language.
Buffer.newWithLanguage
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 gtksource.buffer.Buffer.setLanguage.
Parameters
language | a #GtkSourceLanguage. |
Returns
a new source buffer which will highlight text