This function serializes the portion of text between start
and end in the rich text format represented by format.
formats to be used must be registered using
the gtk.TextBuffer to serialize
the rich text format to use for serializing
start of block of text to serialize
end of block of test to serialize
data, encoded as format