Cut off code in various file formats