[uf-discuss] Formating Code
Ryan King
ryan at technorati.com
Tue Nov 1 00:11:36 PST 2005
On Oct 31, 2005, at 10:49 PM, Charles Iliya Krempeaux wrote:
> Just to throw in my comments. When I include "code", I usually do
> it like this:
>
> <pre>
> <code>
>
> class HellWorld {
> public static void main(String args[]) {
> System.out.println("Hello World");
> }
> }
>
> </code>
> </pre>
In interest of diversty, I do code like this:
<ol class="code java">
<li class="pre">class HellWorld {</li>
<li class="pre"> public static void main(String args[]) {</li>
<li class="pre"> System.out.println("Java Suxorz!");</li>
<li class="pre"> }</li>
<li class="pre">}</li>
</ol>
Except that it wouldn't be java. :P
Example: http://theryanking.com/presentations/2005/webzine/#slide23
-ryan
--
Ryan King
ryan at technorati.com
More information about the microformats-discuss
mailing list