You can create a new tiddler like title: whatever you like e.g. mymacros tag: $:/tags/Macro text:
\define h(txt, color:#FF9) <mark style="background:$color$>$txt$</mark> save it. This is then called a global macro and you can call it everywhere you like You can add more macros to above tiddler. I may recommend to have a look at https://kookma.github.io/TW-Shiraz/ and specially this part: https://kookma.github.io/TW-Shiraz/#Tutorial%20Text%20Utilities Good luck Mohammad On Friday, April 10, 2020 at 10:16:54 AM UTC+4:30, Klaas Vaak wrote: > > Thanks for that additional input, Mohammad. > > Where would I have to put the macro code? In each tiddler text box? > > On 2020-Apr-10, at 07:55, Mohammad <[email protected] <javascript:>> > wrote: > > > > On Friday, April 10, 2020 at 8:46:07 AM UTC+4:30, Klaas Vaak wrote: >> >> Mat, thanks, @@background:#FF9; text@@ works, although the hex value can >> also be replaced by the word for the colour, as per TonyM’s reply. >> >> TonyM, thank you for that. >> >> Mohammad, <mark>text</mark> works well and is the simplest. The default >> colour setting is yellow, so if one wants a different colour Mat’s/TonyM’s >> syntax would be required. >> > > mark tag is also let you to set properties like below > > <mark style="background:bisque;">Hi</mark> > > > By the if you can use macro as I wrote above, macro is the simplest! like > below > \define h(txt, color:#FF9) <mark style="background:$color$>$txt$</mark> > > Then these are valid > > <<h Hi>> > > > or > > <<h Hi bisque>> > > > > >> >> Many thanks guys. >> >> >> On 2020-Apr-10, at 03:42, TonyM <[email protected]> wrote: >> >> background-color:yellow; Text@@ >> >> >> > -- > 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] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/870456c2-6f0b-49fe-a9b1-c9d7699a9412%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/870456c2-6f0b-49fe-a9b1-c9d7699a9412%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- 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/d4e76361-dec5-40a4-9edc-fc3dbd542e93%40googlegroups.com.

