Anonymous
How about html or scripts in the sidebar.
I want to run a countdown code and other stuff, but I don’t know how to include it in my sidebar…
Any help would be appreciated.
Thanks
Nettie xox
http://keanuholic.com
I use the WP widget:
http://resources.wordpress.org/tools/encode/
but a plugin would be cool.
Here you go, “Code Filter”:
http://www.asymptomatic.net/wp-hacks/
Where’s my picture?
One thing to note :
Break your code up into smaller lines, or it will continue to the right !
That Plugin is awsome. That’s exactly what I wanted, and I do mean exactly.
Oh and here’s your picture:
http://www.mattread.com/i/mfr.jpg
“It’s a wonderful day in the neighboorhood….”
Maybe you can also try out the Markdown plugin (included with WP) which has support for displaying code and doesn’t even need the
-tags. At the other side, it is much more than that and for this cannot be use in conjunction with Textile because they do the same things, but in different ways.
I have a problem with the Plugin. if I have more than on instance of the “code” tags then it displays the middle “code” tags as special characters.
<html></>
Plain Text
The above will display “Plain Text” and the middle “code” tags as preformatted text <pre>
You can fix this by putting a “U” after the “ims” in the regular expression. The expression would then read like this:
'|<code([^>]*)>(.*)
|imsU'
The “U” makes the expression ungreedy, so it only looks for the first matching end tag rather than the last.
and how can I put code in the comments? I’ve tried using the code tag but it doesn’t work. Would a pre tag work?