Editor Help

Use the editor to create files containing your programs. The editor has several features that simplify editing of Scheme programs, including automatic parenthesis highlighting, automatic indentation, movement by S-expression, and integration with the REPL.

Just below the menu of the editor is a one-line text area where the editor normally displays the line and character position of the cursor. This area is also used when searching for text within the file and when displaying the source of syntax errors.

Common Key Bindings

The REPL and the Editor share a set of common key bindings for cursor movement and editing. These bindings are described on a separate page.

Key Bindings Specific to the Editor

KeyAction
Alt+aSave file as...
Alt+sSave file
Alt+gSave the file and load it into the REPL
Alt+<Move to beginning of buffer
Alt+>Move to end of buffer

MacOS X note: If double-clicking on a Scheme file (extension .ss or .scm) does not open up a SWL edit window, please follow the steps below:

  1. In the finder, select a file with the .ss or .scm extension.
  2. From the finder File menu, select "Open with".
  3. Even if swl.app is shown as the default, select "Other".
  4. Locate and single-click swl.app in the Applications folder.
  5. Enable the check box labeled "Always Open With".
  6. Click on "Open".

Double-clicking on files with that extensions should now work properly. You may have to repeat the procedure for files with the other extension, e.g., .scm if you performed the procedure for a file with the .ss extension. You can also arrange to use SWL for files with other extensions using the same procedure.