TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:RE: Boxes for Code, Screens? From:"Hager, Harry (US - East Brunswick)" <hhager -at- dc -dot- com> To:"'Janice Gelb'" <janiceg -at- marvin -dot- eng -dot- sun -dot- com>, TECHWR-L <techwr-l -at- lists -dot- raycomm -dot- com> Date:Mon, 15 May 2000 16:10:23 -0500
Janice,
I'd be willing to bet that the history of drawing lines around code examples
and maybe even screen input goes back to the days when actual sample code,
output from a line printer, was literally pasted (as in waxed) onto the
galley sheets. Then the editors and production people wanted some emphasis
so they drew a line around this stuff. I remember seeing this done up 'til
the late 80's.
When screens were all text-based (let's face it, graphics on end user
computer screens are a recent development), it was common to do the same
thing. That is draw lines either by hand or with the aid of your text
editor, if it was sophisticated enough.
Lately, I don't think I've seen this technique with lines used much.
Typically, the use of a courier font of some other monospace font is
employed. If this is defined up front in your typographical conventions
section, I don't see any need for lines around code samples or screen input.
Not that there's anything wrong with it.
I'd bet it has more to do with how long the programmers and system
administrators have been around as to whether they expect to see lines
around sample code and screen input.
Good Luck.
Jim Hager
Hhager -at- dc -dot- com
We are currently engaged in a discussion at Sun about
whether to put boxes around code examples or screen input/
output listings. Opinions vary as to whether programmers
or system administrators like or expect boxes, or
whether just using an alternate font and indenting
is enough of an indicator.
Could you write and let me know how your company
treats these items and how you distinguish them
from surrounding text?