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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fe41d109-4bf4-40a6-8a25-15505d52ed5an%40googlegroups.com.

Reply via email to