2.1.1 • Published 6 years ago

hifile v2.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

hifile npm.io

Generate file viewer markup for highlighted strings from highlight.js

hifile output

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.css
  • assets/js/hifile.js with
  • assets/css/hljs-theme-*.css for highlight theming

When served to the browser with the markup, line numbers and line highlighting will be available.

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.4.0

10 years ago

1.1.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago