Compare 2 Versions of an Apps Script Code
This tool allows you to compare 2 versions of a Google Apps Script code (or other languages) and highlight the differences.
The utility searches for differences line by line and then displays them with a colored background.
Example of Comparing 2 Apps Script Codes
VERSION 1 | VERSION 2 |
---|---|
function onOpen() { | function onOpen() { |
const ui = SpreadsheetApp.getUi(); ui.createMenu('Sheets-Pratique') | SpreadsheetApp.getUi() .createMenu('Sheets-Pratique') |
.addItem('Example 1', 'example1') .addItem('Example 2', 'example2') | .addItem('Example 1', 'example1') .addItem('Example 2', 'example2') |
.addItem('Example 3', 'example3') | |
.addToUi(); } | .addToUi(); } |
Compare 2 Versions of a Code
Simply copy-paste the 2 versions of your code into the following fields and validate.