Adapt marking in different file formats