Comparing script code versions
Versioning is supported by ION Scripting. You can track and manage script lifecycles over time. Frequently, it can be difficult to identify what has changed between any two versions of a script. To make this code comparison process more clear, you can select the icon above the functional coding area when working within the Script tab.
After requesting the script code comparison, you are transferred to the compare page. By default, this comparison mode shows the version that is currently open on the left-hand side. This is a previous version of the script or the code version currently in development on the right-hand side. You can change the script versions being evaluated by selecting a different version of the script adjacent to the one being compared. Code comparisons are color coded to help identify differences between versions including new code, removal of code, and changes to existing code.
If the script that is being compared is in a draft state, then you can update and change the code when the code comparison functionality is enabled. You see immediate comparison changes updated to reflect the differences between a draft version and a previously approved version.
When comparing two scripts side-by-side, color coding is used to indicate the nature of the change:
- The red color coding is used to identify the current open script and highlighted differences.
- The green color coding is used to identify a script being compared against and highlighted differences.
The mini- map feature accompanying each script code versions helps in identifying the differences throughout the code and provides intuitive scrubbing through the code.
To compare the script code between versions:
- Navigate to the Script tab of a selected script.
- Click above the script code.
- You can exit the code comparison mode, by clicking the Back arrow. Note: The code comparison feature is available when at least two versions of the same script are available in the version widget.