Source page
The Source page enables you to modify the BMS source macros directly by using a text editor.
Standard editing features are provided, such as Find, Replace, Undo, and Redo. The menu provides additional options:
- Customized color highlighting.
Items such as macro names, field names, attribute names and values, and comments are colored differently to help you differentiate parts of a BMS statement. You can customize the colors by using the BMS Map Editor preferences window.
- Line numbers
Line numbers are displayed in the left margin of the editor window. You can hide line numbers by using the BMS Map Editor preferences window.
- Error markers
If syntax errors are encountered during a save or validation and build operation, an error icon is displayed in the left margin of the line that contains the error. Errors also are displayed in the Problems view.
Source page menu in BMS Editor
The Source page menu provides code formatting options and editing options. Changes to the source code are immediately reflected in the Design canvas and Preview page.
To select a line, click it. To select multiple lines, hold down the Shift key and click each line.
To move the source code, use the Shift Right and Shift Left actions. If the source syntax is incorrect, an error icon is displayed beside the line number.
To add code to a snippet drawer, select the text and click Add to Snippets.
To go back to the previously saved file source, use the Revert File option.
To retain your changes, click Save.