begin end expression formatting and autotemplate