SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

*** README for code2html(1) ***
*** $Revision: 1.2 $
*** $Date: 2002/01/12 21:17:02 $

[For details on installing code2html see the INSTALL file]

This is the README for code2html, a tool wich allows you to convert your source code files to syntax highlighted HTML. In the future other output-formats may be added, the hooks to support this are already there.

For options and details please query the man-page which is distributed together with code2thml. In short, there are 3 ways to use code2html:

  • Convert a simple source-code file to HTML. For example to convert the code2html perl script itself to an HTML file, use

code2html code2html out.html

The first part ('code2html') calls the program itself, the second block is the source file, where code2html should take the source-code to syntax highlight from, and the third and last part is the desitination file.

The source and destination files are optional, if not given STDIN and STDOUT will be used.

  • Use code2html in patch mode. Code2html allows you to have inline source code in an HTML file. It can then take this file and replace the source code in the HTML file with its syntax highlighted counterpart.

    For details see the man-page.

  • At last code2html can also be used as a CGI script.

    See the man-page and the example at

    http://www.palfrader.org/code2html/

    for details.

Have fun.
Peter Palfrader <code2html@palfrader.org>


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.