Display of HTML code inside a tiddler

5 views
Skip to first unread message

MarkPea

unread,
May 19, 2008, 10:58:17 AM5/19/08
to TiddlyWiki
I'm banging my head against a wall on this one. I keep track of all my
hacking on Elgg using TW. But keeping HTML/php formatting intact is a
pain in the botty department. For example:

I need to record this:

diff -iwBu devel/mod/blog/lib.php /var/www/elgg_9/mod/blog/lib.php

--- devel/mod/blog/lib.php 2008-03-25 15:57:15.000000000 -0400
+++ /var/www/elgg_9/mod/blog/lib.php 2008-05-02 15:15:41.000000000
-0400
@@ -58,15 +58,15 @@
if (isloggedin() && user_info("user_type", $_SESSION['userid']) !=
"external") {

I can put {{{ arounf the diff command, but I want to preserve the
output as is and the code keeps getting interpreted when I want it not
so. Putting {{{ around the whole block just removes all the newlines
and sticks everything onto a single line.

Thanks for any help chaps.

Mark

FND

unread,
May 19, 2008, 11:07:33 AM5/19/08
to Tiddl...@googlegroups.com
> I can put {{{ arounf the diff command, but I want to preserve the
> output as is and the code keeps getting interpreted

Are you using closing brackets to end the block:
{{{
[code]
}}}
Also note that there's a difference between such a block and using those
brackets {{{inline}}}.

More info here:
http://www.tiddlywiki.org/wiki/Escaping

HTH.


-- F.

MarkPea

unread,
May 19, 2008, 4:21:11 PM5/19/08
to TiddlyWiki
This has done the trick. Brilliant! The 'escaping' link was very
useful.
Ta mate!
M
Reply all
Reply to author
Forward
0 new messages