Name: prism-element
Owner: PolymerElements
Description: Prism-based syntax highlighting
Created: 2015-04-09 19:02:05.0
Updated: 2018-05-03 04:48:25.0
Pushed: 2018-05-23 02:40:01.0
Homepage: null
Size: 81
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Syntax highlighting via Prism.
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>
.