Archive for the ‘wordpress’ Category

SyntaxHighlighter Evolved with inline-highlight   no comments

Posted at 3:00 am in code,english,php,wordpress

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 »

Written by Anders Einar on July 12th, 2010

SyntaxHighlighter Evolved with highlight-range   1 comment

Posted at 7:08 pm in code,english,php,wordpress

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.

Read the rest of this entry »

Written by Anders Einar on July 7th, 2010