It's built into the language. Perhaps there could be a tag [phpcode] that highlights php.
This is the PHP DN, after all. ;D
PHP syntax highlighting?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
It's already in the system. If you read through the Posting Code thread, you may have seen parts of it. The problem right now is that it was destroyed when we upgraded forum versions. We're waiting on getting IE to display them right again before adding them back in....
Firefox works perfectly though

Firefox works perfectly though
Does IE at least display code wrapped in
Code: Select all
tags like it doesCode: Select all
tags?Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
it displays the highlighting fine, but with the CSS implementation being funky such that the settings for overflow aren't being read, so the page display blows out. It is not possible to add artificial wrapping of the text (without consequences, which I really don't want to hear people bitch about.)
On the last version (before the break) I had phpBB adding custom CSS for IE and everyone else got a slightly different set. I'd like to avoid that now, but it's not playing nice.. so several of us are screwing around with it.. off and on..
On the last version (before the break) I had phpBB adding custom CSS for IE and everyone else got a slightly different set. I'd like to avoid that now, but it's not playing nice.. so several of us are screwing around with it.. off and on..