PDA

View Full Version : how to show PHP as a text?



auriaks
03-14-2010, 11:51 AM
Hi, I was wondering if it is possible to create a button which would works as [PHP] button in this forum at control panel.

Because I need to show PHP to users when I am commenting. Also would be great to post javascript, css...

Regards, Aurimas. :)

Nightfire
03-14-2010, 02:00 PM
http://php.net/manual/en/function.highlight-string.php

auriaks
04-03-2010, 02:45 PM
in that place is one example, but I didn't understand it... How it will detect that in my message ($zinute) is PHP script and highlight it?