Markup for Code (was: Subheadings desired in XHTML 2.0)

Thomas Hurst <tom.hurst@clara.net>:
>
> Really, part of me would like to do:
>
>   <blockcode>
>     <line><comment>#!/usr/bin/env ruby</comment></line>
>     <line>if <var>foo</var></line>
>     <indent>
>       <line><func>puts</func> <var>bla</var></line>
>       <line><var>bla</var>.<func>wibble!</func></line>
>     </indent>
>     <line>end</line>
>   </blockcode>


I'd like to write it this way:

<Code language="perl"><!-- could as well be a real MIME type -->
<P><!-- or Div -->
<l class="comment">#!/usr/bin/env ruby</l>
<l>if <v>foo</v></l>
<P>
  <l>puts <v>bla</v></l>
  <l><v>bla</v>.wibble!</l>
</P>
<l>end</l>
</P>
</Code>

But neither one of us will get his wishes fulfilled. Probably that's a good
thing.

Christoph Päper

Received on Sunday, 17 November 2002 15:18:42 UTC