Add PHP syntax coloring to XCode

May 25, '04 09:27:00AM

Contributed by: MonkeyT

A previous hint discussed how to get PHP syntax coloring in Project Builder, and I wanted to do the same for XCode. I found a link buried in the comments of that previous MacOSXHint, pointing to this file:

www.knaub.info/Download/PB_PHP_Specifications.zip

This download provided two files (PHP.pbfilespec and PHP.pblangspec) meant to add PHP syntax coloring to Project Builder. I then located another site which had a patch for XCode to add C# syntax coloring:

www.druware.com/products/xcodetools.html

The differences in structure between the C# files and the PHP files were minimal, so I followed the instructions from the druware site using the files from the knaub site, and I now have PHP syntax coloring working properly in XCode! Life is good.

[robg adds: I haven't tested this one...]

Comments (8)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20040522001330570