OLD | NEW |
(Empty) | |
| 1 # prism-element |
| 2 |
| 3 Syntax highlighting via [Prism](http://prismjs.com/). |
| 4 |
| 5 Place a `<prism-highlighter>` in your document, preferably as a direct child of |
| 6 `<body>`. It will listen for `syntax-highlight` events on its parent element, |
| 7 and annotate the code being provided via that event. |
| 8 |
| 9 The `syntax-highlight` event's detail is expected to have a `code` property |
| 10 containing the source to highlight. The event detail can optionally contain a |
| 11 `lang` property, containing a string like `"html"`, `"js"`, etc. |
| 12 |
| 13 This flow is supported by [`<marked-element>`](https://github.com/PolymerElement
s/marked-element). |
OLD | NEW |