src2www: Source code to web pages

(Last changed 25 June 1996)

Description:

These programs take source code as input, and produce formatted listings in html. The provided scripts also produce alphabetical indexes of declarations, within each file and for a set of files. They do not indent source code. src2www produces web documents for Ada83, Ada95, Ansi C, Csh scripts, and some simple C++.

See also src2fm for producing FrameMaker documents. You may also want to browse a list of other filters that produce html from source code, especially if you program in C++.

Recent changes

Versions 0.9g&h of June 1996: A long-overdue enhancement with numerous fixes, plus support for embedded images in comments.

Try it on your own source code if your browser has file-upload capability as specified in RFC 1867.

Index

  • Features - including a link to examples
  • Status of this release
  • Requirements - what you need to run src2www
  • Availability - downloading source and binaries
  • Bugs and known problems in the current release
  • Plans for further development
  • Contacting the author
  • Try it on your own source code if your browser has file-upload capability.

  • Features:

    Examples


    Status:

    Beta release --- some bugs fixed, but there are probably more.

    See also known problems.

    Requirements:

    src2www runs on the Unix operating system; they have been tested on Sun Sparcstations under Solaris2 (a SysVoid), and should run under other Unix operating systems. I do not have resources to port src2fm to Mac, Windows/Dos, VMS, or other non-Unix platforms at this time. I am happy to provide advice and what help I can to anyone who wants to do their own port to a non-Unix platform.

    Building the binaries requires Gnu make, flex and gcc from FSF. The scripts make heavy use of the new version of awk as described in the book, "The Awk Programming Language." This version of awk is implemented by gawk from FSF, and is also packaged as "nawk" or "v7awk" with some Unix systems. The command named "awk" is often NOT the new version. (A good Perl programmer could probably translate these all to Perl in about an hour.)

    Availability

    This is free software. Full source code is available. The current version is 0.9h. (Version numbers are synchronized with src2fm, but new versions are not always released simultaneously). Changes occur irregularly but frequently --- feedback from users typically results in at least some small improvements or corrections within a week or two.
    Icon: dump truck Version 0.9g, the almost current version. This is a source distribution. It doesn't properly title the global index page.
    Icon: dump truck Version 0.9h, the really current version, it is just a small bug fix after 0.9g. (I will remove 0.9g when I am sure the small bug fix didn't result in some bigger bug.) This is a source distribution.
    Icon: dump truck Version 0.9e, an older version, just in case of problem with 0.9g.

    Note: These are compressed tar files. Versions 0.9g and 0.9h are compressed with Gnu zip, version 0.9e is compressed with the Unix compress utility. A typical command for unpacking them on a Unix workstation is

    zcat src2www-0.9g.src.tar.gz | tar xvf -
    
    This source code has not been prepared for dos/windows or mac environments.

    Send mail to request a different version or configuration, or to request help. I also appreciate a note just to tell me if you find the software useful (or to tell me why you don't).


    Bugs and problems


    Plans and wish list


    Thanks to the following people for making src2www better through their criticism, suggestions, and bug fixes:

    Contact me

    Please send email to michal@cs.uoregon.edu
    Michal Young