Hi Stephen,

How about a *<<hilite>>* macro, something like this...

\define hilite(text, color)
@@background-color:$color$;&nbsp;$text$&nbsp;@@
\end

I like to put a space before and after highlighted text, so you can really 
see the background. You could probably fiddle with this, and move $color$ 
into the macro itself, rather than as a parameter.

Hope this helps,

Hegart.


On Sunday, 28 February 2016 11:46:44 UTC+13, Stephen Kimmel wrote:
>
> My goal is to highlight some text with a background colour that changes 
> whenever I select a different palette or change the colours on the palette. 
> In general I've been using the form
>
> @@background-color:yellow; I'm using a yellow background@@ 
>
> which works just fine but doesn't change colors with the palette change. 
> Since I can retrieve a colour from the palette using the form:
>
> {{$:/palettes/Vanilla##alert-background}}
>
> I tried this but alas it didn't work:
>
> @@background-color:{{$:/palettes/Vanilla##alert-background}}; Retrieving 
> from the data tiddler doesn't work@@
>
> I can also retrieve a colour from the palette using the colour macro in 
> the form: <<colour alert-background>> and that retrieves the actual value 
> but 
>
> @@background-color:<<colour alert-background>>; And neither does the 
> colour macro@@
>
> doesn't work either.
>
> Am I missing something obvious? Is there a reasonable workaround?
>
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/759fadcf-db95-4bff-9132-c85cc5d4eee3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to