Steve, Thanks for the clarification. So you are viewing the tiddler content as code and want the target within that to be highlighted?
I understand you have a solution but this is already handled in multiple ways. - The codemirror plugin and other tools are available with additional edit mode features such as search/and replace. Go to my playground wiki here and you can install plugins from multiple sources (4 libraries) and they are saved in local storage you can experiment, reload for plugins without saving works. - The dynannotate plugin is designed to help with annotations and search - The highlight plugin is also designed for this. - There is a search that highlights the text in the page I will post back when I find it, just type you target in the search and its highlighted if on the page, I am yet to test with code view Futures; I have built a smart-showcode tool (95% done) and I will address this need for highlighting not you point it out. Regards Tony On Tuesday, July 21, 2020 at 8:35:55 AM UTC+10, steve wrote: > > Hi Tony, Saq: > > More about my use case ... > > When I look at macro (code) in the editor it is very easy for me to > overlook variable or macro names that I want to change > and so I fail to update all of them. The purpose of the > formatTid.highlightText macro is to create a highlighted copy of the macro > code > with the css @@color:blue; targetString@@ imbedded around each instance of > the targetString. > > Tony: I am working through your suggestions -- thanks. > Saq: I tried dynannotate and it does what I want with regular text -- > thanks! I could not get it to work with text within macro code. > > Is there a why to treat/convert/escape (?) macro code (ie anything between > \define and \end as a string without executing/running it? > > Thanks Again > Steve > > On Monday, July 20, 2020 at 5:33:06 PM UTC-4, Saq Imtiaz wrote: >> >> @steve just in case you haven't seen it, there's a plugin that does >> something very similar: >> >> >> https://tiddlywiki.com/prerelease/#%24%3A%2Fplugins%2Ftiddlywiki%2Fdynannotate >> >> Check out the examples tab in the plugin tiddler. >> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/84168d5b-95ee-460e-b603-7679eb545b99o%40googlegroups.com.

