Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-16 10:53:14

frequency decoder
New Member
Registered: 2006-03-16
Posts: 3

[issue] CODE tags within PRE tags always getting Textiled

Hi guys and gals,

I’m wanting to insert the following HTML code snippit within a blog post but Textile always seems to format the CODE tag:

< pre >
< code class=“html” >
blah de blah blah blah
< /code >
< /pre >

i.e. it leaves the PRE tag as is but always converts the CODE tag to:

&amp;lt;code class=“html”&amp;gt;

I have tried all possible combinations of < notextile >, == and indenting the tags by one character but nothing seems to work.

This is stopping my JavaScript syntax highlighter from ever recognising the code block (which has to be stipulated within PRE tags).

Any ideas?

P.S. I’m running Textpattern version: 4.0.3 (r1188)

Last edited by frequency decoder (2006-03-16 10:55:50)

Offline

#2 2006-03-16 23:04:55

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [issue] CODE tags within PRE tags always getting Textiled

Looks like a bug. It works fine if you don’t use the class.


Alex

Offline

#3 2006-03-17 08:27:36

frequency decoder
New Member
Registered: 2006-03-16
Posts: 3

Re: [issue] CODE tags within PRE tags always getting Textiled

Yep, I’ve just figured out myself that it’s the className!

I’ll shift it into the pre tag and change the Syntax highlighter to check for the class there.

Thanks for the reply Zem.

Take Care,
Brian.

Offline

#4 2006-03-17 08:54:41

frequency decoder
New Member
Registered: 2006-03-16
Posts: 3

Re: [issue] CODE tags within PRE tags always getting Textiled

OK, so the following seems to work (I’ve changed the syntax highlighter to check the pre node for the className):

< pre class=“javascript” >< code > < notextile > var a = “testing”; < /notextile > < /pre >< /code >

P.S. Unrelated but not worthy of a new thread: The “preview” button within my TXP installation has preview written with a lowercase “p” i.e. “preview” and not “Preview” (I notice the forum here has an uppercase “P”). I have opened the relevant language file in order to change it myself but the file contains glyphs/characters from other languages that are not installed on my machine and so I can’t save it without mangling the characters in question. Is there a copy of the file with an uppercase “P” available to download somewhere… and yes, I know im being anal but it kind of looks strange that lowercase “p” within the comment form…

Last edited by frequency decoder (2006-03-17 09:52:12)

Offline

#5 2006-04-12 23:33:42

neon
New Member
Registered: 2005-11-07
Posts: 6

Re: [issue] CODE tags within PRE tags always getting Textiled

i can’t get notextile working

with:

< code >
< notextile >
# echo "no *textile* here"
< /notextile >
< /code >

i get:

  1. echo "no *textile* here"

notextpattern seems to work only on a part of the line.

Offline

Board footer

Powered by FluxBB