Report: Printable Source Code Format |
Option: -p |
Supplemental Options: -B1 Begin Top Margin Line Spacing -M5 Left Margin Character Spacing -P55 Page Length in Lines -L80 Line Length in Characters -S "string" Header String |
Compatible Options: F, O, r, R |
Usage: rsm -H -p *.h *.cpp > report.htm rsm -H -p *.java > report.htm |
Source: C, C++ and Java |
The -p mode will take your source code and format it for printing.
The format provides a header for each file with the file name, date and size. Each
line in the source code is numbered with a line number. This type of format is
amenable to code peer reviews. -B Specifies the top margin of the page. This value is set to a default of one (1) line. You will have to perform trial an error with your printer to get the output to be centered on the page. -M Specifies the left margin of the page. The value is set to a default of five (5) spaces. -P The page length is set to a default of 55 lines. There also is a configuration file option for a page break after each source code page. This option is set by default to no page break so that Visual Studio and Web Browsers can correctly paginate the the source code output. -L The line length is the printable line length. This length includes the space required to display the line numbers ( 6 spaces), however the line length must fit on the printed line length. -S A header string can be specified so that a formatted header is presented on top of each file. This header is user specified and can represent the company or a project name. The header string must be delimited with quotation marks. |
Acme Software Systems File: Contact.java Date: Sun Jun 27 10:38:16 1999 ______________________________________________________________________________________ 1| package rolodex; 2| 3| import java.io.BufferedReader; 4| import java.io.InputStreamReader; 5| import java.io.IOException; 6| import java.io.Serializable; 7| |