Automate inserting snippets of code into other files