Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

The free wordpress blogs (those hosted at wordpress.com) have a build in code formatting plugin

Is it possible to get this on private installs of wordpress? I've copied all my posts across but the code formatting feature doesn't work out of the box

I'm primarily looking for Java syntax highlighting

share|improve this question

3 Answers 3

up vote 3 down vote accepted

This is the plugin used on WordPress.com: http://wordpress.org/extend/plugins/syntaxhighlighter/

share|improve this answer

I use a plug-in called Code Colorer that dynamically formats my code blocks and highlights syntax where appropriate. I use it for PHP, C#, and JavaScript, but it also works for Java.

share|improve this answer
    
This plugin is the best I have found. Tanks for the tip. –  Carles Oct 2 '10 at 13:31

I used Code highlighter plug-in( http://ideathinking.com/wiki/index.php/WordPress:CodeHighlighterPlugin) on my blog. It is quote basic in case you do not need many controls hovering on your highlighted code when you hover on code.

Another I tried later is Syntax Highlighter, same as suggested by sorich87 above.

It is more colorful and provide many controls like copying code , printing etc.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.