Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsForum InformationSuggestions & Feedback

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old September 21st, 2003, 08:30 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 11979 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 37 sec
Reputation Power: 4
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!

Reply With Quote
  #2  
Old September 21st, 2003, 05:54 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
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...

Reply With Quote
  #3  
Old September 21st, 2003, 05:56 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 11979 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 37 sec
Reputation Power: 4
RE: Highlighted PHP code

Well that's what I was afraid of... Never mind this then.

Reply With Quote
  #4  
Old September 21st, 2003, 06:59 PM
sliver's Avatar
sliver sliver is offline
Moderator
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: WI, USA
Posts: 897 sliver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 44 m 13 sec
Reputation Power: 2
Send a message via AIM to sliver Send a message via XFire to sliver
RE: Highlighted PHP code

Actually in the php.ini file you can set the colors.

Reply With Quote
  #5  
Old September 21st, 2003, 11:41 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
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)

Reply With Quote
  #6  
Old September 21st, 2003, 11:53 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 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?

Reply With Quote
  #7  
Old September 22nd, 2003, 03:09 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Highlighted PHP code

don't mind me.. didn't see the post about changing it in the php.ini...

Reply With Quote
  #8  
Old September 22nd, 2003, 12:56 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 11979 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 37 sec
Reputation Power: 4
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...

Reply With Quote
  #9  
Old February 1st, 2004, 07:11 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 11979 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 37 sec
Reputation Power: 4
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsForum InformationSuggestions & Feedback > Highlighted PHP code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway