Archive for the ‘wordpress’ Category

WordPress Plugin for Google Syntax Highlighter

Wednesday, August 15th, 2007

I am a big fan of the source code highlighter used by the Waffle project. Michael Ward recommended it for me to use when I set my blog up a few weeks ago.

Screenshot

The highlighter itself is simple to use on its own - it’s just a javascript include but I had been using another code highlighter which had a WordPress plugin that made it’s use a snap.

I figured it wouldn’t be too hard to create a plugin for the syntax highlighter (which had larger language support including ruby which I needed) and so I did. The plugin is being hosted by WordPress and I encourage you all to take a look and use in your own blogs.

Google Syntax Highlighter for WordPress

Inconsistent/Broken WordPress Category Feeds

Wednesday, August 8th, 2007

I have been setting up WordPress on my Debian etch server and everything seemed fine. That is until I tried using category specific feed.

I am assigning all of my posts On my blog I have a couple categories that I would like to have feeds for. These are:

http://www.peterryan.net/category/geek/feed/
http://www.peterryan.net/category/cooking/feed/

They both correspond to the following category archives:

http://www.peterryan.net/category/geek/
http://www.peterryan.net/category/cooking/

However as far as I can observe the readers I am testing with (Firefox Live Bookmarks, Thunderbird RSS Reader, Google Reader, and ThoughtWorks blogs which should be subscribing to the geek category) are not processing the results correctly. Sometimes the wrong category is returned (such as the cooking category is returned when I access the geek feed) and sometimes in Firefox an HTML instead of an XML page is rendered (and sometimes the wrong version of that).

This problem goes away if I do not use pretty permalinks (as described in the WordPress Codex and use the default. I would like to avoid using ugly links but I feel like I am running out of options.

I have looked at the following word press support threads plus I am sure more:

http://wordpress.org/support/topic/111113
http://wordpress.org/support/topic/112673
http://wordpress.org/support/topic/111356
http://wordpress.org/support/topic/124459?

And I have opened my own support forum with no help received so far:

http://wordpress.org/support/topic/129238

I am currently attempting to find help on the wordpress irc channel but have not had much success. Since this problem could be related to either my debian apache2 server, my php5 configuration, mod_rewrite, or wordpress I am a bit at a loss as to how to proceed. I would greatly appreciate any help related to this problem.

My HTACCESS file (generated by wordpress) is:



RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

I would greatly appreciate any help.