May 28
For information on exactly what dp.SyntaxHighlighter is, please see it's code-site on Google Code. Due to theme compatibility I've had to make some moderate changes to the original CSS of the SyntaxHighlighter package (for better, not for worse), there are no actual visual differences from the examples given in the original package (well, there shouldn't be anyhow, that's what my modifications were for, but this is a first release / test version).

I've always preferred the markup that the SyntaxHighlighter script from Dream Projections (now hosted on Google Code) created over GeSHi's output. Although when using GeSHi the code itself is made "pretty", it's not a necessity, so I feel that the use of JavaScript and CSS would be better served for this purpose than using server-side techniques as GeSHi does. This is where dp.SyntaxHighlighter comes to the rescue, and it handles it wonderfully!

What would the output look like using this script/plugin?
Example without JavaScript enabled:
Using a PRE tag:
<?php
    //the infamous Hello World
    echo "Hello World!";
?>

Using a TEXTAREA tag:

With JavaScript/plugin enabled (either PRE or TEXTAREA):


You'll have to read on to see supported languages and usage information.

Continue reading "Serendipity dp.SyntaxHighlighter Plugin Available"

Posted by Brendon Kozlowski