What's new? | Help | Directory | Sign in
Google
syntaxhighlighter
Free syntax highlighter written in Java Script
  
  
  
  
    
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 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 elvistar, Sep 27, 2007

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

Comment by elvistar, Sep 27, 2007

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

Comment by xuguoheng, Oct 21, 2007

I modified your code,But I do not know how to contact you.

I don't know whether your copyright violations.

I just hope that it can fit my blog.

I hope to have your permission

The modified Code: http://www.zendstudio.net/libs/hl.zip my blog: http://www.zendstudio.net/

e-mail:xuguoheng#gmail.com

Comment by edgardmatos, Nov 08, 2007

asdfa

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 st...@techjournal.co.uk, Jan 06, 2008

Superb! Works in V2.3.1 Tried many different syntax highlighting addons recently, only this one does what I need. Great work, thanks

http://www.techjournal.co.uk

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 (6 days ago)

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

Comment by nycguitar, May 13 (3 days ago)

Super nice. Thanks for sharing!


Sign in to add a comment