Source to .html converters by Florian Schintke and Martin Kammerhofer

Here are some converters for displaying sources highlighted in the WWW. These programs can work as CGI scripts and can convert your sources on the fly without the need for extra space on the harddisk.

These programs are very fast. To convert 0.5 MB in one file c2html needed 0.5 seconds on a Pentium MMX with 200 MHz. Another converter that is written in perl needed 15 minutes for the same file on the same machine. Think about the load on your server if such a program would be used as CGI-Script.

Please send bug reports and other feedback to schintke@gmx.de.

Binaries for the IA-64 architecture (Itanium) running with Linux:
  • c2html-0.9.2-ia64-unknown-linux.tar.gz (88 kB)
  • java2html-0.9.2-ia64-unknown-linux.tar.gz (108 kB)
  • pas2html-0.9.2-ia64-unknown-linux.tar.gz (34 kB)
  • perl2html-0.9.2-ia64-unknown-linux.tar.gz (49 kB)
  • Awards:
  • These software packages got 4 of 5 penguins on the TUCOWS Linux site.

  • c2html:
    Highlight C sources for WWW presentation.
  • Download latest version:
  • c2html-0.9.5.tar.gz (? downloads) c2html.spec to build .rpm
  • Description:
  • c2html.lsm
  • C Example:
  • highlighted source
    c++2html:
    Please use java2html. It is prepared to highlight C++ too.
    java2html:
    Highlight Java or C++ sources for WWW presentation.
  • Download latest version:
  • java2html-0.9.2.tar.gz (256 downloads between 23MAR00 - 12NOV00)
  • Description:
  • java2html.lsm
  • C++ Example:
  • highlighted source
  • Java Example:
  • highlighted source
    modula2html:
    Please use pas2html. It is prepared to highlight Modula2 too.
    pas2html:
    Highlight Pascal or Modula-2 sources for WWW presentation.
  • Download latest version:
  • pas2html-0.9.2.tar.gz (102 downloads between 23MAR00 - 12NOV00)
  • Description:
  • pas2html.lsm
  • Pascal Example:
  • highlighted source
  • Modula-2 Example:
  • highlighted source
    perl2html:
    Highlight Perl sources for WWW presentation.
  • Download latest version:
  • perl2html-0.9.2.tar.gz (160 downloads between 23MAR00 - 12NOV00)
  • Description:
  • perl2html.lsm
  • Perl Example:
  • highlighted source

    Future plans:
  • Configuration File Support
  • Cascading Style Sheet Support

  • Other software for html source presentation:
    If you know some other applications for this job, please send me your hint to schintke@gmx.de


    Other lists of source code converters are at:

    http://www.w3.org/Tools/Prog_lang_filters.html.

    http://www.hypernews.org/HyperNews/get/www/html/converters.html.

    I normally don't add entries here if they are already in one of that lists.

    . .
  • code2html:
  • by Peter Palfrader
    A perl script, that can also work as CGI. This program hilights more than my programs, but is very slow. To convert 0.5MB source code in one file it needed 15 minutes and my c2html needed 0.5 seconds (a half second). Think about the load on your server if used as CGI-Script.
  • c2html:
  • by Thomas H. Hildebrandt
    A perl script, that formats C Code with the usage of an EMACS tags file.
  • cpp2html:
  • by Lorenzo Bettini
    This is official GNU software.
  • DocItEasy:
  • by Hugues-Olivier Yar
    A Java application that formats Ada, C, and Java code and generates highlighted sources, dictionaries of main elements, and a global index.
  • java2html:
  • by Chris Bates
    This program is written in Java
  • java2html:
  • by Lorenzo Bettini
    This is official GNU software.
  • java2html:
  • by Steven Brandt
    This program is written in Java and can also highlight the Jasmin language.
  • java2html:
  • by Michael Gasche
    This program is written in Java, supports a configuration file, can generate CSS and can display a preview in a GUI using Java Swing.
  • java2html:
  • by Nils Hagge
    This program is written in Java. The hompage is in German.
  • java2html:
  • by Eric Soroos
    This program is written in Perl and generates some cross references.
  • pas2html:
  • by Christian Lackas
    This program is written in Pascal/Delphi. The hompage is in German.
  • pas2html:
  • by Pavel Satrapa
    This program is written in Pascal/Delphi. The hompage is in .cz.
  • perl2html:
  • by Earl Hood
    This program is written in Perl.
  • webcpp:
  • by Jeffrey Bakker
    This program is written in C++ and supports multiple languages.
  • Beautifier:
  • by Mike Jewell
    This program is written in Perl/PHP and supports multiple languages.
  • ss2html:
  • by Falko Gottschall
    This program is written in Java and includes an editor.
  • htmlfontify:
  • convert the "fontification" (colors, text decoration, text weight...) of an emacs buffer to html
  • source-highlight:
  • by GNU
    produces a document with syntax highlighting.