In my implementation, WordPress treats any tags in a post as if they
were actual tags, even if they're wrapped in <code></code>.
I have to use, for example, <code><a href="">link text</
a></code>
For blocks of code I use the IG:Syntax Hiliter:
http://blog.igeek.info/wp-plugins/igsyntax-hiliter/
Then I do something like this for JavaScript: [js] //some code here [/
js]
And it comes out pretty.
I'm sure there are a lot of other ways to do it, but so far this is
what has worked for me. Not without its frustrations, though. I think
WordPress is a little over-zealous in its processing of post text. Oh
well.
Hope that helps.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 31, 2007, at 2:03 PM, Dan Atkinson wrote:
Hmm... I may have been wrong on both counts...
I suppose you could replace the opening tag with a < then.
Andreas Wahlin-4 wrote:
Yeah, you understood me correctly, thanks.
However, this does not seem to work.
For instance,
<code>
http://www.w3.org/ W3C
</code>
becomes a regular link, and <script> tags get stripped out
completely ... am I missing something?
Andreas
On Jan 31, 2007, at 13:49 , Dan Atkinson wrote:
I'm sorry?
A tutorial on how to write good tutorials?
If you want to enable JS inside posts, go here and download this
plugin:
http://ottodestruct.com/wpstuff/scriptenabler.zip
Finally, to be able to show people what you mean, wrapping your
examples in
'pre' (or is it 'code'?) tags, prevents WordPress from doing
anything to any
HTML elements inside, instead formatting them to < and >.
Hope I understood you correctly.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
View this message in context: http://www.nabble.com/jQuery-for-
Wordpress-tf2105654.html#a8734969
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/