Edit contents in different file formats