Skip to content

opendevise/bespoke-prism

Repository files navigation

bespoke-prism

Highlights source code examples in a Bespoke.js presentation using Prism.

Example

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

Download the production mode version or the development mode version, or use a package manager.

npm

$ npm install bespoke-prism

Bower

$ bower install bespoke-prism

Usage

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()
]);

License

About

Highlights source code examples in a Bespoke.js presentation using Prism.

Resources

License

Stars

Watchers

Forks

Packages

No packages published