0.0.7 • Published 3 years ago

gulp-highlight-files v0.0.7

Weekly downloads
45
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.
0.0.7

3 years ago

0.0.6

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago