Re: Spacing (was IMG in PRE?)

Walter Ian Kaye wrote:
> 
> One thing we definitely need, at least for representing computer source
> code, is the ability to prevent collapsing multiple spaces. If I need to
> display a literal of "qd  " (4 characters, spaces significant), it must
> NOT get munged by the browser. What I have to do currently is place a
> comment next to it, stating that there are two spaces there. I tried
> using <pre> and <tt> and <code> -- none were satisfactory (<tt> and
> <code> did not prevent collapsing, and <pre> added line breaks and was
> therefore unusable inline).
> 
You can use <code> with &nbsp; and have something like this:

<code>
IF expr THEN<br>
&nbsp;&nbsp;&nbsp;statement<br>
ELSE<br>
&nbsp;&nbsp;&nbsp;statement<br>
ENDIF
</code>

--
Life is a sexually transmitted disease.

dave@fly.cc.fer.hr
dave@zemris.fer.hr

Received on Tuesday, 14 May 1996 20:42:07 UTC