I may have found the code mark up utility I was looking for. It is called code markup and it is relatively simple to use. All you have to do is edit the lang attribute to the source code language and markup=”none” displays content exactly as written, no markup is rendered.
So let’s write some hello world applications:
1. HelloWorld.java
package hello.world;
/**
* Class will say hello to world.
* @author James Little
*/
public class HelloWorld {
private static String welcome = "Hello ";
public static void main(String [] args) {
if(args.length > 0)
System.out.println(welcome + args[0]);
else
System.out.println(welcome + "World");
}
}
2. hello_world.php
<?php
/**
* hello_world.php
* Author: James
*/
class HelloWorld
{
// Resolve the class type
public $class = "HelloWorld";
public function __construct($argv)
{
echo "{$i} hello world\n";
}
}
new HelloWorld($argv[1]);
?>

Unfortunately these do not provide the desired syntax rendering and I must use the ‘pre’ tags around the code tags for it to look sensible!