Apply macros to codeblocks