.insert_highlight | R Documentation |
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)
text |
The text string where highlighting is to be applied. |
start |
The starting position of the substring to highlight. |
end |
The ending position of the substring to highlight. |
highlight |
A character vector of length two specifying the opening and closing highlight markers. |
A character string with the specified substring highlighted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.