Log in

View Full Version : highlight_string


filburt1
05-13-2003, 11:12 PM
<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-13-2003, 11:26 PM
So modify the code yourself. It's in Zend/zend_highlight.c.

filburt1
05-13-2003, 11:29 PM
I can't do that if I'm going to make a hack for people...

filburt1
05-14-2003, 12: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, 06:55 PM
Andi coded it, about 4 years ago. :p

Of course, some changes have been made since then.