Referring to Find macro announcement 
(https://groups.google.com/d/msg/tiddlywiki/I-tJ-ITpfi4/VhrgQ2xcGgAJ)
I would like to introduce some application of this incredible macro here.

Display macros as separate block

Concept

Macros in Tiddlywiki are stored in tiddlers tagged with $:/tags/Macro and 
their contents are hidden. For documentation purpose it is desired to show 
macros in separate sections with macro name as heading and content wrapped 
into <pre> tag.

Using find with delimiters begin="\define" and end="\end" can extract 
macros from any tiddler. When a macro is extracted a second find run on the 
result with start=" " and end="(" can extract the macro name.

Usage

In any tiddler contains macros, put the below script

!! Macro
<<<
<<show-macro>>
<<<

Limitation

The show-macro works based on delimiter. If macro is define as a single 
line (with no \end delimiter) the macro may fail.

Install

Drag and drop the below macros into your wiki

   - macro/find <file:///G:/TW/TW-Findmacro/Find%20macro.html#macro%2Ffind>
   - macro/show-macro 
   <file:///G:/TW/TW-Findmacro/Find%20macro.html#macro%2Fshow-macro>

 
*See demo here*
: 
file:///G:/TW/TW-Findmacro/Find%20macro.html#Application%3A%20Show%20Macro%20Namen%20and%20Contents



-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e434f4b4-5c1a-427e-8ca5-c2ba26f779b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to