How to attach the code of coding blocks

How to attach the code of coding blocks