Sample dan CSS yang digunakan

CSS (Copy CSS ini ke Template)

.hljs{display:block;overflow-x:auto;color:#eaeaea;background:#000;padding:0.5}
.hljs-subst{color:#eaeaea}
.hljs-emphasis{font-style:italic}
.hljs-strong{font-weight:bold}
.hljs-builtin-name,.hljs-type{color:#eaeaea}
.hljs-params{color:#da0000}
.hljs-literal,.hljs-number,.hljs-name{color:#ff0000;font-weight:bolder}
.hljs-comment{color:#969896}
.hljs-selector-id,.hljs-quote{color:#00ffff}
.hljs-template-variable,.hljs-variable,.hljs-title{color:#00ffff;font-weight:bold}
.hljs-selector-class,.hljs-keyword,.hljs-symbol{color:#fff000}
.hljs-string,.hljs-bullet{color:#00ff00}
.hljs-tag,.hljs-section{color:#000fff}
.hljs-selector-tag{color:#000fff;font-weight:bold}
.hljs-attribute,.hljs-built_in,.hljs-regexp,.hljs-link{color:#ff00ff}
.hljs-meta{color:#fff;font-weight:bolder}

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;