You can split the script window text area into multiple panes. This can be helpful in a long script, letting you view and edit more than one area of your script simultaneously.
You can split the text area vertically or horizontally — and you can split each resulting pane vertically or horizontally. Each pane can be scrolled to display a different region of the script.
(But you’d probably never split a window into panes quite as insanely as in this picture!)
To split a script window or pane vertically:
Click the vertical split icon () in the vertical scrollbar.
Or, choose Edit > Split Editor Vertically.
Or, choose Split Editor Vertically from the contextual menu.
To split a script window or pane horizontally:
Click the horizontal split icon () in the horizontal scrollbar.
Or, choose Edit > Split Editor Horizontally.
Or, choose Split Editor Horizontally from the contextual menu.
To resize a pane:
To close a pane:
Click its close icon () at the lower right corner of the pane.
Or, choose Edit > Close Split View.
Or, choose Close Split View from the contextual menu.
To close all panes:
Option-click any close icon ().
Or, hold Option and choose Close All Split Views (from the Edit menu or the contextual menu).
What should happen when you change a view setting (such as line wrapping or visibility of tab stops) in a split pane? Should other split panes change to match, or should their view settings remain independent? To determine this, use the Editor preference, “Synchronize split-view appearance”:
If checked, then when you change a view setting in one split pane, other split panes of the same window will change the same setting to match. If unchecked, then a change to a view setting applies to just one split pane.
Hold Option as you change a view setting to reverse this preference on one occasion.
When you select text in one pane, should the same text be selected in all other panes? To determine this, use the Editor preference, “Synchronize split-view selection.”