On my PC, I use Visual Studio to edit HTML code. It has code highlighting and is also able to detect possible errors in the code. For example, improper nesting of tags.
I need a similar software for my Android 4.2. I currently use WebMaster's HTML Editor Lite but it cannot detect errors in code.