com.vaadin.polymer.public.bower_components.prism-element.README.md Maven / Gradle / Ivy
# prism-element
Syntax highlighting via [Prism](http://prismjs.com/).
Place a `` in your document, preferably as a direct child of
``. 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 [``](https://github.com/PolymerElements/marked-element).
© 2015 - 2025 Weber Informatics LLC | Privacy Policy