This looks like fun:
<html> <head> <title>Example</title> <link href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script> </head> <body onload="prettyPrint()"> <h1>C</h1> <pre class="prettyprint">void main(char* argv[]) { printf("Hello, Bob.\n"); }</pre> <h1>Java</h1> <pre class="prettyprint">public class Main { public static void main(final String[] args) { System.out.println("Hello, Bob."); } }</pre> <h1>Shell</h1> <pre class="prettyprint">echo "Hello, Bob."</pre> </body> </html>
No comments:
Post a Comment