The following command line arguments are supported:
-h | displays a banner and a brief description of the command line options. |
-l | causes the source file(s) to be segmented. Every occurence of a bookmark triggers a new segment. If -l is followed by a number, maxLines, the maximum number of lines in a segment is limited to maxLines. When the maximum number of lines is reached, a new segment is created. The segments of each source file are connected together by Up and Down hyperlinks. |
-p | writes the HTML file using the preformatted HTML tag ("<pre>"). In this mode, the "<" characters are converted to "<" to prevent them from being interpreted as HTML markups. |
-t | writes each HTML file using the template file that is provided as an accompanying argument: -t templateFile. The template file may contain a header and a footer specified as follows:header [=] { text } footer [=] { text } |
-x | expands tab characters to spaces. If -x numSpaces is specified, the tab settings are set at intervals of numSpaces, otherwise the interval size defaults to four. If -x is not specified, there is no substitution of tab characters. |
htmlrsf writes the HTML text to files in the current working directory. The file names are generated by appending "_nnnn.html" to the name of the original source file and by replacing all directory separators (forward/backward slashes and colons) by underline characters (i.e. /usr/include/stdio.h becomes _usr_include_stdio.h). The "nnnn" is the line number in the original source file that corresponds to the first line in the HTML text file. Thus, "example.c_0009.html" indicates that the first line of the HTML file corresponds to line nine of the source file "example.c".
The following are runtime warnings and errors that may be reported by htmlrsf to stderr.