Highlights source code examples in a Bespoke.js presentation using Prism.
View the demo online.
This repository includes a demo folder that shows this plugin in action. To view it locally, you first need to clone this repository:
$ git clone https://github.com/opendevise/bespoke-prism && cd bespoke-prism
Next, install the dependencies inside the project folder using npm:
$ npm install
Finally, visit the file demo/index.html in your browser to see the plugin in action.
Download the production mode version or the development mode version, or use a package manager.
This plugin is shipped in a UMD format, meaning it is available as a CommonJS/AMD module or as a browser global.
For example, when using CommonJS modules:
var bespoke = require('bespoke'),
prism = require('bespoke-prism');
bespoke.from('.deck', [
prism()
]);
When using a browser global:
bespoke.from('.deck', [
bespoke.plugins.prism()
]);