A couple of bug fixes:
- Nish told me that some additional characters were getting escaped twice by WordPress so the
fix_wp_prefunction was modified to re-escape those correctly.
- Torkar notified me that the line numbers didn’t indent correctly when starting with line 0. I also took the time to support starting with negative line numbers.
And one new feature:
- The spaces to align the numbers can either occur on the left or right side of the number now. This is a site-wide setting so you can’t change it for a single post. Open up syntax_highlighter2.php. If you set $rightAlignLineNumbers to
truethen the spaces will appear on the left of the number, making the numbers line up on the right side. If you set $rightAlignLineNumbers to
falsethen the spaces will appear on the right side of the number, making the numbers line up along the left side.
Update: Placed this post in the right category…can’t believe it took two days to notice that
Update2: HAHHAAHHAAHAHA! I can’t believe I’ve edited this post once already and never noticed that I didn’t link to the new download.