Welcome Guest, Not a member yet? Register   Sign In
HTML Output, Clean formatting
#8

[eluser]andrewtheandroid[/eluser]
Hey Ian

If you are using firefox you can use this nifty extension "view source chart" - (edit: forgot to add this one is good especially when there are many nested divs it's also graphical too so it helps to visualise it)

https://addons.mozilla.org/en-US/firefox/addon/655

There's also another extension called "phoenix editor" that you can view the source then click "format" and it tidies and indents your HTML too.

https://addons.mozilla.org/en-US/firefox/addon/11708

As for doing it in the php code though I think you will end up giving yourself a headache because I've tried adding manual breaks once and I could never get it to work properly and I think it's a waste of time if someone wanted to view your code they would use an extension as above. Or like the others suggest you can use an IDE that has codeformat I think netbeans and eclipse should do it. Some even format the HTML code inside PHP code.


Messages In This Thread
HTML Output, Clean formatting - by El Forum - 01-20-2010, 04:02 AM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 04:24 AM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 04:40 AM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 05:07 AM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 05:19 AM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 06:08 AM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 07:24 AM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 03:52 PM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 04:12 PM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 07:42 PM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 09:39 PM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 09:40 PM
HTML Output, Clean formatting - by El Forum - 01-20-2010, 10:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB