Skip to content

devversion/gulp-highlight-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.