Insert mark in different file formats