Echoing php as if it was a phps file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sk8erh4x0r
Forum Commoner
Posts: 43
Joined: Wed May 26, 2004 8:27 pm

Echoing php as if it was a phps file

Post by sk8erh4x0r »

How can I made it so if people use a certain tag (in my case <php>) it'll show the php code with the color codings (like orange for comments)?
User avatar
sweatje
Forum Contributor
Posts: 277
Joined: Wed Jun 29, 2005 10:04 pm
Location: Iowa, USA

Post by sweatje »

josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

There are also some classes out there (try google) that do some stuff beyond the scope of those functions, for instance line numbering, and xhtml compliance.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

http://geshi.sf.net is my favorite ;)
Post Reply