Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
Re: how can I have newlines in a textile bc block?
I recommend you the Textile Reference Manual
Offline
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