tweets

spotify

SyntaxHighlighter Evolved with inline-highlight   no comments

Posted July 12th, 2010 @ 03:00 in code,php,wordpress

It appears Viper007Bond (creator of SyntaxHighlighter Evolved) looked at my higlight-range-hack, so i will post my pastebin.com-style inline-highlight code as well.

After i first posted code for highlight-range i made 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. I let myself be inspired by pastebin.com, and wrote a couple of lines that let me specify with a marker in the code (and not the line-number) what line should be highlighted.

Update: Added @hr@ for inline-ranges.
Read more »

Written by Anders Einar on @ 03:00

SyntaxHighlighter Evolved with highlight-range   1 comment

Posted July 7th, 2010 @ 19:08 in code,php

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 more »

Written by Anders Einar on @ 19:08

Using BankID (norwegian type) in Ubuntu 10.04   no comments

Posted July 6th, 2010 @ 22:08 in bash,code

In Ubuntu 10.04 (and probably onwards) OpenJDK Java and the Icedtea java plugin are the standard Java toolkit. BankID works with OpenJDK (just try installing Opera 10.10. Opera pre 10.5 use OpenJDK directly, without Icedtea), Icedtea is the troublemaker.
Read more »

Written by Anders Einar on @ 22:08