Page 1 of 1

New style of dp.SyntaxHighlighter don't show on S9Y entries

Posted: Wed Jan 13, 2010 8:37 pm
by fmazanat
Hi,

I just added 2 styles to dp.SyntaxHighlighter, for Erlang and Bash, and also their testcases.

Accessing the testcase directly everything is OK:
http://mazanatti.info/plugins/serendipi ... rlang.html

But inserting the same <pre> block on an entry doesn't work!

I also noted that the change I made to SyntaxHighlighter.css (showing a orange separator instead of green) isn't displayed, even on previously existing styles, like ruby or c-sharp.


Started with S9Y 1.4.1, and just made the update to 1.5.1, and this behaviour still persists. Any ideas? Is there a way to tell S9Y to reload the plugin or something like that?
Already tried removing the plugin and installing it again (via Spartacus), no luck...


Regards,
Fabio Mazanatti

Re: New style of dp.SyntaxHighlighter don't show on S9Y entries

Posted: Thu Jan 14, 2010 2:41 am
by fmazanat
Ok, I found the missing step: didn't included the lines referencing the new styles at serendipity_event_dpsyntaxhighlighter.php:

Code: Select all

echo '<script type="text/javascript" src="'.$pluginDir.'/dp.SyntaxHighlighter/Scripts/shBrushBash.js"></script>' . "\n";
echo '<script type="text/javascript" src="'.$pluginDir.'/dp.SyntaxHighlighter/Scripts/shBrushErlang.js"></script>' . "\n";
Everything works as expected, now =)


Cheers,
Fabio

Re: New style of dp.SyntaxHighlighter don't show on S9Y entries

Posted: Thu Jan 14, 2010 10:37 am
by garvinhicking
Hi!

That sounds great, would you like to include those new languages to the official plugin? :)

Regards,
Garvin