In order to do it, you need to use the
[sourcecode lang="<language>"] tag:
[sourcecode language="xml"]
[/sourcecode]
Above code is using lang="xml".
For Java code snippets you could highlight it pretty easily using the lang="java" with the tag.
[sourcecode language="java"]
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
[/sourcecode]
I am just really excited on how it works. I think Alex Gorbatchev has done a great job on the syntax highlighter!
No comments:
Post a Comment