PHP Syntax Hilighting 1.3

I've just got the chance to start visiting my old WordPress plugins after upgrading this site to WP 1.5. Syntax highlighting with Enscript is broken, so I've made some changes to get it going again. Here's a list of changes:

  • Detect whether we are running under WP 1.5+ to pick the unmangling routine. WP1.5 double quote fix suggested by Oliver.
  • Eliminate the "Generated by GNU Enscript" text (suggested by Alex), which was caused by a regular expression bug.

Also I found with WP 1.5, you no longer needs to escape backslashes '\' to \.