Skip to content

SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript.

License

Notifications You must be signed in to change notification settings

themechoose/syntaxhighlighter

 
 

Repository files navigation

SyntaxHighlighter v4

GratiPay Build Status Downloads Version

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. ⚡

Get Started

FAQ

  • 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.

Older Version

If you are looking for v3 documentation and download, you can find it on the old site.

Support

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).

License

MIT

About

SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.4%
  • HTML 3.3%
  • CSS 2.3%