[tw] Escaping "<<" and ">>" characters

15 views
Skip to first unread message

Nicolas Syssoieff

unread,
Feb 27, 2008, 4:23:22 AM2/27/08
to tiddlywiki
Hi guys,

I know this has been answered before, but I can't find it again.
Suppose I want to create a newTiddler button, with a text parameter, so that every new Tiddler comes with text inside (like a hint, guidelines, or whatever).
The following does not work, because the syntax is not compatible with inserting << or >> in the line, of course :
<<newTiddler text:"<<tiddler Hints>>">>

What is the appropriate syntax to escape the "inside" << and >> ?

Thanks,
Nicolas.

FND

unread,
Feb 27, 2008, 5:52:53 AM2/27/08
to Tiddl...@googlegroups.com
> What is the appropriate syntax to escape the "inside" << and >> ?

Normally you'd escape the the nested chevrons by adding a backslash:
<<newTiddler text:"<<tiddler Hints>\>">>
However, that won't work here, because it inserts a literal backslash
into the resulting tiddler - so let's try it with evaluated parameters:
<<newTiddler text:{{"<<tiddler Hints>" + ">"}}>>

HTH.


-- F.

Eric Shulman

unread,
Feb 27, 2008, 7:44:24 AM2/27/08
to TiddlyWiki
> into the resulting tiddler - so let's try it with evaluated parameters:
> <<newTiddler text:{{"<<tiddler Hints>" + ">"}}>>

Using \ *inside* the evaluated parameter also works:

<<newTiddler text:{{"<<tiddler Hints>\>"}}>>

-e

Nicolas Syssoieff

unread,
Feb 27, 2008, 7:48:01 AM2/27/08
to Tiddl...@googlegroups.com
Aah, I knew I had seen it somewhere, with escaped symbol like "\", but I couldn't remember the evaluated parameter with {{ and }}

Thanks a lot guys !
Nicolas.
Reply all
Reply to author
Forward
0 new messages