[wp-hackers] Code Tag Driving me Nuts!!

Elliotte Harold elharo at metalab.unc.edu
Sun Oct 29 11:13:43 GMT 2006


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/


More information about the wp-hackers mailing list