Writing down a note on WP-Syntax usage. For more detailed informations visit the plugin`s directory.
For PHP source code
<pre lang="php"> <div id="foo"> <?php function foo() { echo "Hello World!\\n"; } ?> </div>
Java, with line numbering
1 2 3 4 5 6 | <pre lang="java" line="1"> public class Hello { public static void main(String[] args) { System.out.println("Hello World!"); } } |
Some details
To show line numbers you have just to inform the “line” parameter and value “1″. Many languages are currently supported, just notice the differences between java5 and java, oracle8 and oracle11, php-brief and php(I need to discover, in a later time, the differences between those php highlights, I just want to note its existence).
Related Posts
Related Posts
Related Posts
Leave a Reply
You must be logged in to post a comment.