Generate HTML syntax-highlighted listings for any file using pygments

Category: Python - Miscellaneous

Generates HTML highlighted code listings for source code files in any language known to
pygments. For a list of supported formats see http://pygments.org/languages

Make sure you have pygments is installed. Try easy_install pygments.

Example usage:

output to stdout:

python highlight.py my_source_file.java


output to file:

python highlight.py my_source_file.java > my_source_file.html Date: 20 January, 2012


Pretty Printer - Pygments - Syntax Highlighter

Homepage: http://code.activestate.com/recipes/576812-generate-html-syntax-highlighted-listings-for-any-/?in=lang-python

Developer: ccpizza

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This php script converts your php code into a syntax colored html text.

developer Developer: phptoys.com
license License: Freeware
operating systems Operating System: All


This is a php script that takes a php file as an input and then outputs its code with the standard php highlighting but with line numbers as well.

developer Developer: dreamincode.net
license License: Freeware
operating systems Operating System: Windows, Linux, BSD, Solaris


SPSS can output ASCII.

developer Developer: wouter
license License: Freeware
operating systems Operating System: Windows


Python regular expression are very powerful and efficient and they can be applied to the recognition of different types of sequences.

developer Developer: Emanuele Ruffaldi
license License: Freeware
operating systems Operating System: Windows