The weave program is used to create a file for viewing a program. It takes appropriate care of typographic details like page layout and the use of indentation, italics, boldface, etc., and it supplies extensive cross-index information that it gathers automatically. The command line arguments are the same as for tangle except for the option: -x says to omit the index, module name list, and table of contents pages. (A CONTENTS.tex file will still be written when the file is processed, however, unless some macros in webmac.tex are redefined.)
The output file name is formed by adding .tex to the root of the file name.
There are several macros that probably should be redefined by the programmer at the beginning of the file. It is a good idea to set \title to the name of the program. And, to cause output of only changed modules, one can say \let\maybe=\iffalse (usually as the first change in the change file).