Sha256: 39c084d6ffcd78540f00ab3332c48a172e6104f408c9d9b616757cb66da0312b

Contents?: true

Size: 603 Bytes

Versions: 6

Compression:

Stored size: 603 Bytes

Contents

# prism-element

Syntax highlighting via [Prism](http://prismjs.com/).

Place a `<prism-highlighter>` in your document, preferably as a direct child of
`<body>`. It will listen for `syntax-highlight` events on its parent element,
and annotate the code being provided via that event.

The `syntax-highlight` event's detail is expected to have a `code` property
containing the source to highlight. The event detail can optionally contain a
`lang` property, containing a string like `"html"`, `"js"`, etc.

This flow is supported by [`<marked-element>`](https://github.com/PolymerElements/marked-element).

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
polymer-elements-rails-1.0.1 app/assets/components/prism-element/README.md
polymer-elements-rails-1.0.0 app/assets/components/prism-element/README.md
polymer-elements-rails-1.0.0.pre.rc.1 app/assets/components/prism-element/README.md
polymer-iron-rails-1.0.0.pre.rc.3 app/assets/components/prism-element/README.md
polymer-iron-rails-1.0.0.pre.rc.2 app/assets/components/prism-element/README.md
polymer-iron-rails-1.0.0.pre.rc.1 app/assets/components/prism-element/README.md