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 \.
- Download syntax_hilight-1.3.php
Links to This Article
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.
