Hello
My question is how to highlight strings from the text field of an input tiddler
as the first step in previewing the potential changes for a search/replace utility.
The primary use case is to highlight/replace keywords in macro definitions.
The steps are
- count the number of matches and echo the input parms
- generate the outputText (with highlighting applied to searchString matches (not rendered)
- render the outputText showing the highlighted string
The first two steps work as expected.
The last step works intermittently at best.
Steve
Here is the output showing
- the match count and input parameters
- the output text with highlighting applied to searchString matches
- the output text as rendered
formatTid.highlightString.png
Here is the code