But tonight, I discovered Alex Gorbatchev's SyntaxHighligher which seems to be what I was looking for. I googled a bit more and found this HOWTO: post code (thanks gPowered.net). A few minutes later, the SyntaxHighlighter library was uploaded and my blogger template updated to enable it.
Let's try it now with a classical HelloWorld sample :
So, how does it looks like ?
/**
* The HelloWorld class is an application that
* displays "Hello World!" to the standard output.
*/
public class HelloWorld {
// Display "Hello World!"
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
Oh, by the way, Thomas Walloschke created a neat extension for Apache configuration files. Nice. I might use his "brush" too.
13 comments: