Sample dan CSS yang digunakan

CSS (Copy CSS ini ke Template)

.hljs{color:#a9b7c6;background:#282b2e;display:block;overflow-x:auto;padding:0.5em}
.hljs-number,.hljs-literal,.hljs-symbol,.hljs-bullet{color:#6897BB}
.hljs-keyword,.hljs-selector-tag,.hljs-deletion{color:#cc7832}
.hljs-variable,.hljs-template-variable,.hljs-link{color:#629755}
.hljs-comment,.hljs-quote{color:#808080}
.hljs-meta{color:#bbb529}
.hljs-string,.hljs-attribute,.hljs-addition{color:#6A8759}
.hljs-section,.hljs-title,.hljs-type{color:#ffc66d}
.hljs-name,.hljs-selector-id,.hljs-selector-class{color:#e8bf6a}
.hljs-emphasis{font-style:italic}
.hljs-strong{font-weight:bold}

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;