Generate edit, editor and test code