(Update: this module has been updated to D7.)
This Drupal module does program code list syntax highlighting like this:
class Person(ln : String, fn : String, s : Person)
{
def lastName = ln;
def firstName = fn;
def spouse = s;
def this(ln : String, fn : String) = { this(ln, fn, null); }
def introduction() : String =
return "Hi, my name is " + firstName + " " + lastName +
(if (spouse != null) " and this is my spouse, " + spouse.firstName + " " + spouse.lastName + "."
else ".");
}
It uses the Syntax Highlighter Javascript library to perform the highlighting on the client browser.