PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

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:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old September 28th, 2002, 12:41 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Novice help: Syntax coloring

I`m making a PHP editor in PHP everything works all fine i would just like to add syntax color so its easier on the eyes. I could do this but i`m sure there is a much easier way then what i`m thinking of. Any Ideas?

~Ray

Reply With Quote
  #2  
Old September 28th, 2002, 01:48 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Novice help: Syntax coloring

You want to do syntax highlighting in a textarea while the person is typing it in? All I can say is some extensive javascript there.....

Reply With Quote
  #3  
Old September 28th, 2002, 02:08 AM
Colonel-Panic Colonel-Panic is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 39 Colonel-Panic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Novice help: Syntax coloring

Yeah good call. How about syntax such as the code command in this forum? how would i go about doing that? Does anyone have a javascript that will syntax color in real time i could use?

Reply With Quote
  #4  
Old September 28th, 2002, 02:36 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Novice help: Syntax coloring

The code in this forum is highlighted using the php function highlight_string()

Reply With Quote
  #5  
Old September 28th, 2002, 03:38 AM
JeT JeT is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 28 JeT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to JeT
RE: Novice help: Syntax coloring

That is a useful cmd.

Reply With Quote
  #6  
Old September 28th, 2002, 05:10 AM
Colonel-Panic Colonel-Panic is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 39 Colonel-Panic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Novice help: Syntax coloring

Thank you very much i wasnt aware of that command. Actually that fixed a problem i was having with the way i was doing it. Does any one know where i could find a javascript that will update in realtime the PHP syntax coloring of a text area? heh

Reply With Quote
  #7  
Old September 30th, 2002, 06:07 PM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Novice help: Syntax coloring

You even can control the colors...
See the manual for further information.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Novice help: Syntax coloring


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 | 
  
 

IBM developerWorks




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