15.1. Search and replace

Searches text in the script currently open in the editing panel and replaces it with the replacement text, if need be.

Search and replace

Figure 15.1. Search and replace

The dialog contains the following tools:

Search

To operate the search tool, type the text in the Search field and click on the Search button. Should the text entered be found, it is highlighted in the editing panel and the message Text was found appears in the upper part of the dialog. If a match was found, click on the button skip to advance to the next match. If no further match is found, the message No further match was found appears in the upper part of the dialog.

Replace

This tool is used to replace a text with the replacement text previously typed in the field Replace by. Upon activation of the Replace button, the element found is highlighted and the message Text was found appears in the upper part of the dialog. By clicking again on the button Replace, the element is replaced by the replacement text and the next match is highlighted. Should no further match be found, the message No further match was found appears in the upper part of the dialog. Activate the button Replace all to replace all matches contained in the script at one time. The upper part of the dialog will display how many elements have been replaced.

If the button Replace or Replace all is activated while the Replace by field is empty, all matches will be erased. The replacements cannot be undone by activating the Stop button, but by closing the script editor without saving the changes or with the undo function.

The following search and replace options can be used:

Ignore case

If this option is chosen, the search will be case-insensitive.

Whole word

Only sections containing the whole search text will be considered as matches, whereas those containing only partly the search text will be ignored.

Search all

Causes the search to begin at the top of the script. If it is disabled, the search will start from the cursor position.

Search from bottom to top

The search is run from the script bottom upwards instead of from top downwards.

Related topic: