Steve,
The Playground link https://anthonymuscio.github.io/playground.html
The pre-release version (may be out of date)
https://anthonymuscio.github.io/empty-pre-release.html
Regards
Tony
On Wednesday, July 22, 2020 at 4:58:05 AM UTC+10, steve wrote:
>
> Example output with a bit more color
>
HI Eric:
>From your latest email I've incorporated the number of times targetString
was matched and the div for the showOutput.
I've also echoed the input parameters to formatTid.highlightText and added
a "pane" format for the target string.
Thanks to your help it keeps getting better and
On Tuesday, July 21, 2020 at 8:05:57 AM UTC-7, steve wrote:
>
>
>
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;")
.highlight { $style$ }
<$vars
Eric:
I made some additional tweaks to your solution to:
* narrow selection list to list of tiddlers that actually contain the
targetString
* provide a GO button so that macro does not have to run for every
keystroke in the edit box
* added a reveal so that macro is run only if a source
On Monday, July 20, 2020 at 4:19:50 PM UTC-7, steve wrote:
>
> This time I tried a macro with a filter that used goFish in a filter. See
> below.
> Nothing was listed in the outputText.
> Tomorrow I'll look at the literal output text.
>
The problem here is that the input text contains quotes
Update:
This time I tried a macro with a filter that used goFish in a filter. See
below.
Nothing was listed in the outputText.
Tomorrow I'll look at the literal output text.
\define goFish()
!!! This example has five goFish
!!! This goFish is in a macro.
<$list
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
Eric:
Very tricky indeed but you made it look simple!
It worked - yay! I am trying some more complex examples including
embedded macro calls and will report back.
Thanks!
Steve
On Monday, July 20, 2020 at 6:13:07 PM UTC-4, Eric Shulman wrote:
>
> On Monday, July 20, 2020 at 1:55:57 PM
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
On Monday, July 20, 2020 at 1:55:57 PM UTC-7, steve wrote:
>
> I am working on a macro to highlight target strings within the text field
> of a tiddler.
> The use case is to make it easier to for me see where the targetStrings
> are (if any).
>
> My question is how to highlight the
Steve,
Just a quick response for now. As I am not exactly sure of the mechanism
you are trying to use.
- Are you aware of the freelinks plugin?, if the tiddler title exists it
will be highlighted in the text. It may be a more general solution.
- This plugin is making use of other
11 matches
Mail list logo