To set how lines wrap in a script:

In Script Editor, choose Script Editor > Preferences.

Click Editing.

To enable automatic line wrapping, select “Wrap lines” from the Line Wrap section.

To indent the wrapped line, select “Indent wrapped lines by,” and enter the number of spaces to indent.