0.0.7 • Published 3 years ago

gulp-highlight-files-x v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

NameTypeDescription
languagestringExplicit language to be used to highlight files.
languageMapanyObject that maps extensions to a specific HighlightJS language.
hljsOptionsanyOptions being passed to HighlightJS.
ignoreSyntaxbooleanWhether syntax errors should be ignored. Default: true.