Sample dan CSS yang digunakan

CSS (Copy CSS ini ke Template)

/*!
 * AMP Dev Style by Kang Ismet
 *
 * ampdev v1.0
 * https://github.com/kangismet
 */
.hljs{display:block;overflow-x:auto;padding:20px;color:#f2f2ed;background:#20202a}
.hljs-tag,.hljs-built_in{color:#f8f8f2}
.hljs-meta,.hljs-comment,.hljs-regexp{color:#75715e}
.hljs-number{color:#ae81ff}
.hljs-selector-class{color:#e2e2d8}
.hljs-attribute{color:#a6e22e}
.hljs-selector-id{color:#66d9ef}
.hljs-attr,.hljs-doctag,.hljs-keyword,.hljs-meta-keyword,.hljs-section,.hljs-selector-pseudo,.hljs-selector-tag{color:#a6e22e}
.hljs-literal,.hljs-name,.hljs-quote,.hljs-template-tag,.hljs-title,.hljs-type,.hljs-symbol{color:#f15a5a}
.hljs-link,.hljs-meta-string,.hljs-selector-attr,.hljs-string,.hljs-template-variable,.hljs-variable{color:#e6db74}
.hljs-bullet,.hljs-code{color:#ccc}
.hljs-deletion{color:#de7176}
.hljs-addition{color:#76c490}
.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;