Inserts highlight markers around a specified substring in a text string. Used to visually emphasize search query matches in the text.
.insert_highlight(text, start, end, highlight)
A character string with the specified substring highlighted.
The text string where highlighting is to be applied.
The starting position of the substring to highlight.
The ending position of the substring to highlight.
A character vector of length two specifying the opening and closing highlight markers.