i could not live without scite. bult-in syntax checker for a plethora of languages. it also lets you run/compile the program and it captures all the output. for errors it indicates which line is the problem. it has a simple interface and low footprint. in short i love it.
http://www.scintilla.org/SciTE.html