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
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
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
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.
[…] found this guy who has created a modified version of the original syntax highlighter. His previous documentation […]
Hi, Mike,
I’m sorry if this fork didn’t work for you. I’m wondering if you did a hard refresh in the browser after you installed this version. Otherwise, you may have been using Alex’s original highlighter without realizing it.
I left a lengthier reply over on your post.
In case somebody is also using ASM brush, modified version and test file can be downloaded here http://kva.lv/shBrushAsm.zip
Thanks to Dan!
FYI
Trivial issue, toolbar images are hardcoded to /syntaxhighlighter/ path in core.css
Not a big deal , but they break if you choose to use another dirname.
This fork is brilliant btw.