Mar 9 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 [...]

Aug 17 2004

PHP Syntax Hilighting 1.2

Here is an updated version of my PHP Syntax Hilighting script (standalone or as WordPress plugin). It fixes the issue whether <font /> tag is used by enscript which renders the whole page non-XHTML compliant. A preg_replace() call replaces them with standard compliant <span style=”…” /> XHTML code. Download syntax_hilight-1.2.php

May 29 2004

Syntax Highlighting with Enscript in WordPress

One thing that I dislike about WordPress is its default wptexturize filter that messes up with my HTML code. The default behaviour makes code listing very difficult to read, as it attempts to add paragraph tags to <pre /> tags. Here is one of my first attempts in WordPress plugin coding to rectify this issue.

Jan 3 2003

Source Code Syntax Highlighting in PHP

They said programming is an art, and syntax highlighting of source code really makes them look artistic.