Code2HTML

Current Version: 0.9.1

code2html Home | Download | ChangeLog | Contrib
Examples | Patching | Documentation
Test It Online | License | Links
Official Debian packages
CVS Repository | Mailing Lists | Bug Tracking at sourceforge.net
Home | Projects

HTML patching

... is a new way to elegantly have embedded source code in an html file.

 

Assuming you have the following html file:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>Foobar</title>
  </head>

  <body>
    <h1>Foobar</h1>

    Hello everybody!

<!-- code2html add -l c /home/weasel/foobar.c -->

    That's it.
  </body>
</html>

After running 'code2html -p thisfile.html' your file will look like this:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>Foobar</title>
  </head>

  <body>
    <h1>Foobar</h1>

    Hello everybody!

<!-- code2html add -l c /home/weasel/foobar.c -->

< the syntax highlighted code of /home/weasel/foobar.c is here >

    That's it.
  </body>
</html>


To see a real world example have a look at the examples:


Use Any Browser Here - Campaign for a Non Browser Specific WWW Peter Palfrader
Last modified: Mon Feb 14 00:00:01 CET 2000