Templates: Extended the documentation.

- Documentation.
- Improved syntax highlighting
- Minor changes.