Insert code in different file formats