[uf-discuss] Formating Code

Jacob Ham hakejam at gmail.com
Mon Oct 31 13:28:45 PST 2005

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):

<div class="hCode">
<div id="vCard"><a class="url fn" href="http://www.hakejam.com">Jacob
<a href="http://creativecommons.org/licenses/by/2.0/" rel="license">cc by
<span class="version">0.0.1</span>
<abbr class="created" title="20051031">10-31-2005</abbr>
<span class="summary">A simple program that prints out Hello World.</span>
<code class="Java">
class HellWorld {
public static void main(String args[]) {
System.out.println("Hello World");

The microformat coding format could include:

- author (vCard)
- version number
- a small summary of what the code does
- the type of code it is
- licenses it may use

Sniplet repositories like, Snippets (http://www.bigbold.com/snippets/),
other kinds of paste-bins, tutorials, documentation, and so on.

If there is enough interest, I can start a brainstorming page for it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://microformats.org/discuss/mail/microformats-discuss/attachments/20051031/f9c94f1d/attachment.htm

More information about the microformats-discuss mailing list