Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-21 15:53:28

arevelation
New Member
From: Here
Registered: 2004-10-24
Posts: 2
Website

Pre tags don't work properly in textpattern but do here

I’m having real trouble entering code snippets with textile… is there any work underway to fix this? see the example below, i’m attempting to add some pre formated code, I don’t want to reformat my code to make this work. Any solution?
I may try to fix the textile class myself, I’d love to textile 100% but it just doesn’t work for me :(

Having typed it all up i’ve found that it’s all ok in this forum. enter the code below in a textpattern article and you get different to what you get here… odd.

<pre><code>&lt;pre>&lt;code>
.someclass{ color:#ff0000;
}
#someid{ text-size:80%;
}
&lt;/code>&lt;/pre></code></pre>

Offline

#2 2005-09-25 11:59:27

zyf
Member
From: Harbin, China
Registered: 2005-05-10
Posts: 20
Website

Re: Pre tags don't work properly in textpattern but do here

arevelation, It doesn’t work for me too.

I enclose python code with “pre” and “code”, and some code is converted by textile. I just post here

http://forum.textpattern.com/viewtopic.php?id=11621

a bug?

Offline

#3 2005-11-02 09:35:10

adamhf
New Member
From: London
Registered: 2005-10-24
Posts: 2
Website

Re: Pre tags don't work properly in textpattern but do here

I was having this problem for quite some time, then I found this – seems to work.

(Edit: updated to display your code properly. :) -Mary)

<pre><code>&lt;notextile&gt;
&lt;pre&gt;
&lt;code&gt;

&lt;/code&gt;
&lt;/pre&gt;
&lt;/notextile&gt;</code></pre>

Last edited by Mary (2005-11-02 12:18:52)


[url=http://www.adamfellowes.com/]Adam Fellowes – web design and development[/url]

Offline

Board footer

Powered by FluxBB