Cpp2html v1.1 - C/C++ source code to HTML
- Size
- 475K (486,080 bytes)
- Added
- 2026-11-20 02:43
- Downloads
- 2
- Long Description
- Ported by LouiSe more info and other AMIGA ports at: http://louise.amiga.hu ----------------------------------------- GNU cpp2html 1.1 by Lorenzo Bettini This is a simple program that, given a source C/C++ file, produces an html source with syntax highlighting. cpp2html is free software. Please see the file COPYING for details. For documentation, please read this file. As it is a GPL program, I provide sources (~70k), but if you don't fell like compiling it, you can download Win32 executable (~100k) (new). This program is based on java2html (whose main site is http://www.gnu.org/software/java2html/java2html.html, but locally should be here); as I received many requests for a similar program for C++ I decided to make a syntax highlighter for C++ as well. This very page is also based on the one of Java2html. Cpp2html is a GNU program, so you can download it also fro GNU's ftp site: ftp://ftp.gnu.org/gnu/cpp2html/ or from here: * Latest Version (sources, .tar.gz) - md5sum - signature of md5sum * Latest Version (win32 executable, zipped) - md5sum - signature of md5sum * Cygnus DLL for win32 (needed for win32 executable, zipped) You may also want to check the md5sum of the archives, which are also digitally signed by me (Lorenzo Bettini) with GNU gpg (http://www.gnupg.org). My GPG public key can be found at my home page (see at the end of this doc). Cpp2html main home page is at GNU site: http://www.gnu.org/software/cpp2html/cpp2html.html you can also get the pacthes (see below for patching from a previous version). Changes in this release * --header and --footer options added by Xavier Outhier <xouthier@yahoo.fr>, that allow to specify files to be included at the beginning and at the end of the generated document. * GNU gengetopt is used for command line parsing. * hexadecimal and floating point numbers are treated (Tom Hull <thull@kscable.com>). * fixed the bug of /* comment in another environment (notified by Michael Gasche <mgasche@datacomm.ch>) see also NEWS file and ChangeLog for the complete list of changes between versions. Installation See the file INSTALL for detailed building and installation instructions; anyway if you're used to compiling Linux software that comes with sources you may simply follow the usual procedure: cd <source code main directory> ./configure make make install Note: unless you specify a different install directory by --prefix option of configure (e.g. ./configure --prefix=<your home>), you must be root to 'make install'. Files will be installed in the following directories: * Executables -> /prefix/bin * docs and samples -> /prefix/share/doc/cpp2html * conf files -> /prefix/share/cpp2html Default value for prefix is /usr/local but you may change it with --prefix option to configure (see above). What you need to build cpp2html Actually you need nothing more than a Unix C/C++ compiler cpp2html has been developed under Linux, using gcc (C++), and bison (yacc) and flex (lex), and ported under Win32 with Cygnus C/C++ compiler, available at http://www.cygnus.com/ (a .DLL is also distributed togheter with the .exe: you may simply copy it in the same place of the .exe). I used the excellent GNU Autoconf and Automake. I also used Autotools (ftp://ftp.ugcs.caltech.edu/pub/elef/autotools) which creates a starting source tree (according to GNU standards) with autoconf, automake starting files. Finally I used GNU gengetopt (http://www.gnu.org/software/gengetopt), for command line parsing. Actually, unless you want to develop cpp2html, you don't need all these tools to build cpp2html because I provide generated sources; you don't need neither bison (yacc) nor flex (lex), for the same reason. Actually programs that use lex generated files need to link with library libfl (or libl for lex); anyway configuration phase can discover if this library is missing and in that case it sets the program to link