Weblog

PHP Closing Tags Considered Harmful

It may be obvious to some, but this is a mistake I still see being made a lot, and I think it's high time we got over it.

Stop using PHP closing tags. It really is that simple, and here's why.

Continue reading PHP Closing Tags Considered Harmful »

Posted on Monday, the 16th of February, 2009 | permalink | comments (3)

Beelzebub Crossword Solutions on Fifteensquared

Posted on Friday, the 6th of February, 2009 | permalink | comments (0)

Syntax Highlighting with GeSHi

On this very site, I've recently started using GeSHi, to implement the rather nifty code syntax highlighting you see in posts like this and this.

I had previously been using PHP's built in highlight_string() function, but that function is only of use for highlighting PHP code! As I often seem to need to highlight other languages, it was time to turn to GeSHi.

Since I did, a couple of people have asked about ease of use, implementation and so forth, so this post is my attempt at answering those questions.

Continue reading Syntax Highlighting with GeSHi »

Posted on Thursday, the 5th of February, 2009 | permalink | comments (1)