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: code examples in a document - RESOLUTION From:John Posada <JPosada -at- book -dot- com> To:"TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com> Date:Wed, 6 Nov 2002 14:42:15 -0500
>Most programming languages provide a character to mark
>that something is being "continued" onto another line even where
>the syntax of the language wouldn't ordinarily allow a break.
>In C for example the \ (backslash) character provides this;
>
>#define LiPointInitialise( _p, _x, _y, _z ) \
> do \
> { (_p)[0] = _x ; \
> (_p)[1] = _y ; \
> (_p)[2] = _z ; \
> } while ( 0 )
>
>(You'd want to use a fixed-width font and line the \ up).
>
>Might be worth finding out if there is such a continuation character
>for whatever language you are using - then you can lay things
>out nicely.
Chris...what "language" is simple ol' DOS .bat file scripting :-)
...and better yet...does it have a continued character?
Seriously...in this case, what I'm documenting is simple uncompiled .bat
files. I asked the developer and his answer was "I dunno....I know what it
is for C and I know for VB, but I don't think there is one for this..."
Recognize this code?:
--------------
for /f "tokens=1-4 delims=/ " %%d in ('date /t') do (
echo %%d
echo %%e
echo %%f
echo %%g
for /f "tokens=1-2 delims=: " %%h in ('time /t') do (
echo %%h
echo %%i
c:\pkware\pkzipc -add=update -move -rec -path=full -attr=all
John Posada
Senior Technical Writer
Barnes&Noble.com
jposada -at- book -dot- com
212-414-6656
"Available for next gig Feb 01, 2003"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Order RoboHelp X3 in November and receive $100 mail in rebate, FREE WebHelp
Merge Module and the new RoboPDF - add powerful PDF output functionality
to RoboHelp X3. Order online today at http://www.ehelp.com/techwr-l
Check out SnagIt - The Screen Capture Standard!
Download a free 30-day trial from http://www.techsmith.com/rdr/txt/twr
Find out what all the other tech writers, including Dan, already know!
---
You are currently subscribed to techwr-l as:
archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.