27.1.1.1 Understanding what a macro definition can include
Macros can include more than simple code:
• For HTML output a macro can contain HTML code, JavaScript, Windows system commands (see §32.4.2.4 Executing system commands in a .bat file), or anything else printable that follows the rules of whatever language you are using.
• For RTF output, a macro can insert Field content or Windows system commands.
A macro can be any length. You can define macros to use as "building blocks" for other macros. There is no limit to the number of macros you can define for a project.
Whether you use a formal named macro definition or an informal string of code, for HTML output Mif2Go always inserts an extra line break in the output immediately before the expanded macro. This is so you can readily identify macro-supplied code, for ease in correcting any errors in your macro settings. Browsers ignore the extra line break.
> 27 Working with Mif2Go macros > 27.1 Defining and invoking macros > 27.1.1 Defining macros > 27.1.1.1 Understanding what a macro definition can include
