home *** CD-ROM | disk | FTP | other *** search
- Cgrind is a program which uses different fonts to emphasize certain parts of a
- C source file.
-
- You can independently specify which font to use for comments, strings, function
- names, and reserved words. Other parts of the C source are always output in
- the regular font.
-
- The invocation signature for cgrind is
-
- cgrind [-cX] [-sX] [-fX] [-rX] [filenames]... >newfile
-
- The font choice for each type of token is specified with these flags...
- -cX for comments
- -sX for strings
- -fX for function names
- -rX for reserved words
- ... where the 'X' is omitted for regular font, or one of...
- B for bold face
- I for italics
- U for underlined
-
- By default, comments and strings are output in the regular font, but function
- names are in bold face, and reserved words are underlined.
-
- If multiple filenames are given, then a formfeed will be added between them.
-
- As an example, the following command pretty-prints all C files in the current
- directory out to /dev/lp, which is an Epson-compatible printer. Comments are
- in italics, reserved words are in bold, and the rest is in the regular font...
-
- $ cgrind -cI -rB -f *.c | refont -e >/dev/lp
-
- (The refont command is described elsewhere.)
-