Page 1 of 1

PHP code highlighting

Posted: Mon Nov 17, 2008 6:42 am
by shakeel
Hello

Can somebody tell me how to highlight PHP code in a string which comes form database and how to make links to all the PHP functions in that string. This method use in blogs or PHP tutorial websites like this one:
http://phpsense.com/php/php-pagination-script.html
where the PHP code is properly formated and the functions use in the example are linked to PHP website for further reading.

thanks

Re: PHP code highlighting

Posted: Mon Nov 17, 2008 7:06 am
by Jaxolotl
google is your main starting tool :D

try searching Syntax highlighting class php

one of the results found

http://pear.php.net/package/Text_Highlighter/


Geshi Syntax Highlighting is an excellent tool too
http://qbnz.com/highlighter/

Re: PHP code highlighting

Posted: Mon Nov 17, 2008 7:35 am
by shakeel
thanks Jaxolotl