PHP syntax highlighting?

We know you have an opinion on how things should be run around here. These are suggestions for the forums, and the website.This forum is not a place to ask for suggestions to your own coding (or otherwise) problems.

Moderator: General Moderators

Post Reply
windwaker
Forum Newbie
Posts: 21
Joined: Sun Feb 13, 2005 11:18 am

PHP syntax highlighting?

Post by windwaker »

It's built into the language. Perhaps there could be a tag [phpcode] that highlights php.

This is the PHP DN, after all. ;D
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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 :)


:roll:
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Does IE at least display code wrapped in

Code: Select all

tags like it does

Code: Select all

tags?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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..
windwaker
Forum Newbie
Posts: 21
Joined: Sun Feb 13, 2005 11:18 am

Post by windwaker »

Oh, so that's why I see weird "[php247320asdf:43]" everywhere.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yep.
Post Reply