Plain Text

142 views
Skip to first unread message

FuriousEskimo

unread,
Aug 15, 2007, 10:37:04 AM8/15/07
to TiddlyWiki
I was wondering if anyone could help me to remove / disable the inline
formating options. I need to store lots of text which has a number of
@ and !s which give me highlighted text and heading fonts due to the
inline formatting. If anyone could help me to get around this, that'd
be great.

FND

unread,
Aug 15, 2007, 10:40:09 AM8/15/07
to Tiddl...@googlegroups.com
> I was wondering if anyone could help me to remove / disable the inline
> formating options.

Wrap it in {{{curly brackets}}}:
http://tiddlywiki.com/#MonospacedText


-- F.

Eric Shulman

unread,
Aug 15, 2007, 11:38:03 AM8/15/07
to TiddlyWiki
> Wrap it in {{{curly brackets}}}:
> http://tiddlywiki.com/#MonospacedText

While this works, it also changes the appearance of the text (using
monospaced font).

To prevent formatting of content, you can use "super-quoting" (triple
double-quotes), like this:

"""This has some @@ symbols in it"""

Note that any **surrounding** formatting are still applied to the
unformatted text.... only the formatting **inside** the super-quotes
is ignored.

Also, if you prefer, there is a more HTML-like alternative syntax
instead of using the """...""" sequence.

<nowiki>...</nowiki>

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios


FuriousEskimo

unread,
Aug 15, 2007, 6:26:51 PM8/15/07
to TiddlyWiki
That's a great help, thanks. Is there way however to change how
TiddlyWiki deals with text. i.e. I could enter @@test@@ in a textbox
within prefixing ''' and it would store @@test@@ as plain text and I
wouldn't have to worry about formatting at all.

Eric Shulman

unread,
Aug 15, 2007, 6:52:44 PM8/15/07
to TiddlyWiki
On Aug 15, 3:26 pm, FuriousEskimo <shane.tee...@gmail.com> wrote:
> That's a great help, thanks. Is there way however to change how
> TiddlyWiki deals with text. i.e. I could enter @@test@@ in a textbox
> within prefixing ''' and it would store @@test@@ as plain text and I
> wouldn't have to worry about formatting at all.

While I don't recommend it, you CAN disable the formatter for "@@", so
that it will be treated as simple literal content rather than wiki-
syntax:

1) create a tiddler called [[DisableStyleByCharPlugin]]
2) put the following javascript in the tiddler:

for (var i=0; i<config.formatters.length; i++)
if (config.formatters[i].name=="styleByChar") {
config.formatters[i].handler=
function(w)
{createTiddlyElement(w.output,"span",null,null,"@@");}
break;
}

3) tag the tiddler with "systemConfig"
4) save-and-reload

Note that, while this will accomplish what you want, you will run into
problems if anyone else copies any of your tiddler content without
also having your [[DisableStyleByCharPlugin]] tiddler installed as
well.

Simon Baird

unread,
Aug 15, 2007, 7:03:33 PM8/15/07
to Tiddl...@googlegroups.com
You could try editing your ViewTemplate and replace this:

<div class='viewer' macro='view text wikified'></div>


with this

<div class='viewer'><div macro='view text'></div></div>

Ie remove "wikified".
--
simon...@gmail.com

MM

unread,
Aug 16, 2007, 10:38:00 AM8/16/07
to Tiddl...@googlegroups.com
Use TaggedTemplateTweak with Simon's solution.. create a PlainViewTemplate and tag the tiddler with Plain..

http://www.tiddlytools.com/#TaggedTemplateTweak
Reply all
Reply to author
Forward
0 new messages