Re: Colored Code

Subject: Re: Colored Code
From: John Bartol <johnbartol -at- shaw -dot- ca>
To: "TECHWR-L" <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Fri, 19 Nov 2004 11:00:04 -0800


As one of the other respondents mentioned, the audience is important.

If you are indeed producing this documentation for use by developers, then having the colored code could be useful. If the audience is *not* developers (coders, that is), then it really won't make a difference to them (classical Greek and modern Greek are both Greek to non-Greek speakers :-)

Okay, back to the code.

If the code snippets that you are including are very small (at most, one function) *and* include minimal, unobtrusive comments, then the addition of color is not very important. The developer will be able to *see* each discrete element of the code.

If, however, the code is long, or complex, coloring is very beneficial. Comments in C, for example, can cross multiple lines, beginning and ending with "/*" and "*/". Many coders will include real code *within* a comment for testing purposes (they will uncomment the code to test, then recomment so it doesn't execute). In a complex comment, this can be hard to see without coloring.

So... it really comes down to the actual content and the intended audience. As a former developer, I can honestly tell you that the ability of an editor (and by inference, documentation) to display code with color-tags was a true god-send.


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

ROBOHELP X5 - SEE THE ALL NEW ROBOHELP X5 IN ACTION!

RoboHelp X5 is a giant leap forward in Help authoring technology, featuring all new Word 2003 support, Content Management, Multi-Author support, PDF and XML support and much more! View an online demo: http://www.macromedia.com/go/techwrldemo

---
You are currently subscribed to techwr-l as:
archiver -at- techwr-l -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- techwr-l -dot- com
Send administrative questions to lisa -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.



Previous by Author: RE: Usability abuse? (Take II)
Next by Author: Re: ADMIN: New Poll Question
Previous by Thread: Re: Colored Code
Next by Thread: Re: Colored Code


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


Sponsored Ads