gulp-highlight-files

0.0.7 • Public • Published

gulp-highlight-files

Gulp plugin to highlight a set of files using HighlightJS.

Installation

$ npm install gulp-highlight-files --save-dev

Example

const gulpHighlightFiles = require('gulp-highlight-files');

/* Inside of the gulp task. */
return gulp.src('**/*.html')
  .pipe(gulpHighlightFiles(options)
  .pipe(gulp.dest('dist'));

Configuration

Name Type Description
language string Explicit language to be used to highlight files.
languageMap any Object that maps extensions to a specific HighlightJS language.
hljsOptions any Options being passed to HighlightJS.
ignoreSyntax boolean Whether syntax errors should be ignored. Default: true.

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-highlight-files

Weekly Downloads

137

Version

0.0.7

License

MIT

Unpacked Size

4.33 kB

Total Files

4

Last publish

Collaborators

  • devversion