Edit window

Does somebody have a clue how to make a editor window like the one in
Delphi IDE. Tanks for any advice...
./magnus