PHP code highlighting

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
shakeel
Forum Newbie
Posts: 12
Joined: Wed Jan 16, 2008 4:15 am

PHP code highlighting

Post 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
User avatar
Jaxolotl
Forum Contributor
Posts: 137
Joined: Mon Nov 13, 2006 4:19 am
Location: Argentina and Italy

Re: PHP code highlighting

Post 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/
shakeel
Forum Newbie
Posts: 12
Joined: Wed Jan 16, 2008 4:15 am

Re: PHP code highlighting

Post by shakeel »

thanks Jaxolotl
Post Reply