I was just thinking today about the way we format code. After playing with it a little, I thought why not create a Microformat for formatting code? As I see it, formatting code in this matter can reap the benefits that microformat provide. Here is just a small example (very quick):
<br><br><div class="hCode"><br> <div id="vCard"><a class="url fn" href="<a href="http://www.hakejam.com"">http://www.hakejam.com"</a>>Jacob Ham</a></div>
<br> <a href="<a href="http://creativecommons.org/licenses/by/2.0/">http://creativecommons.org/licenses/by/2.0/</a>" rel="license">cc by 2.0</a><br> <span class="version">
0.0.1</span><br> <abbr class="created" title="20051031">10-31-2005</abbr><br> <span class="summary">A simple program that prints out Hello World.</span><br>
<code class="Java"><br> class HellWorld {<br> public static void main(String args[]) {<br> System.out.println("Hello World"); <br> }<br> }
<br> </code><br></div><br><br>The microformat coding format could include:<br><br>- author (vCard)<br>- version number<br>- a small summary of what the code does<br>- the type of code it is<br>- licenses it may use
<br><br><br><br>Sniplet repositories like, Snippets (<a href="http://www.bigbold.com/snippets/">http://www.bigbold.com/snippets/</a>), other kinds of paste-bins, tutorials, documentation, and so on. <br><br>If there is enough interest, I can start a brainstorming page for it.
<br><br>Cheers,<br><br>Jake<br>