convert macro template to TM2 snippet style