escape "--" in markup

486 views
Skip to first unread message

Tom Fernandes

unread,
Jul 1, 2007, 12:15:54 PM7/1/07
to Tiddl...@googlegroups.com
Hi,
Subject is topic...

How can I escape two dashes like in "--verbose" when inserting them into a
tiddler?

thanks,


Tom

dawn ahukanna

unread,
Jul 1, 2007, 12:21:13 PM7/1/07
to Tiddl...@googlegroups.com
assuming you mean you don't want it "wikified":
1. enclosed the text with the following tags <nowiki> --verbose </nowiki>
2. place a tilde - "~" in front of the word e.g. ~--verbose
Dawn

FND

unread,
Jul 1, 2007, 12:41:50 PM7/1/07
to Tiddl...@googlegroups.com
> assuming you mean you don't want it "wikified"

I believe the problem is that the two dashes result in strikethrough
formatting.
I've tried using <nowiki> on this, but it doesn't seem to work.


-- F.

Tom Fernandes

unread,
Jul 1, 2007, 12:46:11 PM7/1/07
to Tiddl...@googlegroups.com
Hi,

> assuming you mean you don't want it "wikified":
> 1. enclosed the text with the following tags <nowiki> --verbose </nowiki>

works

> 2. place a tilde - "~" in front of the word e.g. ~--verbose

doesn't work - that's the one I initially tried :)

thanks!


Tom

Eric Shulman

unread,
Jul 1, 2007, 3:53:20 PM7/1/07
to TiddlyWiki
> > 1. enclosed the text with the following tags <nowiki> --verbose </nowiki>

Although the TW parser supports use of the HTML-style syntax,

<nowiki>--verbose</nowiki>

the TW native wiki-style syntax is to surround the unformatted text
content with tripled double-quotes:

"""--verbose"""

I like to think of the tripled quotes as saying something like:
"Leave this content alone... and I really, really, mean it!! " :-)

IMO, the wiki-style syntax is much simpler to use (and perhaps more
intuitive than the HTML-style syntax, except for people who regularly
write HTML anyway). It uses fewer characters and is much less
visually-intrusive than all that <foo>...</foo> punctuation. It is
also consistent with other TW wiki syntax that uses tripled character
sequences, such as CODE/PRE blocks:
{{{...}}}
or inline sliders (using NestedSlidersPlugin)
+++[label]content===

-e
Eric Shulman
TiddlyTools / ELS Design Studios

dawn ahukanna

unread,
Jul 1, 2007, 5:35:59 PM7/1/07
to Tiddl...@googlegroups.com
Eric,
Good call. I always forget the triple double-quotes.

Dawn.
--
http://dahukanna.net
Reply all
Reply to author
Forward
0 new messages