[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?

<table>
  <thead>
   <tr>
    <th scope="col">Concept</th>
    <th scope="col">PHP</th>
    <th scope="col">Perl</th>
    <!-- etc, etc -->
   </tr>
  </thead>
  <tbody>
   <tr>
    <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) 
</td>
   </tr>
   <tr>
    <th scope="row">Regular expression replace</th>
    <td><code>$string = preg_match('/expression/', $replacement,  
$string)</code></td>
    <td><code>$string =~ s/expression/replacement/;</code></td>
   </tr>
   <!-- etc, etc -->
  </tbody>
</table>

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

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





More information about the microformats-discuss mailing list