PDA

View Full Version : PHP Color HTML code



imagined
September 12th, 2008, 12:57 PM
Ok, I already created a function that colorizes PHP code.

I'm googling for a way to colorizes HTML code. Looks like there is no PHP function to do this with HTML.

Does anybody knows where can I find more info on how to colorize HTML code?

Jeff Wheeler
September 12th, 2008, 12:59 PM
Pygments (http://pygments.org/). If you’re not using this, you’re doing it wrong.

It’s so much better than any other solution … :P

simplistik
September 12th, 2008, 04:45 PM
Pygments (http://pygments.org/). If you’re not using this, you’re doing it wrong.

It’s so much better than any other solution … :P
Yea cause, ummm ... PHP is exactly the same as Python ...

What you need imagined is the GeSHi class, just google GeSHi ... it's the most common one and the one you see on most forums

Jeff Wheeler
September 14th, 2008, 07:16 PM
I misread his post, thinking he said he wanted a function like his function to colorize PHP, but for HTML instead.

Regardless, you should be using this. Other solutions are crap in comparison. :P