It is highly recommended, a decent editor to work in HTML, PHP, Using SQL and other files. The e.g.. Windows' own program to help just give, but fail very quickly.
Our recommendation is the freeware software market that is free PSPad.
This program is just about everything, what you need. Line numbering (must be activated under View), Editors, Tabs, HTML Codes…..
In addition to simply displaying code, This program can also compare different files (Content) and search for code in files, e.g. the. located in a folder. So if you looking for a specific line of code or a word, which lies in an unknown file in a folder, PSPad can scan the appropriate files and displays the results clearly.
Also HTML converter and much more are part of this great program.
All in all a very comprehensive and fast program.
Get it here.