> I assume you're using it like this:
> {{{foo
> bar
> baz}}}
>
> Line breaks are important:
> {{{
> foo
> bar
> baz
> }}}
Basically, the first syntax produces a <code>...</code> block which
uses mono font, but does *not* preserve the whitespace. The second
syntax produces a <pre>...</pre> block, which uses mono font and does
preserve the whitespace as-is, without performing any automatic word-
wrapping. However, the PRE format in TW also has some default CSS
styling that puts the content within a box with a yellow-ish
background.
Fortunately, there *is* a way to use the CODE format in TW and still
preserve the whitespace, while not also getting the other CSS styles
that are associated with the PRE format (such as display:block, which
forces a linebreak before/after the code).
Try this:
@@white-space:pre;{{{your code starts
here and includes multiple
linebreaks and such}}}@@
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---