Blame view

bower_components/prism-element/README.md 616 Bytes
c5169e0e   Renato De Donato   a new hope
1
2
3
4
5
6
7
8
9
10
11
12
13
  # 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).