highlight_string() not good enough
Posted: Sun May 08, 2005 9:10 pm
I figure this's been asked before, but I can't find it via searching.
If you don't have the <?php and ?> in the string to highlight, it doesn't do anything.
I'm working on making a
If you don't have the <?php and ?> in the string to highlight, it doesn't do anything.
I'm working on making a
Code: Select all
code for my forums, but I figured it'd be easier if there were already a function... Plus, these forums number the lines too. Which I can't seem to figure out, as highlight_string() gets rid of \n, so there's no way to know where the line numbers are. ^^;
So anyway, would someone mind posting the function for these forums or a similar one?
I've tried using GeSHi, btw. Takes too long to load, though. >.>