gulp-highlight-files

Gulp plugin to highlight given files


Keywords
gulp, gulp-plugin, highlight, highlightjs, node, snippets
License
MIT
Install
npm install gulp-highlight-files@0.0.7

Documentation

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.