home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PRINT
/
CPRT218.ZIP
/
CPRINT.TXT
< prev
next >
Wrap
Text File
|
1994-02-18
|
7KB
|
169 lines
CPRINT 2.18 ■ LaserJet Code Printer with Comment Hi-Lighting ║
Copyright (c) 1991-94 Cactus Software. All rights reserved. Cactus ║ ║ ║
Software ╚═╣ ║
CPRINT is a refinement of the common utility to print (c) 1994 ╠═╝
"two up" on LaserJet compatible printers. I wrote CPRINT
after spending half an hour trying to understand a section of someone else's
program, before realizing that that section was commented out. CPRINT
hi-lights remarks in program code by printing them in bold text.
The default print orientation will print two page side by side with each
page containing 66 lines of 80 characters. The portrait orientation (/P1)
prints a single page with 93 lines of 120 characters. (Great for reading
long lines of Pascal or C code!) Lines longer than the maximum are indicated
with a "»" character in the right margin and will be wrapped to the next line
(or truncated if the /W0 option is set).
If you use the standard filename extensions for your source files (e.g. .PAS
for Pascal), CPRINT will be able to identify the remarks in your file. For
non-standard names, specify the remark style using the Language [/Ln] parm.
Revision History:
2.18 Added line number printing capability.
2.17 Added logic to print light background stripes on page.
Ignore unknown program switches.
Fixed bug with specifying partial pathnames.
2.16 Fixed network printing problem.
Fixed printer status check.
2.15 First public release.
Usage: CPRINT input [dest] [options]
input - File(s) to be printed (e.g. c:\source\*.c*)
dest - Output (defaults to PRN) (e.g. LPT2: or SOURCE.PRN)
Options: (defaults are indicated by '*')
Box Style [/Bn]
/B0 No boxes are printed
*/B1 Each column is boxed
/B2 Line is printed on the top, bottom and between columns
/B3 Line is printed on the top and between columns
Header Placement [/Hn]
/H0 No file or page information is printed
/H1 File and page information across the top of the page
*/H2 File and page information across the bottom of the page
Language [/Ln]
*/L0 AutoDetect - determined by extension of filename as shown below
/L1 Assembler (.ASM)
/L2 BASIC (.BAS)
/L3 C (.C, .H, .CPP, .HPP)
/L4 COBOL (.COB, .CBL)
/L5 Pascal (.PAS, .INC)
Portrait [/Pn] - Single column mode
*/P0 Landscape Mode
/P1 Portrait Mode
Remarks [/Rn]
/R0 Don't hilight remarks
*/R1 Hilight remarks
Stripes [/Sn]
*/S0 Don't print stripes
/S1 Print stripes on page
Tab Width [/Tn] - Valid range is 1 to 16
/Tn Use /T1 for no tab expansion. /T8 is the default
Wrap Lines [/Wn]
/W0 Don't wrap lines (lines will be truncated)
*/W1 Wrap lines after 80/120 characters reached (depends on orientation)
Numbering [/Nn]
*/N0 Don't print line numbers.
/N1 Print line numbers.
Notes:
- the BASIC REM statement is not recognized. Use the Quote(') for remarks
- the COBOL REMARKS section is not recognized. Use (*) in column 7.
Custom Graphics:
For an additional fee, I will customize your copy of CPRINT so that it
prints a copy of your company logo or other graphics on each page of the
output instead of the Cactus Software logo.
The maximum size of an individual graphic is 128 x 64.
Ordering Graphics:
If you are ordering a customized version of CPRINT, I will require your
logo in Windows BMP format. The image can be up to 128 x 64 and must be
monochrome. Alternatively, you can send your logo in the following format:
0000000000000111100000000000000000000000000000000000000000000000011100000000
0000000000001000010000000000000000010000000000000000000000000000011100000000
0000000000010000000000000000000000010000000000000000000000000000011100000000
0000000000010000000001111000111100111100010001000111000000111000011100001110
0000000000010000000010001001000000010000010001001000000000111000011100001110
0000000000010000000010001001000000010000010001000111000000111000011100001110
0000000000001000010010001001000000010010010001000000100000111000011100001110
0000000000000111100001111000111100001100001111000111000000111000011100001110
0000000000000000000000000000000000000000000000000000000000111000011100001110
0000000000000000000000000000000000000000000000000000000000111000011100001110
0111100000000000011000000000000000000000000000000000000000111111111100001110
1000010000000000100000100000000000000000000000000000000000111111111100001110
0100000000000000100000100000000000000000000000000000000000011111111111111110
0011000001110001111001111000100010001111001011000111000000000000011111111110
0000100010001000100000100000100010010001001100001000100000000000011111111100
0000010010001000100000100000101010010001001000001111000000000000011100000000
1000010010001000100000100100101010010001001000001000000000000000011100000000
0111100001110000100000011000010100001111001000000111100000000000011100000000
Please keep in mind that images that are mostly black (1's in the graphic)
do not work well on the LaserJet. If you do not send a graphic image defined
as above, but send a business card or letterhead, I will attempt to generate
the image for you. However, I cannot guarantee that your image will be to
your satisfaction.
There should be several print files (.PRN) with your copy of CPRINT. These
files are sample printouts with different logos to show the detailed graphics
that are possible. To print them, issue the command: COPY *.PRN PRN /B
You are permitted to evaluate this software for a two week period. If you
continue to use it beyond the evaluation period, you must register by sending
CAN$25 / US$20 to the address below.
Order Form: Date:________________________________
Name:_____________________________ Company:________________________________
Address:___________________________________________________________________
City:_____________________________ Prov/State:_________ Zip/Postal: _______
Country:_______________________ Daytime Ph:______________ FAX:_____________
Where did you get CPRINT? ________________________Compuserve ID:___________
What version of CPRINT do you have?________________________________________
Which programming language(s) do you use?__________________________________
Individual License: .................................... $25 CAN / $20 US
Multi-User License: up to 5 users....................... $100 CAN / $80 US
up to 10 users...................... $180 CAN / $140 US
up to 25 users...................... $375 CAN / $300 US
up to 50 users...................... $500 CAN / $400 US
Custom Graphics: ....................................... $25 CAN / $20 US
(please include a disk with your logo in BMP format.)
Ontario Residents add 8% P.S.T. _________
Total _________
Please make cheques payable to Tony Yeung.
« Tony Yeung - Cactus Software »
« 147 The Country Way, Kitchener, Ont N2E 2L1 Canada (519) 570-0864 »