Don't use word processors to make code. Code is text, plain and simple. I use BBEdit because it's powerful and easy to use, but it's Mac only. I'm assuming any text editor is fine, though you will have to be careful and organized in typing. These programs have automatic color coding for recognizable computer language.
Computers are finnicky and code is concise.
So think about what you want to do before you start programming. Here's another one. This might happen on Macintosh more often than PC, but I think we've all been there. OK, one more. Have you ever gone to a site that is designed sparse and elegantly, but has very little to indicate how to use the site.