GNU GNU Source-highlight

Source-highlight reads source language specifications dynamically, thus it can be easily extended (without recompiling the sources) for handling new languages. It also reads output format specifications dynamically, and thus it can be easily extended (without recompiling the sources) for handling new output formats. The syntax for these specifications is quite easy (take a look at the manual).

Source-highlight is a command line program, and it can also be used as a CGI.

Notice that source-highlight can also be used as a formatter (i.e., without highlighting): you can, for instance, format a txt file in HTML (and it will take care of translating special characters, such as, <, >, &).

Since version 2.2, source-highlight can also generate cross references; in order to do this it relies on GNU Ctags, http://ctags.sourceforge.net.

These are the output formats already supported:

    * HTML
    * XHTML
    * LATEX
    * TEXINFO
    * ANSI color escape sequences (you can use this feature with less)
    * DocBook

These are the input languages (or input formats) already supported (in alphabetical order):

    * Ada     
    * Autoconf files
    * C/C++
    * C#
    * Bib
    * Bison
    * Caml
    * Changelog
    * Css
    * Diff
    * Flex
    * Fortran
    * GLSL
    * Haxe
    * Html
    * ini files
    * Java
    * Javascript
    * KDE desktop files
    * Latex
    * Ldap files
    * Logtalk
    * Log files
    * lsm files (Linux Software Map)
    * Lua
    * Makefile
    * M4
    * ML
    * Pascal
    * Perl
    * PHP
    * Postscript
    * Prolog
    * Properties files
    * Python
    * RPM Spec files
    * Ruby
    * Scala     
    * Shell
    * S-Lang
    * Sql
    * Tcl
    * XML
    * XOrg conf files     

Last updated 14 Jan, 2009


User level: Intermediate

User Rating:

Homepage

License(s) :

GPLv3orlater

Rate it!

 

About

Leadership

Versions

3.1.1
3.1
3.0
2.11.1

User Community and Support

http://www.gnu.org/software/src-highlite/source-highlight.html

General Resources

Development

Developer Resources
  • VCS Checkout Command: cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/src-highlite co src-highlite
  • Homepage
  • Download
 

Please send comments on these web pages to bug-directory@fsf.org, send other questions to info@fsf.org.

Copyright © 2000 - 2009 Free Software Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA

The copyright licensing notice below applies to this text. Any software described in this text has its own copyright notice and license, which can usually be found in the distribution itself.

Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.