Re: slashed zero in HTML code listings?

Subject: Re: slashed zero in HTML code listings?
From: Gary Schnabl <gSchnabl -at- LivernoisYards -dot- com>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Wed, 08 Jul 2009 23:30:23 -0400

Robert Lauriston wrote:
> One thing I've always wanted to do that I've never managed to achieve
> was to use a slashed zero in code listings in HTML and HTML-based
> online help.
>
> The only monofont generally available is Courier New, and it doesn't
> have that character.
>
> So far as I can find, there's no HTML entity for it, which makes
> sense: it's not a special character, it's just the way the zero is
> designed in some fonts.
>
> You can do 0&#x0338; to overlay a zero with a slash, but that looks
> crappy, and doesn't seem to work within <code></code> or <pre></pre>
> tags.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>

Install Inconsolata
<http://www.levien.com/type/myfonts/inconsolata.html>. Specify this
typeface first in the font-family selector in your CSS file. Hopefully,
some systems will have it installed.

Gary

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Free Software Documentation Project Web Cast: Covers developing Table of
Contents, Context IDs, and Index, as well as Doc-To-Help
2009 tips, tricks, and best practices.
http://www.doctohelp.com/SuperPages/Webcasts/

Help & Manual 5: The complete help authoring tool for individual
authors and teams. Professional power, intuitive interface. Write
once, publish to 8 formats. Multi-user authoring and version control! http://www.helpandmanual.com/

---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40web.techwr-l.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/ for more resources and info.

Please move off-topic discussions to the Chat list, at:
http://lists.techwr-l.com/mailman/listinfo/techwr-l-chat


References:
slashed zero in HTML code listings?: From: Robert Lauriston

Previous by Author: Re: OpenOffice exporting to Word
Next by Author: Re: Frame-to-HTML Lite?
Previous by Thread: RE: slashed zero in HTML code listings?
Next by Thread: RE: slashed zero in HTML code listings?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads