Boston Python Workshop 4/Friday/OSX text editor

From OpenHatch wiki
< Boston Python Workshop 4‎ | Friday
Revision as of 11:51, 30 September 2011 by imported>Jesstess
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Our recommendation[edit]

On Mac OS, we suggest the Smultron text editor. You'll have to first download it, then install it.

To download Smultron:

To install Smultron:

  • Start Finder
  • On the left side of the Finder, under "Places", click on "Applications".
  • Drag the Smultron icon to any blank space in that window.

To run Smultron:

  • Start Finder
  • On the left side of the Finder, under "Places", click on "Applications".
  • In the middle column, scroll down to to find Smultron.
  • Double-click Smultron to launch the editor.

Configure Smultron to indent with spaces[edit]

  • Start up Smultron, and click Smultron -> Preferences. This will pop up a preferences window.
  • Click on the Advanced tab, and then on the Really Advanced tab within that tab.
  • Check the "Indent with spaces, not tabs" checkbox
  • Close the Preferences window.

That's it! Now, you can hit tab to indent your code, and that indentation will actually be made of spaces. This change will help you use spaces consistently, so that Python doesn't get confused about whitespace.

Success![edit]

Now you have an editor that you can use to open any text file, including Python programs.

If you prefer a different editor for text, check with an instructor before moving on to make sure it will work for the weekend.

« Back to the Friday setup page