My favorites | Sign in
Project Logo
             
Search
for
Updated May 11, 2007 by alex.gorbatchev
Labels: Featured
Overview  
Overview of SyntaxHighlighter.

Introduction

The idea behind SyntaxHighlighter is to allow insertion of colored code snippets on a web page without relying on any server side scripts.

Who it's for

Intended primarily at for bloggers. However, I have seen some source web sites using it as their main display of source code.

Who it's NOT for

SyntaxHighlighter isn't for those looking for ability to edit highlighted code.

SyntaxHighlighter doesn't allow you to edit the source, it can't be made to do so and it will never do that.

Performance

SyntaxHighlighter uses regular expressions to parse the text. It's not extremely fast, in fact, it's pretty slow. If you are trying to highlight a few dozens lines of code, you won't see any problems. Trying to highlight 10kb worth of text will result in JavaScript being aborted because of long execution time.


Comment by abarriosh, Jul 13, 2007

Excelent Tool

Comment by StoryCharms, Sep 06, 2007

Congratulations on providing such a fantastic utility, by far the best method to display source code I have ever seen.

Comment by elvistar, Sep 27, 2007

So Cooooooooooool!! This script is very useful for programming or somthing like that community.

Comment by Thomas.Walloschke, Nov 19, 2007

shBrushHttpdApacheConf.js and new onfiguration option 'header'

my webspace changed to http://homepage.hamburg.de/bandara/shBrush the old provider didn't allow a redirect.

Thomas

Comment by silasrm, Nov 25, 2007

Como eu instalo no wordpress?

Comment by northorn, Mar 09, 2008

This tool is awesome! Thank you for creating it and making it available for everyone.

http://trailsinthesand.com

Comment by yefansky, May 10, 2008

BUG REPORT: hello, I found when there have a "</textarea>" tag in the text, will occur dislpay incorrect!

Comment by nycguitar, May 13, 2008

Super nice. Thanks for sharing!

Comment by loretoparisi, May 31, 2008

Hello! First of all I thank you for this usefull piece of code. I'm wondering if was possibile to add highlighting for other languages, such as Erlang. Is there any documentation to start with that?

Comment by florian.oeser, Jun 12, 2008

does anybody know how i can use this scripts running on wordpress?

Comment by sumitkondal, Jun 29, 2008

Hi, i like this code. But i want in JSP support. can anyone give me that

Comment by seanhess, Jul 04, 2008

please provide a hotlinkable url! I had to find a way to host this online for Blogger.

http://code.steelpotato.com/2008/07/javascript-css-and-image-hosting-for.html

Comment by omar.abid2006, Jul 12, 2008

cool man :) I like it

Comment by jaime.madrid, Jul 17, 2008

Somebody knows if this extension could work in MediaWiki? ???

Comment by fahd.shariff, Jul 21, 2008

I have written a simple example for people to get started with:

http://fahdshariff.blogspot.com/2008/07/syntax-highlighting-code-in-webpages.html

Comment by subagya, Sep 05, 2008

nice work

Comment by adrianqu...@gmail.com, Sep 12, 2008

I've been using CodeMirror for both read-only and editable code and am very pleased with it. Its main advantage is that it uses very fast incremental parsing, so it can parse large files and do fancy context-sensitive highlighting (e.g. highlighting local and global variables differently). Some disadvantages are: parsers for new languages are harder to write, and it doesn't show line numbers.

Hosted by Google Code