Fortran/Documenting Fortran

FORD - FORtran Documenter
A great program for documenting fortran source code is FORD.

See the github page for instructions on installing, and usage of FORD: github.com.

Documenting Fortran using Doxygen
Documentation can be created right from source code using Doxygen.

The commandline program  creates the documentation using configuration files. The gui program  helps creating those files.

Overview
The source code needs to be documented using special comment syntax:,  and.

One should always set  within the configuration file.

Doxygen commands are usually ended by an empty comment line or a new doxygen command.

Note that support for Fortran is rather bad in doxygen. Even simple constructs such as  statements inside of  s are not supported (see here github.com).

LaTeX
One can also include LaTeX code within the documentation. Doxygen's website gives detailed information.

Empty documentation
If the documentation is just an empty page then one can try setting.