Skip to content

rdworth/node-pygmentize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-pygmentize

Syntax highlighting with pygmentize.

Requires the pygmentize command line tool from Pygments.

Use this if you have an html file with various blocks of code you want syntax highlighted.

If you're looking for a more generic wrapper around Pygments, see https://github.com/pksunkara/pygments.js

Limitations

Currently only works on html snippet files that only contain the contents of a body.

Getting Started

Install the module with: npm install pygmentize

var pygmentize = require( "pygmentize" );
pygmentize.file( filename, callback( err, data ) );

License

Copyright (c) 2012 Richard D. Worth Licensed under the MIT license.

About

Syntax highlighting with pygmentize

Resources

License

Stars

Watchers

Forks

Packages

No packages published