Snip text in different file formats