Sample dan CSS yang digunakan

CSS (Copy CSS ini ke Template)

.hljs-comment,.hljs-quote{color:#989498}
.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-link,.hljs-deletion{color:#dd464c}
.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params{color:#fd8b19}
.hljs-class .hljs-title{color:#fdcc59}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#8fc13e}
.hljs-meta{color:#149b93}
.hljs-function,.hljs-section,.hljs-title{color:#1290bf}
.hljs-keyword,.hljs-selector-tag{color:#c85e7c}
.hljs{display:block;background:#322931;color:#b9b5b8;padding:0.5em}
.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;