Search
Left Quote    Knowledge speaks, but wisdom listens.
- Jimi Hendrix    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Syntax!
  This user is offline  ki
  Subject: "Syntax!" Posted: @ 5:14 pm on Feb 22 2007   

Member #: 204
Rank: User - (50)
Since: 09/16/06
Posts: 53
From: Florida

How would I show the syntax of php in a code thing?
Like you did for code examples.


woohoo!
    Viewed: 4,389 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Syntax!" Posted: @ 5:55 pm on Feb 22 2007    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

The code box looks like a textarea, but it is actually a div with CSS scroll bars.

And i do something like this:

Code:


if($_GET['typ e'] == "PHP&quo t;) {
highlight_strin g($code);
}


Check out php.net/highli ght_string




-bs0d | AllSyntax.com

    Viewed: 4,381 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank