Syntax Highlighting modules

One of the website elements i've been very interested in lately is syntax highlighting for programming code, because the main thing that i am interested in using my own website for is to share code in a way that could be useful not only for others, but also as reference for myself later.

I've been messing about for the past few days looking at Drupal 7, but unfortunately the best module that i've found for supporting syntax highlighting is called Geshi, and apparently the Geshi module is still in development for Drupal 7. But there is a fully supported Geshi 6.x version. So i guess i'll stick with Drupal 6 for the time being.

Here's an example of a hello world program written in C and displayed using the Geshi syntax highlighter:

#include <stdio.h>
 
int main(){
 
        // this is a comment
	printf("Hello World!\n");
 
	return 0;
 
}

let's try a couple of other examples

some php?

<?php
 
echo "hello world!";
 
?>

or maybe some python

#!/usr/bin/python
 
print 'hello world!'

how about erlang?

#!/usr/bin/env escript
 
main(_) ->
	io:format("Hello World!\n").

The possibilities are endless!