PDA

View Full Version : highlight_string


filburt1
05-14-2003, 12:12 AM
<a href="http://www.php.net/highlight_string" target="_blank">http://www.php.net/highlight_string</a>

This function makes absolutely horrible code with tons of unnecessary tags. Anybody know of a better function, maybe written by somebody outside the PHP dev team?

MUG
05-14-2003, 12:26 AM
So modify the code yourself. It's in Zend/zend_highlight.c.

filburt1
05-14-2003, 12:29 AM
I can't do that if I'm going to make a hack for people...

filburt1
05-14-2003, 01:43 PM
Ugh, it's 60 lines of code (mostly regexps) just to clean up what it produces...whoever coded this should die :angry:

MUG
05-14-2003, 07:55 PM
Andi coded it, about 4 years ago. :p

Of course, some changes have been made since then.