[wp-hackers] Code Tag Driving me Nuts!!
Computer Guru
computerguru at neosmart.net
Sun Oct 29 15:17:48 GMT 2006
I figured it out, sorry for the bother.
It turns out that all 8 code-rendering plugins I had installed were somehow borked in one of the more recent builds.
My code tag was
<code lang="html"><html><head><br />…<br /><link rel="Stylesheet" href="http://neosmart.net/dynamicCSS.php" type="text/css" media="Screen" /></head>.</code>
As an example. Everything within is encoding - i.e. removing the code tag displays it *exactly* as it should.
Instead, it would show this in a "code box" (as my CSS defined it) in the post:
<html><head><br />…<br /><link rel="Stylesheet" href="http://neosmart.net/dynamicCSS.php" type="text/css" media="Screen" /></head>.
It was encoding the already encoded HTML.
The broken plugin(s) would go haywire with the presence of the "lang" tag within the code tag. That's what they required in 2.0, but for some reason 2.1 broke it.
Not exactly a bug, not exactly problem with WP - just drove me nuts is all :)
(removing the lang="html" bit fixed it).
Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
> bounces at lists.automattic.com] On Behalf Of Elliotte Harold
> Sent: Sunday, October 29, 2006 1:14 PM
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] Code Tag Driving me Nuts!!
>
> Computer Guru wrote:
> > Is the <code></code> tag supposed to (in WP) display whatever is in
> between
> > it tit-for-tat or is it supposed to parse the HTML within?
> >
> > It's driving me _nuts_!
> > I'm trying to put up a post that has more code than normal text, and
> I just
> > can't for the life of me figure out how to get my stuff to display
> right!
> > If I put un-encoded HTML straight into the <code> tags, it'll display
> OK in
> > WP, but it'll completely screw up my other apps that use the WP
> database.
> >
>
> It's not clear, but you may be trying to use the code tag as a CDATA
> section. That's not it's purpose. All the code element is supposed to
> do
> is mark a section as code, which usually means monospacing it. That's
> it.
>
> If it's not doing that, or it's doing more than that, then this is a
> bug.
>
> If you expect it to do something beyond that, then the bug is yours.
> Please elaborate. i.e. what do you put in? what do you get? what do you
> expect?
>
> --
> Elliotte Rusty Harold elharo at metalab.unc.edu
> Java I/O 2nd Edition Just Published!
> http://www.cafeaulait.org/books/javaio2/
> http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA
> /
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list