Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-04-12 17:14:52

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

[TEXTILE] List with bc.

Hi at all.

I need to write a list with bc. nested such as:

1. nnnnnnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnn
2. nnnnnnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnn
3. nnnnnnnnnnnnnnnnnnnnn CODE nxnxnxnxnxn
nxnxnxnxn
/CODE
4. nnnnnnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnn

but if I use bc. it require a white line before and after and list restart from 1 after.

There is some solution?

Offline

#2 2014-04-12 18:22:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: [TEXTILE] List with bc.

Well, it’s perhaps not quite a “solution” as such, but you can do continuation lists with Textile like this:

# Number one
# Number two
# Number three

 bc. Code here

#4 Number four

Remove the white space at the start of the bc.: had to put it in to stop the forum from Textiling it!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2014-04-12 20:10:19

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [TEXTILE] List with bc.

Other option is to use inline code tags:

#. Some plaintext, @some
code@ and some more regular text.
# Second item.

The above generates:

<ol>
	<li>Some plaintext, <code>some
code</code> and some more regular text.</li>
	<li>Second item.</li>
</ol>

Then style the code element as you want it.

Offline

#4 2014-04-13 06:44:46

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: [TEXTILE] List with bc.

Thankyou Gocom in line code is ok, but i need a block code, and nc. use a pre tag.
Thankyou Stef I don’t remember #numer code….

sorry my english it’s so bad. what you mean with

had to put it in to stop the forum from Textiling it!

?

Offline

#5 2014-04-13 15:15:33

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: [TEXTILE] List with bc.

MarcoK wrote #280210:

Thankyou Gocom in line code is ok, but i need a block code, and nc. use a pre tag.
Thankyou Stef I don’t remember #numer code….

sorry my english it’s so bad. what you mean with

?

He meant that he put whiste in front of the bc tag so that Textile did not render the tag, i.e. to stop it from doing what it would normality do


…. texted postive

Offline

#6 2014-04-14 07:41:33

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: [TEXTILE] List with bc.

Ahhhhhh…. it’s ok. I understand!!! Thankyou

Offline

Board footer

Powered by FluxBB