Wednesday, 9 March 2005

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 \.

Category: General | 1 Comment

Links to This Article

  1. Wed, 14 September 2005 4:29 am
    Gosinga » Blog Archive » php 코드에 색을 입히기

Add a comment

Gravatar is used. Email address is required but will not be displayed. Please keep your comment on topic. No spamming and/or bad language. First time poster will be moderated. Scott reserves the right to delete/edit your comments.