If the code in your Source View seems unorganized and unreadable, there is a simple way, in Visual Studio, to format the text into a more readable format. What it actually does, is to create a hierarchical, tabbed view of your HTML.
All you need to do is to highlight the text you need reformatted (if it’s the entire file, press Ctrl-A to select all the text), then right-click somewhere in the text, and choose ‘Format Selection’.
That’s all there is to it –voila! – your text is reformatted.
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF