Like other users have suggested, Notepad++ is a great free text editor that I would recommend you try using, especially when it comes to writing HTML, CSS, JavaScript, PHP, and other web development related languages.
NotePad++ supports syntax highlighting for a variety of languages, including the ones above, as well as a variety of others, even including languages that are compiled, such as C, C++, Java, and a whole bunch of others.
If you are interested in trying Notepad++, you can download it for free from the link below.
http://notepad-plus-plus.org/
Another great text editor that you may want to try is Sublime Text 2, which also supports a variety of programming languages, and is also loaded with a bunch of great features.
http://www.sublimetext.com/
While you are able to evaluate and use Sublime Text 2 for free (for an unlimited period of time, at the time of this posting), it does cost $70 to purchase a license for personal use, which helps to support the developer so that they can continue to develop and update the software.
Best of luck and I hope I helped you!