com.vaadin.polymer.prism.element.PrismHighlighterElement Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from prism-element project by The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.prism.element;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
/**
* 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>
.
*/
@JsType
public interface PrismHighlighterElement extends HTMLElement {
public static final String TAG = "prism-highlighter";
public static final String SRC = "prism-element/prism-highlighter.html";
/**
*
*
* JavaScript Info:
* @method attached
*
*/
void attached();
/**
*
*
* JavaScript Info:
* @method detached
*
*/
void detached();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy