SyntaxHighlighter 3.0.83

Fork Me On GitHub
whats new?
SyntaxHighlighter is an open source Java Script client side code syntax highlighter.
donate download installation autoloader configuration @syntaxhighlight

About

Mission statement

SyntaxHighlighter helps developers to display code on their website. Just like what you see above!

Example

      	string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\">";
      
      	// single line comments
      	// second single line
      	override protected void OnLoad(EventArgs e)
      	{
      		if(Attributes["class"] != null)
      		{
      			//_year.CssClass = _month.CssClass = _day.CssClass = Attributes["class"];
      		}
      		base.OnLoad(e);
      	}
      

How does it work?

SyntaxHighlighter runs in the browser which means it doesn’t care what kind of server you have. In fact, SyntaxHighlighter can run locally on your computer without any web server at all and best of all it runs in virtually every modern web browser.

What does that mean for you?

That means you can install SyntaxHighlighter in your home page, blog, CMS, documentation CD or any other web page. It literally takes just a couple of minutes to get going and you will have beautifully highlighted code for all your users to admire.

License

You may use any SyntaxHighlighter project under the terms of either the MIT License or the GNU General Public License (GPL) Version 3.

The MIT License is recommended for most projects. It is simple and easy to understand and it places almost no restrictions on what you can do with a SyntaxHighlighter project.

If the GPL suits your project better you are also free to use a SyntaxHighlighter project under that license.

You don’t have to do anything special to choose one license or the other and you don’t have to notify anyone which license you are using. You are free to use a SyntaxHighlighter project in commercial projects as long as the copyright header is left intact.