Included in last nights WMS4 update (along with a bunch of maintenance work) was a cool new feature for anyone creating or editing templates.
On any of the template code editing screens (WMSElement definitions, creating or editing templates) you will see a new pencil icon. Click on this icon to activate the code syntax highlighting for you template and element definitions, simply click again to revert back!