Have you tried Notepad ++? This is basically a text editor "pulled out all the stops" with highlighting code for every language you can think of. But it does have a wonderful macro / external command / extension, so connecting to the compiler is pretty simple.
I am currently using it for C, Inform, Python, Perl, HTML and VB.Net, with a surprisingly small amount of gearshift issues.
In addition, FOSS.
(and, I just discovered that it also has code completion. Great!)
Electrons_Ahoy
source share