TextBuffer.insertRange

Copies text, tags, and paintables between start and end and inserts the copy at iter.

The order of start and end doesn’t matter.

Used instead of simply getting/inserting text because it preserves images and tags. If start and end are in a different buffer from buffer, the two buffers must share the same tag table.

Implemented via emissions of the ::insert-text and ::apply-tag signals, so expect those.

Parameters

iter gtk.text_iter.TextIter

a position in buffer

start gtk.text_iter.TextIter
end gtk.text_iter.TextIter

another position in the same buffer as start