Cool, yeah, that sound trivial, even doable with nodes and macros etc. But, yeah, code blocks are the tidiest way to go.