Alan, I'd advise you to install the free version of notepad++ plus the JSMIN and Tidy2 plugins. jsmin allows you to format JS code to give it a quick human readeable cleanup, or it can minimize it to reduce space etc.. the tidy2 plugin will format your html in the fashion you describe.
as an alternative if you want to stick with plain ole notepad, you can use jsbeautifier.org to help format javascript code, and
http://infohound.net/tidy/ for your html
- also notepad++ has syntax highlighting, which will make your life much easier.