Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-14 10:11:31

grig
New Member
Registered: 2006-08-07
Posts: 6

how can I have newlines in a textile bc block?

I’m using bc. to display blocks of code and console output. Textile closes the block when encounters ‘\n\n’ sequence. It ignores the spaces too. Any suggestion is welcome.

Thank you.

Offline

#2 2009-12-14 11:30:45

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

Re: how can I have newlines in a textile bc block?

Textile’s block elements (pagagraps, blockcodes, blockquotes etc) have strong/long-block feature:

bc. Short blog. Cut off from two newlines.
bc.. Long block. Cut off from two newlines and a new starting block.

Long block can be ended by starting new paragraph with p..

bc.. My code

Code continues.

p. Text continues.

End results:

My Code

Code continues

Text continues.

Offline

#3 2009-12-14 15:28:12

grig
New Member
Registered: 2006-08-07
Posts: 6

Re: how can I have newlines in a textile bc block?

It works. Thanks a lot. Where can I read more about textile?

Offline

#4 2009-12-14 15:46:08

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: how can I have newlines in a textile bc block?

I recommend you the Textile Reference Manual


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2009-12-18 04:43:28

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: how can I have newlines in a textile bc block?


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

Board footer

Powered by FluxBB