Boston Python Workshop 8/Friday/OSX text editor: Difference between revisions
Content added Content deleted
imported>Jesstess No edit summary |
imported>Pamela01 |
||
Line 15: | Line 15: | ||
To run Smultron: |
To run Smultron: |
||
* Double-click the Smultron icon from your Dock. |
* Double-click the Smultron icon from your Dock. |
||
*If you get a warning that the app isn't from the App Store, you need to change your Security & Privacy Settings http://support.apple.com/kb/ht5290 |
|||
== Configure Smultron to indent with spaces == |
== Configure Smultron to indent with spaces == |
Revision as of 22:22, 12 July 2013
We are going to install a good text editor for writing code.
Installing Smultron
On OSX, a good free text editor is Smultron.
Download and install Smultron:
- Click and download http://downloads.sourceforge.net/project/smultron/smultron/3.5.1/Smultron-3.5.1.zip
- Open the downloaded file from your Downloads directory or the Download bar in your web browser
- Drag the icon (it looks like a top-down view of a tomato) to your Dock for easy access
To run Smultron:
- Double-click the Smultron icon from your Dock.
*If you get a warning that the app isn't from the App Store, you need to change your Security & Privacy Settings http://support.apple.com/kb/ht5290
Configure Smultron to indent with spaces
- 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. We do this because Python doesn't like it when we mix tabs and spaces.
Success!
Now you have an editor that you can use to open any text file, including Python programs.