command should be work on the editor are open , show , partshow (from line no. to line no.), append , delete , swap ,move etc.
if you know Visual C++ then you can do it in it. It might be possible to implement in other languages also
write editor in visual basics.