|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
Highlighted PHP code
Matt, it is great that php code inside the php code tags is highlighted. However there is a problem with it and I'm sure there aren't many of us who have the problem.
I am partially color blind. If I see red and green text next to each other I see them both as green. So if it is possible please change the red color to something else, thanks! |
|
#2
|
|||
|
|||
|
RE: Highlighted PHP code
i don't think it can be done.
he probably uses highlight_string() function that sets the colors.. only solution would be for matt to build his own funstion to highilght php code, but that is not so easy... |
|
#3
|
||||
|
||||
|
RE: Highlighted PHP code
Well that's what I was afraid of... Never mind this then.
|
|
#4
|
||||
|
||||
|
RE: Highlighted PHP code
Actually in the php.ini file you can set the colors.
|
|
#5
|
|||
|
|||
|
RE: Highlighted PHP code
oh, and i just remembered. maybe matt can add checkbox to user's profile that would say smth like "highlight php code?" and would be ON by default (and you could turn it off)
|
|
#6
|
|||
|
|||
|
RE: Highlighted PHP code
Yes, it can be changed in the in the ini file. Can you check the ini settings and then give me a color scheme that works for you, and preferably works for most partially color blind people?
As for the checkbox...why? |
|
#7
|
|||
|
|||
|
RE: Highlighted PHP code
don't mind me.. didn't see the post about changing it in the php.ini...
|
|
#8
|
||||
|
||||
|
RE: RE: Highlighted PHP code
[quote] Can you check the ini settings and then give me a color scheme that works for you, and preferably works for most partially color blind people? quote] Yes, I can. Just give me some time... |
|
#9
|
||||
|
||||
|
RE: Highlighted PHP code
Heh, seems that "some time" was a long time after all. But anyway, I tested some colors and here are some color sets that might work.
First some boring words: Two most common forms of color blindness are red-green blindness and blue-green blindness. That's why the modifications to the original color set are simply changing green color because it is the color that causes problems. highlight.bg #FFFFFF highlight.comment #FF9900 highlight.default #0000CC highlight.html #000000 highlight.keyword #660066 highlight.string #CC0000 Another one: highlight.bg #FFFFFF highlight.comment #FF9900 highlight.default #0000CC highlight.html #000000 highlight.keyword #CC00CC highlight.string #CC0000 Try them and tell your opinions. |
![]() |
| Viewing: Codewalkers Forums > Forum Information > Suggestions & Feedback > Highlighted PHP code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|