The Script Editor also features a few replacement tools.
In This Chapter
Near the top of the Script Editor context menu is the Revert File command. Revert File resets an unsaved script to the last saved change.
Servoy keeps a record of all saved changes to a file.
To access and review previous versions of a script:
Note:
All changes made in the left pane will be reflected in all open instances of the file (ie, the existing editor screen), even without saving.
To go straight to replacing the existing code with the last saved version:
To review and replace the existing code with a previously saved version:
Click on Replace to complete the replace process.
Note:
In the Replace With mode, there is no option to replace each change individually).
The Toggle Block Selection feature is available from the main toolbar, next to the Mark Occurrences button.
This feature allows users to select a block of text (column select) and make identical changes to each line. In the example below, the first four parts of the code are selected using Toggle Block Selection mode:
The selected block of text can then be replaced with new code parts, with the user typing only once.