Page 1 of 1

Echoing php as if it was a phps file

Posted: Sun Sep 11, 2005 4:54 pm
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)?

Posted: Sun Sep 11, 2005 5:05 pm
by sweatje

Posted: Sun Sep 11, 2005 7:17 pm
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.

Posted: Sun Sep 11, 2005 7:40 pm
by timvw
http://geshi.sf.net is my favorite ;)