0.0.7 • Published 5 years ago
gulp-highlight-files-x v0.0.7
gulp-highlight-files
Gulp plugin to highlight a set of files using HighlightJS.
Installation
$ npm install gulp-highlight-files --save-devExample
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. |
0.0.7
5 years ago