Forum Moderators: coopster

Message Too Old, No Replies

making the html look good.

using php to generate slick html

         

sneaks

11:12 pm on Sep 12, 2006 (gmt 0)

10+ Year Member



i am using php to generate html from custom xml docs... so, i call a function to traverse the xml which then generates the html, i want the html to be formatted for viewing the source and debugging and all round code nerdiness... i can put tabs in the output but i could be knee deep in nodes and code and they arent going to work out? is there a function for remedying this? and if so should i generate all the code, then format it?

best,
jonathan

eelixduppy

2:09 am on Sep 14, 2006 (gmt 0)



>>is there a function for remedying this?

Not to my knowledge. If you want it to look nice you are going to have to find a way to make it look nice in your code. If you are sloppy in your PHP code, it is likely that the HTML source PHP generates is going to be sloppy too. Remember, \t and \n are your friends ;)

Good luck!