get_markup


Description:

[ Version ( since = "5.18" ) ]
public string get_markup (TextIter start, TextIter end)

Returns the text in the specified range converting any text formatting to equivalent Pango markup tags.

This allows the styled text to be displayed in other widgets that support Pango markup, such as Label.

For very long ranges this function can take long enough that you could potentially miss frame renderings.

Parameters:

this

a Buffer

start

start of range as a TextIter

end

end of range as a TextIter

Returns:

a newly-allocated string containing the text with Pango markup, or null if start and end are invalid.