hifile
v2.1.1
Published
generate markup for highlight.js file viewer
Downloads
42
Maintainers
Readme
hifile 
Generate file viewer markup for highlighted strings from highlight.js

Live demo of example output available on rawgit.com.
Usage
var hifile = require('hifile');
var str = fs.readFileSync(path.join(__dirname, 'example.js'), 'utf8');
var markup = hifile(str, 'js');Presentation and behaviour are provided via:
assets/css/hifile.cssassets/js/hifile.jswithassets/css/hljs-theme-*.cssfor highlight theming
When served to the browser with the markup, line numbers and line highlighting will be available.
