Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
how to prevent textile in <pre>
TXP ver 4.0.1.
I need to write some Python code in article, so I use “pre” and “code” to enclose the following code, but “__” is convert to “i” in textile. How can I prevent this?
<pre>
<code>
class window(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent, -1)
</code>
</pre>
oh, It seems work fine in this forum with “pre” and “code”.
Last edited by zyf (2005-09-25 11:54:18)
Offline
Re: how to prevent textile in <pre>
Think this may help…
I was having this problem for quite some time, then I found this – seems to work.
Extra spaces in tags to display example here.
< notextile >
< pre >
< code >
…
< /code >
< /pre >
< /notextile >
[url=http://www.adamfellowes.com/]Adam Fellowes – web design and development[/url]
Offline
Re: how to prevent textile in <pre>
adamhf, your code doesn’t work for me. then I adjust the postion of “notextile” as follows, and it works ok now. thank you.
< pre>
< code>
< notextile >
…
< /notextile >
< /code >
< /pre >
Offline
#4 2006-02-06 13:54:38
- apo
- Member
- From: Germany
- Registered: 2004-10-27
- Posts: 53
Re: how to prevent textile in <pre>
hmmm… got the same problem and both solutions dont work. it always puts me an extra paragraph within the code, always beginning after the second line. does textile have problems with pasted code, maybe because of the EOL-escapes or something?
Offline
Re: how to prevent textile in <pre>
I still can’t get textile to recognize tabs, using both of the above methods. On this forum, just using a pre tag works, but it doesn’t work the same in Textpattern. Could the same version/revision of Textile be used in the next TXP release?
Offline
Pages: 1