Adds a highlight to the view. Returns a tag that can be used
to refer to the highlight.
Returns:
an object that can be used as a tag
to refer to the highlight
Parameters:
-
p0 - the start offset of the range to highlight >= 0
-
p1 - the end offset of the range to highlight >= p0
-
p - the painter to use to actually render the highlight
Throws:
-
BadLocationException - if the specified location is invalid