Noweb

Noweb is a literate programming utility and format. A Noweb file contains both documentation and source code. Noweb is similar to WEB and CWEB, but can be used with almost any programming language. It can generate documentation in TeX, LaTeX, HTML, or troff format.

Sample files

 * ftp://www.eecs.harvard.edu/pub/nr/noweb/examples/

Links

 * Noweb website
 * Noweb