cdn

Highlight.js

Released Installed

Syntax highlighting for the web with language autodetection.

How to include

<link rel="stylesheet" href="https://cdn.roste.org/highlightjs/latest/styles/github-dark.min.css" />
<script src="https://cdn.roste.org/highlightjs/latest/highlight.min.js"></script>
<script>hljs.highlightAll();</script>

Download zip


Sample

function greet(name) {
  const message = `Hello, ${name}!`;
  console.log(message);
  return { ok: true, message };
}

greet('world');