The developers' kit contains a script named codedoc,
which will produce latex ( dvi, postscript, html) from
suitably embedded comments in source code.
The syntax for running codedoc is
codedoc [-c] [-T title] [-pdh] [-s n] [-f times|cmr] [-t papersize] file1 file2 ....
-p, -d, -h request postscript, dvi, html output (default -p)
-c cleans up (deletes all generated files) then quits.
-f requests cmr (default) or times fonts (only if you have the mathptm package and associated files).
file1 etc can either be files containing pure LATEX, or else files containing fortran code, but set up such that when run through the MOLPRO fortran preprocessor ftc -Dlatex will produce only LATEX and cstart, celse, cend lines (which will be stripped out). Examples of how this is done can be found in the MOLPRO source files which have links in the develop directory.
LATEX2e is required; for producing html,
latex2html
is needed.