Re: space

Chris Ridd (C.Ridd@imc.exec.nhs.uk)
Mon, 23 Sep 1996 12:24:00 +0100


Message-Id: <32467350.685E@imc.exec.nhs.uk>
Date: Mon, 23 Sep 1996 12:24:00 +0100
From: Chris Ridd <C.Ridd@imc.exec.nhs.uk>
To: Stuart Young <nakor@glasswings.com.au>
Cc: Walter Ian Kaye <walter@natural-innovations.com>, www-html@w3.org,
Subject: Re: space

Stuart Young wrote:
> 
> On Mon, 23 Sep 1996, Walter Ian Kaye wrote:
> 
> > None of those are usable for computer source code, however. In source
> > code, a specific number of space characters can be vital to the correct
> > functioning of the program! Currently, HTML is unusable as a means of
> > transmitting source code; other content types must be used instead.
> 
> Isn't this what <PRE> is all about?

No, because the contents of a <pre> section is only PCDATA, which
prevents you from using the 'special' SGML characters inside your
program. This will greatly annoy your programmers...

eg

<pre>
PROCEDURE frob
BEGIN
  IF silly <> foolish THEN
    WRITELN("Ooops.");
END
</pre>

is not legal because of the "<>".

Chris