I need a wordpress plugin or method that allows me to show code in posts such that readers can cut and paste it out of the page and into their own application and have it work. Any ideas?
I need a wordpress plugin or method that allows me to show code in posts such that readers can cut and paste it out of the page and into their own application and have it work. Any ideas?
28 Feb 06
2:40 pm
alright! glad i can help you
http://irgeek.net/archives/2006/02/16/disecting-k2s-live-search
01 Mar 06
1:31 am
Another thing you may want to take a look at is the Code Highlighting WP Plugin here:
http://www.chroder.com/archives/2005/04/16/wordpress-codehighlight-plugin/
I don’t know if there’s a more updated version or if the last update does work with 2.0 but the guys over at aB have it successfully implemented (check out their post on their version of lightbox.js and take note of all the code in boxes with syntax highlighted). At the end of their css you can find the CodeHighlighter classes but I have no idea if they had to hack the plugin a bit to get it to work properly. You should back up your stuff, give it a try and then if you can’t figure it out ask the guys from aB.
Anyway, not totally necessary but very slick, hehe.
Ja
01 Mar 06
4:54 pm
Here’s a few plugins for wordpress 2.0 that you might want to take a look at:
http://www.thunderguy.com/semicolon/wordpress/code-markup-wordpress-plugin/
http://blog.enargi.com/codesnippet/
http://www.coffee2code.com/wp-plugins/#preservecodeformatting
http://matthew.delmarters.com/weblog/visual_syntax/
Hope this helps!
02 Mar 06
8:29 am
I use the igsyntax-hiliter on my site.
The noteworthy features that’ll really blow away the competition(& copycats) are:
Drag-n-Drop support of a language which GeSHi supports
Plain-Text View of the hilited code(in a seperated window)
Easy to use Configuration GUI in WP-Administration, so no more messing around in PHP code
Auto-Install, just activate & you are ready to colourise your code!!
More options for configuring the plugin & the way its used
02 Mar 06
10:45 am
Hi Guys,
Thanks for your comments! I didn’t know if people would take the time to help, so all I can say is thankyou!
IG syntax highlighter does indeed highlight the code, but something was still messing things up. I figured out that the character encoding done my wordpress was changing the quote (”) character. I am able to change this using the Text Control Plugin so at least that problem is solved. However, wordpress still filters out parts of the code I want to display. WTF? I can’t believe this is so difficult, it should be easy. Argggg…. thanks for your input so far!
02 Mar 06
4:35 pm
The Preserve Code Formatting plugin seems to say that it ensures against curly quotes, which sounds like it is what you need.
08 Mar 06
12:47 pm
This isn’t a wp plugin, so you’ll have to manually install it on your blog, but its completely javascript driven …
http://www.dreamprojections.com/SyntaxHighlighter/
Here’s an example of usage on my blog:
http://www.getintothis.com/blog//2005/05/11/leaflink-explaind-part-2a-the-dashboard/
08 Mar 06
10:52 pm
Awesome! The power of the internet answers questions. I’m no hippie, but good Karma will be returned to all of you.
23 Sep 07
4:37 pm
I just installed the igsyntax-hiliter plugin and it is working wonderfully (as long as you disable the visual editor). Thanks for the link John.