Text_buffer.HighlightSourceCharacter-range style overlays.
A highlight applies a style overlay to a range of grapheme offsets in the buffer. Highlights are layered by priority (higher wins) and grouped by ref_id for batch removal via remove_highlights_by_ref.
A highlight overlay.
val make :
start_offset:int ->
end_offset:int ->
style:Ansi.Style.t ->
?priority:int ->
ref_id:int ->
unit ->
tmake ~start_offset ~end_offset ~style ~ref_id () is a highlight covering grapheme offsets from start_offset (inclusive) to end_offset (exclusive).
priority defaults to 0. Higher values render on top. ref_id groups related highlights for batch removal via remove_highlights_by_ref.
style h is the style overlay.