Try NotePad++ with the NppExec plug-in installed. You can install the plug-in using the NotePad++ Plug-in manager.
Run different commands with the help of this plugin NppExec is
designed as a Notepad++ plugin that gives you the possibility to run
commands and applications directly from the editor.
NppExec can be used for running other programs from Notepad++, passing
text from Notepad++ to some external tool, compiling source files
(using external compiler) etc.
When the NppExec plugin is installed, you can see its icon "Show
Console Dialog" on Notepad++'es toolbar, and you can find NppExec's
submenu under Plugins menu of Notepad++.