On Tuesday, July 21, 2020 at 8:05:57 AM UTC-7, steve wrote: > > <!-- Future Ideas > * display number of matches > * use CSS for highlighting not just color > --> >
Here's a version that displays the number of matches and uses a CSS class definition: \define formatTid.highlightText(source:"MainMenu" targetString:"Handler" style:"color:blue;font-weight:bold;") <style> .highlight { $style$ } </style> <$vars outputText={{{ [{$source$}splitregexp[$targetString$]join[@@.highlight $targetString$@@]] }}}> <$text text={{{ [{$source$}splitregexp[$targetString$]count[]subtract[1]] }}} /> matches: <div style="border:1px solid;white-space:pre-wrap;font-family:monospace;"><< showOutput>></div> \end Note that I also changed from using a table to using a div enjoy, -e -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/acbe7984-1e78-4b01-87a3-6c4c8ac31a0eo%40googlegroups.com.