Format HTML, Javascript nicely???
Posted: Thu Mar 09, 2006 4:45 pm
Edit: I should also note that it NEEDS to be written in native PHP (4 or less) or Javascript...no C libraries or PHP extensions, etc...please
Edit: After a quick search on google...I've realized I'll likely have to say JUST HTML and NOT PHP. I need something written in Javascript or PHP which beautifies ONLY HTML and Javascript (would be nice).
Anyone know fo any PHP or preferably Javascript code which would take a massive string of HTML and Javascript, CSS, etc...
And format it nicely with indentation, etc?
I'm looking for something I can use it in a commercial app without restrictions so long as the source doesn't change.
Thanks a bunch
Edit: After a quick search on google...I've realized I'll likely have to say JUST HTML and NOT PHP. I need something written in Javascript or PHP which beautifies ONLY HTML and Javascript (would be nice).
Anyone know fo any PHP or preferably Javascript code which would take a massive string of HTML and Javascript, CSS, etc...
And format it nicely with indentation, etc?
I'm looking for something I can use it in a commercial app without restrictions so long as the source doesn't change.
Thanks a bunch