Highlight JS needs to be built with specific language support. Here are the steps to build the minified file that appears here.
NOTE: If you are adding support for a language to Highlight.js make sure to add it to the list of languages in the build command below.
You will need:
The packed version of Highlight.js is an un-minified JS file with all of the languages included. Build it with the following:
$> # start in some temp directory $> git clone https://github.com/highlightjs/highlight.js $> cd highlight.js $> git clone https://github.com/highlightjs/highlightjs-closure-templates $> ln -s ../../highlightjs-closure-templates/soy.js src/languages/soy.js $> mkdir test/detect/soy && ln -s ../../../highlightjs-closure-templates/test/detect/soy/default.txt test/detect/soy/default.txt $> npm install $> node tools/build.js
The resulting minified JS file will appear in the “build” directory of the Highlight.js repo under the name “highlight.min.js”.
Copy the resulting build/highlight.min.js file to lib/highlightjs