ConText is a freeware text editor (on Windows) written in Delphi (compiled with using Borland Delphi). Go to the home page here
See the following configuration:
Using ConTEXT as text editor and FreePascal as compiler we have a cool "IDE"! :D
We configured compiling source code by F9 and executing by F10.
I wrote a related blog here (in Vietnamese).