Try src2www

If your browser supports file upload as defined in RFC1867, you can try src2www markup for Ada or C using the forms below. Submit a source code file, and in a few seconds you should be looking at an html version of that file.

The results are not identical to running src2www at your location. In particular, since you can submit only a single file through this form, we won't attempt to build a global alphabetic index of symbols.


Ada

Submit through this form to format Ada 95 or Ada 83. You should see a "browse" button; use it to select a file.


Ansi C

Submit through this form to format Ansi C. You should see a "browse" button; use it to select a file.

Things that probably won't work

Old-style (K&R) C, or Ansi C with old-style function headers, will not be properly indexed. A function header like

      int foo(int i) 
      {
should be correctly indexed, but
      int foo(i) 
          int i;
      {
will be mistaken for a prototype.

Simple C++ may be recognized, but templates and some other features will not be recognized.

Macros can confuse c2html, especially if they contain control flow or if they are expanded in function headers.