htmlindex


htmlindex, a C++ code which builds a skeleton HTML page for a C, C++, Fortran77 or Fortran90 source code file, documenting every routine in the file...if each routine has been appropriately marked. The information after the marker is usually a one line explanations of what the routine does.

For a C file, the special marker line has the form

        Purpose:

          ROUTINE has this purpose.
      

For a C++ file, the special marker line has the form

      // Purpose:
      //
      //    ROUTINE has this purpose.
      

For a Fortran77 file, the special marker line has the form

      cc ROUTINE has this purpose.
      

For a Fortran90 file, the special marker line has the form

      !! ROUTINE has this purpose.
      

After a little editing, the page is ready for posting.

Usage:

htmlindex myprog.c > myprog.html
where Similar commands work for C++, Fortran77 or Fortran90 files.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

htmlindex is available in a C++ version.

Related Data and Programs:

htmlindex_test

catalog, a C++ code which reads a C, C++, Fortran77, Fortran90, MATLAB, Python, or R code and prints every line that begins with a special index tag. If the code has been marked up expecting this convention, a handy table of contents will be created.

f77split, a C code which reads a Fortran77 file and creates individual files for every blockdata, function, module, program, or subroutine in the file.

f90split, a C code which reads a Fortran file and creates individual files for every blockdata, function, module, program, or subroutine in the file.

f90split, a Fortran90 code which reads a Fortran file and creates individual files for every blockdata, function, module, program, subroutine in the file.

fsplit, a Fortran90 code which reads a Fortran file and creates individual files for every function, program, or subroutine in the file, by Van Snyder.

include_files, a Fortran90 code which reads a Fortran program with INCLUDE statements, and makes a copy with the indicated files included.

Source Code:


Last revised on 17 March 2020.