Hosted

A prebuilt version of highlight.js with 22 commonly used languages is hosted by following CDNs:

cdnjs

<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>

You can find the list of commonly used languages below in the custom download form.

For other available styles look into the highlight.js styles directory (and don't forget to add ".min" before ".css").

Custom package

You can download a custom bundle including only the languages you need.

Common

Other

Node.js

Highlight.js can be used on the server through the API. The package with all supported languages is installable from NPM:

npm install highlight.js

Alternatively, you can build it from the source:

python3 tools/build.py -tnode

Source

Current source is available on GitHub

How to use it

Refer to the usage document.