Try using selecting all the code in the script block and hold down Shift + Tab!
Where you see script/code in ServiceNow you can of course use the "format code" feature. However you can use a quick keyboard short cut to the same effect. Try it today!