Gtk.TextBuffer

const Gtk = imports.gi.Gtk;

let text_buffer = new Gtk.TextBuffer({
    tag_table: value,
    text: value,
});
  

You may wish to begin by reading the <link linkend="TextWidget">text widget conceptual overview</link> which gives an overview of all the objects and data types related to the text widget and how they work together.

Hierarchy

  • GObject.Object
    • Gtk.TextBuffer