SyntaxHighlighter: Easier to load; faster to boot?

I’ve introduced a new method for loading SyntaxHighlighter onto a web page. The goal was simply to make it easier to integrate SyntaxHighlighter into a web site. So, I was pleasantly surprised to find that the new method often loads faster than the traditional method.

Update of Forked SyntaxHighlighter

I’ve updated this site’s fork of the SyntaxHighlighter software by Alex Gorbatchev. These features a partial merge from Alex’s 2.1.364 release. I’ve also added a “Hide” button to the toolbar.

Do not adjust your eyes; it’s just a new theme.

I’ve just gone live with a different WordPress theme. So, if you’re feeling a bit lost, don’t panic. This is a new theme, iTech, which was just released last month. I’ve tailored the CSS, fixed a bug or two in the php, and even managed to add a new customization option. It’s been a good [...]

JavaScript Array Performance, And Why It Matters

Arrays can present an unexpected performance bottleneck in JavaScript. Here I show that array performance is influenced by some surprising details of the array and how it’s used.

JavaScript Array Performance: Initialize to Optimize

The JavaScript interpreters in the most popular browsers distinguish between sparse and dense arrays. Hence, you may get more “array-like” performance if you initialize an array before using it. But this trades memory for speed, so it may not always be the best choice.

Trimming trim via razing arrays (JavaScript)

It may well be that for better JavaScript performance, large arrays should be avoided where possible. That seems fairly clear in this case, where an already fast implementation of the missing String.trim() method was made even faster by using much smaller lookup table arrays.

Filling The Cracks

Sometimes the best way to solve a problem is to make it no longer be a problem. This was the case with a problem that I’d created — and have now fixed — in my version of SyntaxHighlighter.

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

SyntaxHighlighter now preserves whitespace. Kind of. It’s not pure WYSIWYG, but it’s YCAGWYWBIYTSYJMFYGWYN. It’s good enough that we can stop using Flash to access the clipboard.

Occam’s Razor and Brushes

In software engineering, Occam’s Razor has a corollary: When entities are multiplying, find out how they became necessary. An issue in SyntaxHighlighter illustrates this principle.

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

In my latest round of updates to SyntaxHighlighter, I’ve removed the dependencies on jQuery that I’d added in previous updates. There are some small improvements, too.