Code Editor : write_generate