Hosted
A prebuilt version of highlight.js with 36 commonly used languages is hosted by following CDNs:
cdnjs
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
jsdelivr
<link rel="stylesheet"
href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/default.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/highlight.min.js"></script>
unpkg
<link rel="stylesheet"
href="//unpkg.com/@highlightjs/cdn-assets@11.7.0/styles/default.min.css">
<script src="//unpkg.com/@highlightjs/cdn-assets@11.7.0/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.
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:
node tools/build.js -t node
Source
Current source is available on GitHub
How to use it
Refer to the usage document.