Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[textile] How to display code inside a post
I’m so embarresed to ask a question that I should know, but I couldn’t find the answer.
I’d like to disply both, HTML and Textpattern code inside an artice, and I tried < code > and < nonscript > and none of them worked.
Thank you.
Offline
Re: [textile] How to display code inside a post
Using Textile, place
bc.
in front of the code.
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
Re: [textile] How to display code inside a post
or < bc: > or [ bc. ]?
Because only bc. doesn’t work.
Offline
Re: [textile] How to display code inside a post
bc. code here
only does one line, but bc.. multiline code here
does several lines of code. When you want to switch back to normal text, use p. marks the beginning of a normal paragraph
.
TXP Builders – finely-crafted code, design and txp
Online
Re: [textile] How to display code inside a post
Thnk you, but it works only for txp, not HTML and PHP
http://www.dazigned.com/blog/7/galeria-de-imagenes-en-textpattern
Offline
#6 2009-10-31 23:28:36
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [textile] How to display code inside a post
Malize wrote:
Thnk you, but it works only for txp, not HTML and PHP
It works for everything ;) Use it like this:
bc.
andbc..
should always be preceded and followed by a blank line- always add a space (not a new line) between
bc.
andbc..
and the first line of the code - if your code contains blank lines, use
bc..
and start the following paragraph withp.
- if it doesn’t, use
bc.
(the code can contain more than one line, just not blank ones)
Offline
Re: [textile] How to display code inside a post
Thanks, els, I think I finally got that :) (sometimes I’m a bit slow… :P)
Offline