home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / elvis / Docs / cgrind < prev    next >
Encoding:
Text File  |  1989-12-31  |  1.2 KB  |  34 lines

  1. Cgrind is a program which uses different fonts to emphasize certain parts of a
  2. C source file.
  3.  
  4. You can independently specify which font to use for comments, strings, function
  5. names, and reserved words.  Other parts of the C source are always output in
  6. the regular font.
  7.  
  8. The invocation signature for cgrind is
  9.  
  10.     cgrind [-cX] [-sX] [-fX] [-rX] [filenames]... >newfile
  11.  
  12. The font choice for each type of token is specified with these flags...
  13.     -cX    for comments
  14.     -sX    for strings
  15.     -fX    for function names
  16.     -rX    for reserved words
  17. ... where the 'X' is omitted for regular font, or one of...
  18.     B    for bold face
  19.     I    for italics
  20.     U    for underlined
  21.  
  22. By default, comments and strings are output in the regular font, but function
  23. names are in bold face, and reserved words are underlined.
  24.  
  25. If multiple filenames are given, then a formfeed will be added between them.
  26.  
  27. As an example, the following command pretty-prints all C files in the current
  28. directory out to /dev/lp, which is an Epson-compatible printer.  Comments are
  29. in italics, reserved words are in bold, and the rest is in the regular font...
  30.  
  31.     $ cgrind -cI -rB -f *.c | refont -e >/dev/lp
  32.  
  33. (The refont command is described elsewhere.)
  34.