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
- Host: GitHub
- URL: https://github.com/gadicc/meteor-prism
- Owner: gadicc
- Created: 2014-09-26T09:05:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-28T07:01:27.000Z (over 11 years ago)
- Last Synced: 2025-04-05T10:30:26.665Z (about 1 year ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
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