Edit state in different file formats