An open API service indexing awesome lists of open source software.

https://github.com/gadicc/meteor-prism

Prism Syntax Highlighter, integrated with Meteor
https://github.com/gadicc/meteor-prism

Last synced: 10 months ago
JSON representation

Prism Syntax Highlighter, integrated with Meteor

Awesome Lists containing this project

README

          

## prism

Smart package for [Prism](http://prismjs.com/), a Syntax Highlighter.

Features:

* COMING SOON: Optional bundling of additional languages (default: css,markup,js,blaze,bash)
* COMING SOON: Optional bundling of additional plugins (line-numbers,line-highlight)
* COMING SOON: Optional bundling of additional themes (default: okaida)
* Template helpers and COMING SOON: integration with markdown packages
* spacebars (meteor) language definition (early, as yet unsubmitted back to prism)

## Usage

```handlebars
{{#prism language="javascript" class="line-numbers" data-line="1-2, 4, 5"}}
function gadi(hi) {
exit();
}
{{/prism}}
```

The `Prism` global JS variable is also available, see the
[API docs](http://prismjs.com/extending.html#api).

Notes:

* Creates a `

` wrapper as per recommendations

* `class=""` and `data-X=""` are passed through to `
` element, useful for plugins