Prettify code in templates