gulp-highlight-files
v0.0.7
Published
Gulp plugin to highlight given files
Downloads
91
Readme
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
. |