Buffer.ensureHighlight

void ensureHighlight(gtk.text_iter.TextIter start, gtk.text_iter.TextIter end)

Forces buffer to analyze and highlight the given area synchronously.

Note:

This is a potentially slow operation and should be used only when you need to make sure that some text not currently visible is highlighted, for instance before printing.

Parameters

startstart of the area to highlight.
endend of the area to highlight.