Archive for the ‘wordpress’ Category
SyntaxHighlighter Evolved with inline-highlight no comments
After i first posted code for highlight-range i made some small changes to the code in the post as i found better ways of doing things. When i inserted new lines it messed with my highlighting. Inspired by pastebin.com, i wrote a couple of lines that let me specify with a marker in the code (and not by line-number) what line should be highlighted.
Update: Added @hr@ for inline-ranges.
Read the rest of this entry »
SyntaxHighlighter Evolved with highlight-range 1 comment
Update: As of SyntaxHighlighter Evolved v. 3.0.0 this functionality is included in the plugin.
One of the first plugins i installed for this brand new WordPress was SyntaxHighlighter Evolved. I love to code, and knew i would find a use for it. To test it i used a large C++ file from cpp.snippets.org and began testing.
Highlight worked fine, but i i didn’t support highlighting a range of lines. This might not be so useful, as you usually want to highlight small sections, but i rewrote syntaxhighlighter.php to support ranges.