From now on highlight.js is hosted at Yandex and can be linked directly at instead of downloading. This package however doesn't contain all the languages since it would become embarrassingly big otherwise. So I looked at the top downloaded languages and selected those of them so the final package won't exceed 30K. The final selections is: HTML/XML, Javascript, CSS, PHP, Ruby, Perl, Python, C++, C#, Java, SQL, Bash (yeah, Bash!).

Style themes are also hosted along the library for direct linking. The documentation on usage is available so I won't repeat it here.

I hope this will help the highlighter to spread across blog services such as where people usually have troubles uploading and hosting their custom files. And actually I recommend anyone using selected languages to drop their custom version in favor of the hosted one in order to effectively use browser cache of your visitors.

P.S. I was asked on Twitter why I didn't choose Google. It's simple — I wasn't sure that those guys would care for this library and, I have to confess, initially I didn't find a link on that page where to ask about it. Anyway it was just easier to talk to the guys at my company :-). Thanks!

Add comment