How can I write HTML code and save it so that it looks just like what I wrote? I used to use Notepad, but now when you save your code document, it moves all the lines one right after the other. It looks like a run-on sentence and is very hard to read. All of my spaces are gone. It didn't used to do this. Is there any other software that I can use to write my own codes and save so that it looks the same (with all my spaces for easier reading)?
That sounds really odd. Maybe you disabled the word wrapping in Notepad? There might as well be something off with your linebreaks. A screenshot might be very helpful to solve this.
As you didn't name your operating system, I'm assuming you're talking about Windows Notepad. It's enough to write code, but you might want to have a look at one or two more advanced editors (both being freeware):
As alternatives, if you'd like it simple but powerful, go with Notepad++. This provides you with basic syntax highlighting (e.g. easier to see tags) and is perfectly fine if a text editor is all you need.
If you'd like a (in my opinion) very nice combination of source code highlighting as well as real time preview/wysiwyg editor for free, have a look at Visual Studio Express 2012 for Web. This offers you a text editor and additional controls, for example it's very comfortable to edit stylesheets with a GUI editor (picking settings, colors, etc.).