home *** CD-ROM | disk | FTP | other *** search
-
- QbPrt V 1.0
-
- Copyright 1989 (C) L.Weinman 121 Valdivia Cir. San Ramon, CA USA
- ____________________________________________________________________
-
- Legal stuff:
-
- This copyrighted program is licensed for non-commercial use without
- cost . No charge may be made by anyone other than the copyright
- holder for this program, except for a nominal fee for copying and
- distribution. It may not be included, or bundled, with any materials
- for which a charge is made. Commercial distribution, or use, may only
- be made with the agreement of the copyright holder.
-
- In other words, give it to others for free and don't use it for work,
- or profit, without obtaining a commercial license. (cheap)
-
- Any distribution of the program QbPrt must include this document.
- ____________________________________________________________________
-
-
-
- This program is intended to make QuickBasic (C) source code more
- readable by indenting the logical structures to make them more
- obvious. It will also produce an output suitable for printing.
-
- I wrote it because I was not satisfied with the programs that I had
- seen. If you are not satisfied with it, please let me know, and I
- will examine your complaints, and suggestions, and perhaps
- incorporate them in future editions. I won't know if you are unhappy
- if you don't tell me.
-
-
- If you are a non-commercial user, and like the program, then small
- gifts are always welcome.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Pg. 1
-
-
-
-
-
- I have tried to make the program self-explanatory.
-
- After starting the program, select either
-
- 1 = Pretty A QuickBasic Source File
- 2 = Print A File"
-
- by pressing key 1 or 2.
-
- If you select 1:
-
- The program will then prompt you for the left margin you want, with
- the default 0. (QuickBasic will always set labels flush left)
-
- Then answer for the desired number of spaces to use for the structure
- indent, with the default 4.
-
- Answer Y if you want the first letters of the source code
- capitalized, with the default being No. I personally find first
- capitals to be esthetically pleasing, but you should be cautious if
- your program involves matching embeded strings. QuickBasic will
- automatically set all reserved words to capitals.
-
- Answer Y if you want the program to delete empty lines.
-
- Answer Y if you want the source code to be displayed on the screen as
- it is being processed.
-
- Press the key corresponding to the drive that the sorce is located
- on.
-
- Select and enter the file you wish to prettify.
-
- Enter the name you wish to give the prettified source code, including
- the drive if applicable.
-
- QbPrt will then process the selected input file, and write it to the
- named output file.
-
- The processed file should then be loaded into QuickBasic and saved as
- an ASCII file if separate compilation with BC (C) is to be used. This
- will change all of the reserved words back to capitals.
-
- You will then be returned to the initial selection screen.
-
-
-
-
-
-
-
-
-
-
-
- Pg 2
-
-
-
- If you select 2:
-
- Select the drive that the source code is located on.
-
- Select and enter the file that you wish to print.
-
- Enter the title that you wish to use on the printed file.
-
- Answer where you want the processed file send. Either enter the drive
- and file name to produce a disk file, or enter PRN to send the output
- directly to the printer without saving to disk.
-
- Answer the line length that your printer will accomodate, or that you
- wish.
-
- Answer the number of lines per page that your printer will
- accomodate, or that you wish.
-
- Answer the number of columns that you want for the left margin.
-
- Answer the number of spaces that you want between the numbered lines
- delimiter and the source code.
-
- The program will then process the selected input file, and send it to
- the named destination.
-
- The disk file produced is suitable for printing on a "plain vanilla"
- dot matrix printer that prints the standard IBM/Epson character set.
- If you have a different printer, try it and see what happens.
-
- If you select 9:
-
- QbPrt will end and return to DOS.
- --------------------------------------------------------------------
-
- Limitations:
-
- This program is intended for use with QuickBasic 4.0 or 4.5. I have
- not tried it with TurboBasic (C), and it may, or may not, work.
-
- The IF ...... THEN '(REM) comment
- .
- (ELSE, ELSEIF)
- .
- END IF
-
- structure will cause problems. Don't put a comment on the line with
- the IF ..... THEN.
-
- Don't put anything else, except comments, on lines with labels, if
- the label is embedded in a structure.
-
- These are not bugs, but a decision on my part. Parsing all of the
- possible variations of labels, structures, embedded strings, and
- comments would significantly slow down the program.
-
- Labels will be flush left. Stand alone comments will be flush left.
-
- Pg 3
-
-