Hi Javier,
Glad you like it!
It does not read a whole tiddler, it read what you pass to src parameter!
It can read a whole tiddler like mytiddler as src:{{myTiddler}}
For your case you can have your own macro as below with any customization
you like
\define hjl(tid begin end hlrange language offset:0)
<$macrocall $name=hsline src={{{[<__tid__>get[text]] }}}
begin=<<__begin__>> end=<<__end__>> hlrange=<<__hlrange__>>
language={{{[<__tid__>get[lang]] }}} offset=<<__offset__>> />
\end
This wrapper gets the tiddler name contains the code and extract the text
and language from text and lang fields to pass to hslines!
You can have more customization!
Best wishes
Mohammad
On Mon, May 3, 2021 at 7:07 PM Javier Eduardo Rojas Romero <
[email protected]> wrote:
> On Thu, Apr 29, 2021 at 03:22:55PM +0430, Mohammad Rahmani wrote:
> > I am thinking of publishing it as a small independent pugin! I am not
> sure
> > if there is any interest in the community for that!
>
> I've just had a look, and this is great! I've started using Tw for
> making slides, and this feature you now bring fills one of the gaps I
> had.
>
> I have a small suggestion: since you have whole tiddlers dedicated to
> the code you show/hightlight, would you consider storing in those
> tiddlers the language type? say, for a python code tiddler, add in a
> particular field the language name, and have the hightlight macro refer
> to that field, instead of having the macro user say that the file is a
> python one?
>
> Nonetheless, this is quite nice, thanks for your work!
>
> --
> Javier
>
> --
> 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/YJAKmjakdai0HNKE%40alamut.home.org
> .
>
--
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/CAAV1gMAygd5KR9-x56i7BvqmrvrX8CRuS9O%2BOjNneK3PW0xK-Q%40mail.gmail.com.