ForgeComponente
ro

Componente

j-HighlightSyntax

jComponent 20 · jcomponent@20 component Exemplu încărcat cu jComponent 20

Simplă sinteză cu ajutorul Highlight.js.


Configurarea:

  • type trebuie să conțină un tip de conținut pentru a evidenția

Utilizați-l cu <ui-component name="highlightsyntax">Când componenta nu este încă încărcată, jComponent Descărcați-l la prima utilizare de la adresa DEF.fallback (în cazul Componentator Autor: Peter Širka. sursă: Componentator Componente de stocare, MIT licență.

example.html
<ui-component name="highlightsyntax" path="exampleHTML" config="type:html"></ui-component>
<ui-component name="highlightsyntax" path="exampleJS" config="type:js"></ui-component>
<ui-component name="highlightsyntax" path="exampleCSS" config="type:css"></ui-component>

<script>
	var exampleHTML = "This is <b>HTML</b>";
	var exampleJS = "var a = 0;";
	var exampleCSS = "body { color: red; }";
</script>