Codex is a program designed to help in the publishing of source code, for print or web publishing. Codex can export source code to HTML, RTF or TeX format, for publication, with fully customized syntax highlighting and styling. It can export directly to an FTP or to your local drive. It has a auto export mode and supports over 50 languages and file types.
Supported source types include:

68HC11 Assembler ADSP21xx AWK Baan 4GL

Borland Forms C# C/C++ Cache Object Script

CA-Clipper Cascading Style Sheet COAS Product Manager Report COBOL

CORBA IDL DOT Graph Drawing Description language Fortran Foxpro

Galaxy Gembase GW-TEL Haskell

HP48 HTML INI File Inno Setup Script

Java JavaScript KiXtart LEGO LDraw

Modelica Modula 3 MS VBScript MS-DOS Batch

Object Pascal Perl PHP Progress

Python Ruby Semanta Data Dictionary SQL

Standard ML Structured Text SynGen Msg Tcl/Tk

TeX UNIX Shell Script Unreal URI

Visual Basic Vrml97 86 Assembly XML