Highlighter
Highlight text in a string based on a search term and using <mark> tags.
Example
General usage
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos blanditiis tenetur unde suscipit, quam beatae rerum inventore consectetur.
Download:
Documentation
FluentHighlighter Class
Parameters
Name | Type | Default | Description |
---|---|---|---|
CaseSensitive | bool | False | Gets or sets a value indicating whether the highlighted text is case sensitive. |
Delimiters | string | Gets or sets the list of delimiters chars. Example: ' ,;'. | |
HighlightedText | string | Gets or sets the fragment of text to be highlighted. | |
Text | string | Gets or sets the whole text in which a fragment will be highlighted. | |
UntilNextBoundary | bool | False | If true, highlights the text until the next regex boundary. |