Highlight items
Highlight items
Description
Highlight items in an HTML file.
Input files
- optional: HTML files (.html | .xhtml)
- at least 1 items file (.txt)
Output files
This is a converter script which produces a highlighted HTML file for every input HTML file.
Context
Example
Using the following input HTML file and 'example' as the only item to highlight:
This is an example!
Highlighting words might be useful.
...the following HTML file results:
This is an example!
Highlighting words might be useful.
Common problems
Be careful when specifying multiple items where one item is a partial or complete substring of another item, because only one of the matches will be highlighted, overlapping matches are not considered.
Parameters
- be case-sensitive
-
Default: false
Source code
highlight.rb, highlight.yaml (GitHub)