j-HighlightSyntax
Łatwa syntax highlight z pomocą Highlight.js.
Konfiguracja:
typemusi zawierać typ treści do podkreślenia
Użyj go z <ui-component name="highlightsyntax">Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu DEF.fallback (Wydaje się Componentator Autor: Peter Širka Źródło: Componentator Zestaw składników, licencja MIT.
<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>