From CodeCodex

Syntax Highlighting
To markup your code add a <pre> tag before your code and </pre> after. To render a specific language, change the opening tag to <pre class="java"> replacing 'java' with one of the available languages.

Most Common Languages
C++: <pre class="c++">, C#: <pre class="c#">, Java: <pre class="java">, JavaScript: <pre class="js">, PHP: <pre class="php">, Python: <pre class="python">, Ruby: <pre class="ruby">, VB: <pre class="vb">, see full list.

Copyright Notice
Please do not submit copyrighted work with permission. All contributions to CodeCodex are considered to be released under the terms of the GNU Free Documentation License (see CodeCodex:Copyrights for details). If you don't want your code to be edited mercilessly and redistributed at will, then don't submit it here.