Archive for December, 2007

December 12th 2007

Grand Opening, Google Syntax Highlighter Fix

The blog is up and running and with the first post comes some interesting info on setting up syntax highlighting. So, I finally got the google syntax highlighter working with my wordpress install HOORAY.

Google Syntax Highlighter for WordPress

http://wordpress.org/extend/plugins/google-syntax-highlighter/

doing some pretty simple testing i tracked down the footer wasn’t adding it’s code to wordpress. So i looked at how other people had hooked the footer event and then just did that.

Something has changed with wordpress since Peter Ryan last updated his wordpress plugin, so i fixed it. Seems that the footer load event changed or the one he was using was deprecated? I haven’t the slightest idea since today was the first day i’ve seen wordpress code, nor do i really care now that it’s working.
Original Code: google_syntax_highlighter.php

add_action('wp_footer','insert_footer');

Working Code: google_syntax_highlighter.php

add_action('get_footer','insert_footer');

Continue Reading »

1 Comment »