[uf-discuss] Microformat for programming language reference?

Toby A Inkster mail at tobyinkster.co.uk
Sat Jan 17 08:24:16 PST 2009

Have you considered just using a simple table?

    <th scope="col">Concept</th>
    <th scope="col">PHP</th>
    <th scope="col">Perl</th>
    <!-- etc, etc -->
    <th scope="row">Regular expression match</th>
    <td><code>preg_match('/expression/', $string, $matches)</code></td>
    <td><code>$string =~ /expression/</code> (matches in $1, $2, etc) 
    <th scope="row">Regular expression replace</th>
    <td><code>$string = preg_match('/expression/', $replacement,  
    <td><code>$string =~ s/expression/replacement/;</code></td>
   <!-- etc, etc -->

Maybe with some class attributes on the <code> elements.

Toby A Inkster
<mailto:mail at tobyinkster.co.uk>

More information about the microformats-discuss mailing list