Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-12 19:37:19

Distrahera
Member
Registered: 2008-09-20
Posts: 30

[textile] How di I escape html in textile?

As the title says;

How do I, in an article using textile, write html examples or txp code without textpattern wanting to render it as code? I simply want the code examples to show on the site =)

Havn’t found the function – any help appreciated =)

Offline

#2 2008-12-12 20:05:41

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

Re: [textile] How di I escape html in textile?

Use code tags either:

There is some normal text surrounding it, @and some inline <txp:tag /> code there too@ and some more text.

So you can use “@“s to output inline code.

For a block presentation you can use:

bc. We got a big multiple line blockcode, presented inside <pre><code></code></pre>.

Or if you have empty lines also, you can use strong blockcode:

bc.. This is strong blockcode presentation, note the two dots.

That strong block code you can end by starting new paragraph (by using p.).

Edit. PS. rah_textile_bar might help become handy for you :)

Edit2&3: typo. typo. typo.

Last edited by Gocom (2008-12-12 20:09:28)

Offline

#3 2008-12-12 20:05:55

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [textile] How di I escape html in textile?

You can use any of these:

bc.
bc..
@...@
<code>...</code>
pre.

(Textile Reference Manual)

Offline

#4 2008-12-13 17:01:12

Distrahera
Member
Registered: 2008-09-20
Posts: 30

Re: [textile] How di I escape html in textile?

Thanks!

Offline

Board footer

Powered by FluxBB