Do whatever you like online, but if you're
typesetting, you should
follow proper typographic practice.
No, I disagree (and this was precisely my point). Many of the typesetting
rules are governed by aesthetics -- what looks 'right' on the page. The
sort of things I write are designed to convey information, and doing that
unambiguously is important.
Suppose I write :
The Forth command line to display the product of 3 and 4 is "3 4 * ."
Now, is that '.' part of the command line, or is it just the end of the
sentence? Actually, it's the former. It's a Forth word to remove the
number of the top of the stack and print it.
But if I write
The Forth command line to display the product of 3 and 4 is "3 4 * .".
Then the extra '.' at the end is clearly the end of the sentence, meaning
the one before the quotation mark is part of the command.
As I am sure you're aware, common punctuation marks have special meanings
in many programming languages. It's important to be clear whether they
are part of the command/programming example or part of the text. Chanign
font (or using boldfce, etc) can help, but it's not all that clear (and
is not possible on some output devices anyway). I'd rather my docuemation
conveyed the infromation, even if it doens't look quite as nice.
-tony