Thank you Eric!

Works like a charm!

-Atro

On Thursday, November 26, 2020 at 1:56:14 AM UTC+3:30 Eric Shulman wrote:

> Place the following in a tiddler (e.g., "ShowLinesMacro"), tagged with 
> $:/tags/Macro"
> \define showLines(tid,from,to)
> <$vars length={{{ [[$to$]subtract[$from$]add[1]] }}}>
> <$set name="lines" 
> filter="[[$tid$]get[text]splitregexp[\n]first[$to$]last<length>]">
> <pre><$list filter="[enlist:raw<lines>]" variable="line"><$text 
> text=<<line>>/><br></$list></pre>
> </$set>
> </$vars>
> \end
>
> which can then be invoked using:
> <<showLines "Slab Catalyst" 3 5>>
> <hr>
> <<showLines "Slab Catalyst" 8 19>>
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e3cb3461-4555-49fa-a047-f2c0ca019cean%40googlegroups.com.

Reply via email to