slashed zero in HTML code listings?

Subject: slashed zero in HTML code listings?
From: Robert Lauriston <robert -at- lauriston -dot- com>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Wed, 8 Jul 2009 13:18:02 -0700

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>

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.

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!

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

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 for more resources and info.

Please move off-topic discussions to the Chat list, at:


Previous by Author: Re: Watermarks in Acrobat PDFs
Next by Author: Re: slashed zero in HTML code listings?
Previous by Thread: Re: PDFs as online help?
Next by Thread: Re: slashed zero in HTML code listings?

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

Sponsored Ads