I just installed the SyntaxHighlighter Evolved plugin on WordPress. It lets me place code inside posts in many different languages like the examples below.

[php]
echo "Josh is cool"; //that’s me!

function joshiscool() {
return "Josh is Cool";
}

echo joshiscool();
[/php]

[shell light=”true”]

sudo apt-get install apache2

[/shell]

Available languages are:

  • Bash
  • C#
  • C++
  • CSS
  • Delphi
  • Diff
  • Groovy
  • JavaScript
  • Java
  • Perl
  • PHP
  • Plain Text
  • Python
  • Ruby
  • Scala
  • SQL
  • Visual Basic
  • XML