What this does is to take the selected script code and remove the remark lines (starting with #) and combine the left script code to one script code-line. The assembled script code-line is then pasted to a new or already exiting Terminal and then on a new line.
Example of a simple script with an syntax error in it:
Code: Select all
#Check this code
:put "This code is to be checked";
# Also this code
:put "And this" code also";
Past to Terminal is:
Code: Select all
:put "This code is to be checked"; :put "And this" code also";
I assume there is a maximum length of a line in Terminal. Checking if the selected code, minus the comments and the inserted space(s), replacing the Newline or/and Return, is mandatory.
This will make the life of script-kiddies and script-elderly much easier and I hope I can get some support for this so that Mikrotik considers to implement this.