Download GitHub Syntaxhighlighter 4.0.1
-
Install NodeJS
-
Go to directory of unzipped syntaxhighlighter at Terminal. (That supports NodeJS e.g. GitHub Terminal)
-
At Terminal
- npm install
- npm install gulp
- gulp setup-project
- gulp build --brushes=all --theme=default
-
Should be in dist folder (The created files).
Ignore warnings. As long as no errors.
Use syntaxhighlighter.js & theme.css (Nothing else).
May require async in script load on syntaxhighlighter.js file for GitHub.
SyntaxHighlighter is THE client side highlighter for the web and web-apps! It's been around since 2004 and it's used virtually everywhere to seamlessly highlight code for presentation purposes.
The history of this project predates majority of the common web technologies and it has been a challenge to dedicate time and effort to keep it up to date. Everything used to be in one file and assign window
variables... Horrors!
SyntaxHighlighter is currently used and has been used in the past by Microsoft, Apache, Mozilla, Yahoo, Wordpress, Bug Labs, Freshbooks and many other companies and blogs.
⚡ Reporting an issue? See Filing Issues. ⚡
- v4 is fully compatible with old brushes and themes, see Building instructions.
- The
?
was completely removed for cleaner, more seamless experience. - You still have to HTML escape
<
when using<pre/>
tags.
If you are looking for v3 documentation and download, you can find it on the old site.
As it always goes with open source, you are welcome to use SyntaxHighlighter free of charge. If you are using and enjoying my work, maybe you could buy me a beer (or if you don’t drink – a coffee and bagel will do just fine, a good kind of bagel though, you know… with wonderful stuff inside to make it glorious, like smoked salmon and creamcheese… not just butter).
Please click here to donate via PayPal and just like they say on TV – give generously! It motivates me to keep working on this (12 years now and counting).
MIT