Continue numbering around codeblock.

185 views
Skip to first unread message

DanLinder

unread,
May 7, 2009, 12:14:51 PM5/7/09
to TiddlyWiki
I'm trying to put sample code within a numbered/bulleted block:
# item 1
# item 2
{{{
Multi-line
Sample code for item 2
Another line
}}}
# item 3

But when this comes out, it looks like this:
1. item 1
2. item 2
Multi-line
Sample code for item 2
Another line
1. item 3

How do I setup my code to keep the numbering and bullets running
around the {{{/}}} block?

Thanks,

Dan

Eric Shulman

unread,
May 7, 2009, 12:23:02 PM5/7/09
to TiddlyWiki
> I'm trying to put sample code within a numbered/bulleted block:
> # item 1
> # item 2
> {{{
> Multi-line
> Sample code for item 2
> Another line}}}
> # item 3
>
> How do I setup my code to keep the numbering and bullets running
> around the {{{/}}} block?

Try this:
# item 1
# item 2{{span{
{{{
Multi-line
Sample code for item 2
Another line
}}}
}}}
# item 3

i.e., surround the code block with a CSS wrapper ("{{span{...}}}"),
where the initial "{{span{" is on the same line as the bullet item

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Dan Linder

unread,
May 7, 2009, 12:26:38 PM5/7/09
to Tiddl...@googlegroups.com
Eric,


On Thu, May 7, 2009 at 11:23, Eric Shulman <elsd...@gmail.com> wrote:
> How do I setup my code to keep the numbering and bullets running
> around the {{{/}}} block?

i.e., surround the code block with a CSS wrapper ("{{span{...}}}"),
where the initial "{{span{" is on the same line as the bullet item

Thank you, that worked very well.

Dan

************* *********** ******* ***** *** **
"Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal
"I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author)
** *** ***** ******* *********** *************


 

Reply all
Reply to author
Forward
0 new messages