Code Editor

Both the Macro Editor and the Code editor edit macros. Both tools read from and write to the same type of underlying macro source, an XML script. However, each tool is better for certain tasks.

The Macro Editor provides a graphical user interface that is powerful and user-friendly. It is the superior tool for creating and editing macros.

On the other hand, the Code Editor provides a text editor interface that allows you to edit directly the XML elements of which a macro is made. Figure 1 shows the Code Editor displaying a macro script.
Figure 1. Code Editor
You should use the Code Editor for more technical editing tasks, such as:
  • Modifying a few attributes of the XML elements that the Macro Editor does not provide access to.
  • Looking at the XML elements to check your understanding of how a macro will execute.
  • Debugging a macro.
  • Cutting and pasting XML code from other sources using the Windows clipboard.
To bring up the Code Editor:
  1. Use the Macro Editor to open the file that you want to edit.
  2. Click Code Editor in the row of buttons at the bottom of the Macro Editor window.