Gtk.TextBuffer.prototype.apply_tag_by_name

function apply_tag_by_name(name:String, start:Gtk.TextIter, end:Gtk.TextIter):void {
    // Gjs wrapper for gtk_text_buffer_apply_tag_by_name()
}

Calls Gtk.lookup on the buffer's tag table to get a Gtk.TextTag, then calls Gtk.TextBuffer.prototype.apply_tag.

name

name of a named Gtk.TextTag

start

one bound of range to be tagged

end

other bound of range to be tagged