Added smarter coloring for template names.