W3C home > Mailing lists > Public > www-html@w3.org > November 2002

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

From: (wrong string) äper <christoph.paeper@tu-clausthal.de>
Date: Sun, 17 Nov 2002 21:18:36 +0100
Message-ID: <009101c28e76$840fd370$3ef4ae8b@heim4.tuclausthal.de>
To: <www-html@w3.org>
Cc: "Thomas Hurst" <tom.hurst@clara.net>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:53 GMT