format templates for code using.