snipet code generator for blocks