Set comment in different file formats