A tool to format code by templates