HTML Output Mode

HTML Output Mode

Report:  HTML Output Mode
Option:  -H
Compatible Options: RSM Option Cross Reference
Usage:
rsm -H -O"report.htm" -c *.h *.cpp 
rsm -H -O"report.htm" -c *.h *.java 
Source:  C, C++, C# and Java
RSM creates reports, by default, to the screen terminal in text mode.  This output can be redirected to a text file using the > redirection operator.  For Example:  rsm -fa -o -c *.cpp > metrics.txt.  RSM can also create HTML output for its reports.  These reports can be read by any HTML browser.   RSM tests its HTML output in MS Explorer and Netscape Navigator.

The -H option tells RSM to create HTML.  This type of report is not readable except through a HTML browser.  There are two ways to open an HTML report.  You can run the browser from the command line passing the desired HTML file as an argument or you can use the "File-Open" capabilities of the browser.

HTML reports provide color and highlighted fonts for easy reading and active hyperlinks to the source code.  By default RSM creates literal hyperlinks.  These include the exact path to the file.  For portability you may desire to set the hyperlinks to be relative.  This setting can be modified in the rsm.cfg configuration file.