[microformats-discuss] microformat for CODE snippets

Michiel van der Blonk michiel at caribmedia.com
Wed Jun 22 06:55:27 PDT 2005


Hi

I am a developer and would like to have a way of sharing code snippets 
or whole programs through XHTML. That way we can create a 'free source 
code' search engine, or just use google for it. And of course it should 
use the <code> tag.

We could use a lot of predefined class names to relate to the piece of code:
- language
- type (snippet/function/program/package)
- title could describe the program

Example:
<code class="PHP snippet" title="why eval is evil">
  $evil = eval($good);
</code>

And while we are at it, why not use the same tags on links or meta tags, 
so that we can define this in multiple levels.

Hm, if the rel tag can be used on code, we might have to use that. What 
do you think?

Michiel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://microformats.org/pipermail/microformats-discuss/attachments/20050622/a5c0403e/attachment.htm


More information about the microformats-discuss mailing list