I dont think that macros are supportet but you can insert
tags(variables)just right click in the code field. maybe this could help
you too: Administration Guide | FortiGate / FortiOS 6.4.6 | Fortinet
Documentation Library Regards
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.