Macro Language Preferences

The Macro Language section of the Set Preferences dialog contains settings related to the 1010data Macro Language and the Edit Actions (XML) dialog.

Enable syntax highlighting
When selected, Macro Language elements, attributes, and values are color coded within the Edit Actions (XML) dialog.

Wrap text on Edit Actions page
When selected, text that is too long to fit on one line in the Edit Actions (XML) dialog is wrapped to the next line.

In the following example, the <note> element on line 2 wraps to the next line.

If this option was not selected, the <note> element would appear only on one line (and a horizontal scroll bar would appear at the bottom of the Edit Actions (XML) dialog).

Note: This option is only available when Enable syntax highlighting is selected.
Automatically indent on Edit Actions page
When selected, the line following an opening tag for a particular Macro Language element is indented by the number of spaces specified by Indent spaces for nested elements.

For instance, the following screen shot shows the automatic indention of the line following the opening <tabu> tag:

If this option is not selected, the line following the opening <tabu> tag is not indented:

Enable autocomplete
When selected, a drop-down menu of context-related options is presented as you type in Macro Language element names, attributes, and values for certain attributes (such as functions) in the Edit Actions (XML) dialog.

For instance, if you type < in the Edit Actions (XML) dialog, a list of context-dependent element names will be presented.

If you type fun=" when you are specifying a tabulation column (<tcol>) element, a list of summarization functions will appear in the drop-down list.

Note: This option is only available when Enable syntax highlighting is selected.
Indent spaces for nested elements
The number of spaces to indent nested Macro Language elements. The default is 2.

In the following example, the <tcol> elements nested within the <tabu> element are indented two spaces.

Put each attribute on a separate line
When selected, each attribute for a particular Macro Language element will appear on its own line.

The default is for all attributes to appear on the same line:

Break up long selection and value expressions
When selected, this breaks up lengthy value expressions in <sel> statements over multiple lines, with each selection criterion on a separate line, prefaced by an &.

In a <link>, show the linked table with
Select whether a table ID or a table name (path) will be displayed as the value of the table2 attribute for a <link> element in the Macro Language.
name
In the Edit Actions (XML) dialog, the value of the table2 attribute for a <link> element is displayed as the table's name.

ID
In the Edit Actions (XML) dialog, the value of the table2 attribute for a <link> element is displayed as the table's ID.

Automatically add comments for the following:
When selected, a <note> element containing a comment is automatically added for the table that the macro is being applied to and the table that is being linked to.
In the following example:
  • The <note> on line 1 contains the comment that was automatically added about the table the macro was applied to (training.retail.item).
  • The <note> on line 2 contains the comment that was automatically added about the table that was linked to (training.retail.prod) in the <link> statement on line 3.