SyntaxHighlighter Downloads


Latest Posted Version

(This always links to the most recent update.)


Version History

SyntaxHighlighter: Easier to load; faster to boot?

Posted on February 7th, 2009

Change Summary:
Added a new method, SyntaxHighlighter.boot(), to automate the loading process.

Update of Forked SyntaxHighlighter

Posted on December 18th, 2009

Change Summary:
Merged in many of the changes that Alex Gorbatchev included in his 2.1.364 release, but with the following differences:

  • In 2.1.364, the ruler functionality was removed. It’s still included here.
  • 2.1.364 changed the way that wrapped lines are presented. I’ve kept the old presentation, but modified the icon that’s used to signify wrapping.
  • Internally, 2.1.364 uses a separate HTML table to represent each line of source. I’ve maintained the older pattern of simply using a separate <div> to represent each line.

Also new in this release:

  • I’ve added a “Hide” button to the toolbar. Code blocks can now be expanded/collapsed at the user’s whim. (As before, an author can still choose to present a block in the hidden/collapsed state.)

Filling The Cracks

Posted on July 22nd, 2009

Change Summary:

  • Fixed white lines that had cluttered the gutter.

Dumping Hack Flash, It’s a Class, Class, Class

Posted on July 10th, 2009

Change Summary:

  • Ensure that the original whitespace is (mostly) preserved.
  • Removed the Flash applet that was used for copying the code to the clipboard.
  • Use CSS Sprites on the toolbar, speeding up the download a bit.
  • Brushes now call SyntaxHighlighter.registerBrush as they’re loaded. Reduced the runtime cost of brushes via JavaScript prototypes.
  • Added (beta-quality) support for the ‘title’ option.
  • Use JavaScript to implement toolbar hovers for IE6
  • Converted function declarations from this form:
    var foo = function() {...}
    to :
    var function foo() {...}
    after measurements showed that the second form is packed more efficiently.

SyntaxHighlighter Revised (again), Works On Its Own (once again)

Posted on June 10th, 2009

Note: This ZIP file, and all versions posted at later dates, is a modified version of the base SyntaxHighlighter distribution from Alex Gorbatchev.

Change Summary:

  • Removed the dependency on jQuery that I’d introduced in previous versions.
  • Re-implemented the toolbar hover as pure CSS (later revised to use JavaScript for IE6.)

More SyntaxHighlighter Updates

Posted on May 29th, 2009

Note: This ZIP file was packaged as a mod of the SyntaxHighlighter Evolved WordPress plugin, which includes the base SyntaxHighlighter distribution from Alex Gorbatchev. All of the later distributions modified only the base SyntaxHighlighter code.

Change Summary:

  • Added the toolbar button for toggling the gutter
  • Attach the gutter to the left, so that it remains visible when scrolling
  • Made the toolbar partially transparent.
  • Cleaned up some code smell that I’d previously inserted.

Fixing A Scroll Where The Grays Came In

Posted on May 14th, 2009

Note: This ZIP file was packaged as a mod of the SyntaxHighlighter Evolved WordPress plugin, which includes the base SyntaxHighlighter distribution from Alex Gorbatchev. Most of the later distributions modified only the base SyntaxHighlighter code.

Change Summary:

  • Fixed the gray background that had been visible after scrolling to the right.
  • Don’t add line numbers to the DOM if they’re not going to be displayed.

4 Comments

Leave a Reply to SoWhat

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>