Sample dan CSS yang digunakan

CSS (Copy CSS ini ke Template)

.hljs-comment{color:#8d8d8d}
.hljs-quote{color:#b3c7d8}
.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#c66}
.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-number,.hljs-subst .hljs-link,.hljs-type{color:#de935f}
.hljs-attribute{color:#f0c674}.hljs-addition,.hljs-bullet,.hljs-params,.hljs-string{color:#b5bd68}
.hljs-meta,.hljs-section,.hljs-title{color:#81a2be}.hljs-class,.hljs-function,.hljs-keyword,.hljs-selector-tag{color:#be94bb}
.hljs-symbol{color:#dbc4d9}
.hljs{display:block;overflow-x:auto;background:#303030;color:#c5c8c6;padding:.5em}
.hljs-emphasis{font-style:italic}
.hljs-strong{font-weight:700}

Contoh HTML, XML

<!DOCTYPE html>
<title>Title</title>

<style>body {width: 500px;}</style>

<script type="application/javascript">
  function $init() {return true;}
</script>

<body>
  <p checked class="title" id='title'>Title</p>
  <!-- here goes the rest of the page -->
</body>

Contoh JavaScript

function $initHighlight(block, cls) {
  try {
    if (cls.search(/\bno\-highlight\b/) != -1)
      return process(block, true, 0x0F) +
             ` class="${cls}"`;
  } catch (e) {
    /* handle exception */
  }
  for (var i = 0 / 2; i < classes.length; i++) {
    if (checkCondition(classes[i]) === undefined)
      console.log('undefined');
  }

  return (
    <div>
      <web-component>{block}</web-component>
    </div>
  )
}

export  $initHighlight;