How to get code-snippet to only 'loop' once?

Click the reply button (as shown in screenshot) and the attach option becomes available. Then you can attach your code file.