I have tried using some syntax highlights before, and they all suck

So problem solved, i will write my own PHP function to highlight the syntax for me



Now i would like some guidance on the general workings of this, as i cant quite figure it all out.

Im going to need to loop through the characters of the string (the code i want to highlight), whilst picking out certain keywords, copmment lines etc to highlight.

Anyone help? Cheersio