Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/werrett/bespoke-highlightjs
Highlights source code examples in a Bespoke.js presentation using HighightJS.
https://github.com/werrett/bespoke-highlightjs
bespoke-plugin bespokejs gulp highlightjs javascript nodejs presentations
Last synced: 19 days ago
JSON representation
Highlights source code examples in a Bespoke.js presentation using HighightJS.
- Host: GitHub
- URL: https://github.com/werrett/bespoke-highlightjs
- Owner: werrett
- License: mit
- Created: 2018-07-03T16:01:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T21:18:51.000Z (over 6 years ago)
- Last Synced: 2024-10-04T09:14:33.542Z (3 months ago)
- Topics: bespoke-plugin, bespokejs, gulp, highlightjs, javascript, nodejs, presentations
- Language: JavaScript
- Size: 847 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![Build Status](https://secure.travis-ci.org/werrett/bespoke-highlightjs.png?branch=master)](https://travis-ci.org/werrett/bespoke-highlightjs) [![Coverage Status](https://coveralls.io/repos/werrett/bespoke-highlightjs/badge.png)](https://coveralls.io/r/werrett/bespoke-highlightjs)
# bespoke-highlightjs
Highlights source code examples in a [Bespoke.js](http://markdalgleish.com/projects/bespoke.js) presentations using [Highlight.js](https://highlightjs.org/)
## Download
Download the [production version][min] or the [development version][max], or use a [package manager](#package-managers).
[min]: https://raw.github.com/werrett/bespoke-highlightjs/master/dist/bespoke-highlightjs.min.js
[max]: https://raw.github.com/werrett/bespoke-highlightjs/master/dist/bespoke-highlightjs.js## Usage
This plugin is shipped in a [UMD format](https://github.com/umdjs/umd), meaning that it is available as a CommonJS/AMD module or browser global.
For example, when using CommonJS modules:
```js
var bespoke = require('bespoke'),
highlightjs = require('bespoke-highlightjs');bespoke.from('#presentation', [
highlightjs()
]);
```When using browser globals:
```js
bespoke.from('#presentation', [
bespoke.plugins.highlightjs()
]);
```## Package managers
### npm
```bash
$ npm install bespoke-highlightjs
```### Bower
```bash
$ bower install bespoke-highlightjs
```## Credits
This plugin was built with [generator-bespokeplugin](https://github.com/markdalgleish/generator-bespokeplugin).
## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)