1. Under head tag, insert this configuration:
Note: we can remove lines we do not need
2. All code within the pre tag will be highlighted
3. Test
<pre class="brush:java">
public static void main(String... args) {
System.out.println("I am in Java");
}
</pre>
Result:
public static void main(String... args) { System.out.println("I am in Java"); }
References: http://alexgorbatchev.com/SyntaxHighlighter
No comments:
Post a Comment