highlightSelectionMatches

fun highlightSelectionMatches(config: HighlightSelectionMatchConfig = HighlightSelectionMatchConfig()): Extension

Extension that highlights all occurrences of the currently selected text.

When the user selects a non-empty text range, this plugin finds and decorates all matching occurrences throughout the document.