home *** CD-ROM | disk | FTP | other *** search
- SOURCE
-
- SOURCE Version 1.4 - Source code file printing program
- Copyright 1992, 1993 Rick Maddy
-
- 1 Distribution
-
- The SOURCE program is made up of these files:
-
- SOURCE.EXE The SOURCE program file.
- SOURCE.DOC The main documentation file.
- SOURCE.PRT The default printer definition file.
- SOURCE.CFG The default configuration option file.
- SOURCE.LNG The default language definition file.
- README.1ST This file.
- REGISTER.TXT Order form to register SOURCE.
-
- The shareware version of SOURCE is distributed as a self-
- extracting compressed file. SRCV14.EXE may be passed onto anyone
- you choose, provided it remains intact, ALL files are kept
- together, and only the original files are distributed. DO NOT
- compress and pass on your modified files. If you make any
- changes to the SOURCE.PRT or SOURCE.LNG files that you feel would
- effect or benefit other users, please send me a copy.
-
- 2 What is SOURCE?
-
- SOURCE is a program for printing source code and text files.
- However, using SOURCE to its fullest potential gives you an
- extremely powerful and flexible program for printing source code
- and allows for numerous options for formatting the output.
- SOURCE will usually be used to send programming source code to a
- printer. I strongly advise you to read SOURCE.DOC to understand
- all of SOURCE's capabilities.
-
- 3 Quick Start
-
- Before running SOURCE for the first time, make sure you have
- placed SOURCE.EXE, SOURCE.PRT, SOURCE.LNG, and SOURCE.CFG all
- within the same directory. You may also wish to include this
- directory in your path so that you can run SOURCE from anywhere
- on your system.
-
- The simplest way to run SOURCE is to type:
-
- SOURCE filename.ext
-
- "SOURCE" is the program SOURCE, and "filename.ext" is the name of
- the file you are going to print. You may press the [Esc] key
- anytime while a file is being printed to abort SOURCE and stop
- the current file from printing. Remember, most printers have a
- buffer and the printing will probably not stop immediately.
-
- 4 Selecting a Printer
-
- The first time you run SOURCE you will be asked to select your
- default printer from the list of initially supported printers.
-
- Page 1
- SOURCE
-
- SOURCE supports many common printers, which should cover most of
- the printers in use. Pick the printer that matches closest to
- the one that you have.
-
- Note: If none of the printers are like yours, select
- the "Generic" printer for now. You will still be able
- to print files, you just won't be able to take full
- advantage of SOURCE's strengths. Later on you'll see
- how to modify SOURCE.PRT to take full advantage of your
- printer. See SOURCE.DOC for more information on
- printer definitions.
-
- This printer should be connected to printer port one, "LPT1:".
- If you are using a different port for your printer, see
- SOURCE.DOC for information on changing the printer port used by
- SOURCE.
-
- 5 SOURCE Options
-
- Typing "SOURCE" at the command prompt with no options will give
- you a few lines about the general command line syntax. You may
- type "SOURCE -?" to see a few screens showing the command line
- syntax, what each option is, and the options' current defaults.
-
- What follows is an abbreviated list of the command line options
- that SOURCE recognizes. See SOURCE.DOC for a complete listing
- and an explanation of each option. All options are case
- sensitive, so remember not to run SOURCE with your Caps Lock key
- on.
-
-
- A partial list of SOURCE options:
-
- Option Description
-
- ? Help.
- b[-] Block Grouping.
- c{b|u|i|o|n} Comment Highlighting.
- f# Final Line.
- F# Final Page.
- h# Header Page.
- i# Initial Line.
- I# Initial Page.
- k{b|u|i|o|n} Keyword Highlighting.
- l{6|8} Line Spacing.
- n[-] Line Numbering.
- o{l|p} Page Orientation.
- p{p|e|c} Pitch.
- s{1|2|3|4} Column Count.
- t[#,]# Tab Stop [Start and] Size.
- $ Registration Info (if you like it, please register
- it).
-
- Remember to read SOURCE.DOC for a complete listing of options.
-
-
- Page 2
- SOURCE
-
- 6 Final Notes
-
- The language file as supplied contains, among others, separate
- definitions for dBASE and Clipper. Since both languages use the
- '.prg' extension, SOURCE may not properly choose the right
- definition for you. When you print a '.prg' file, SOURCE will
- select the last definition it finds in SOURCE.LNG that has a
- '.prg' extension. As supplied, this will be Clipper. If you
- only program in dBASE, you have a few options to solve this:
-
- - You could remove the Clipper definition from SOURCE.LNG.
- This is not the best because you may need it later.
-
- - You could move the dBASE definition after the Clipper
- definition. This would cause SOURCE to use the dBASE
- definition over the Clipper definition when it prints a
- '.prg' file.
-
- - You could change the defined extension for Clipper to
- something other than '.prg'. The downside to this is if
- you need to print a Clipper file, you have to do more
- work.
-
- - The last option is to use the 'x' command line option to
- force SOURCE to use the dBASE definition. Example:
-
- SOURCE -x dbase file.prg
-
- This will make SOURCE use the dBASE definition regardless
- of the file's extension and any other definition that uses
- the file's extension.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3
-
-