To explain the solution I just posted
The modified code is as below. The issue here is if you remove the
$codeblock and pass the whole macro output to a single $codeblock the macro
content will be displayed!
If you use the $wikify widget the line breaks will be removed. So what do
you think?

\define showLinesc(tid,from,to,language)<$vars length={{{
[[$to$]subtract[$from$]add[1]] }}}><$set name="lines"
filter="[[$tid$]get[text]splitregexp[\n]addsuffix[
]first[$to$]last<length>]"><ol start="$from$"><$list
filter="[enlist:raw<lines>]" variable="line"><li><$codeblock
code=<<line>> language=<<__language__>>/></li></$list></ol></$set></$vars>
\end

-- 
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/CAAV1gMAR7kOYJmxg2%3DZaELdov%3DKST%3D4W%2BscQWGhG0HQQDTv4UA%40mail.gmail.com.

Reply via email to