Boston Python Workshop 8/Friday/OSX text editor: Difference between revisions
Content added Content deleted
imported>Jesstess No edit summary |
imported>Pamela01 |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[File:Quill.png|100px]] |
|||
== Our recommendation == |
|||
We are going to install a good text editor for writing code. |
|||
== Installing Smultron == |
|||
On OSX, a good free text editor is Smultron. |
|||
⚫ | |||
* The ZIP file will expand into an application called Smultron. |
|||
* Open Finder from the bar at the bottom. |
|||
Download and install Smultron: |
|||
⚫ | |||
* Start Finder |
|||
* Open the downloaded file from your Downloads directory or the Download bar in your web browser |
|||
* On the left side of the Finder, under "Places", click on "Applications". |
|||
* Drag the |
* Drag the icon (it looks like a top-down view of a tomato) to your Dock for easy access |
||
To run Smultron: |
To run Smultron: |
||
⚫ | |||
* Start Finder |
|||
(If you get a warning that the app isn't from the App Store, you need to change your Security & Privacy Settings. For more info, see http://support.apple.com/kb/ht5290 ) |
|||
* On the left side of the Finder, under "Places", click on "Applications". |
|||
* In the middle column, scroll down to to find Smultron. |
|||
⚫ | |||
== If you run into trouble with Smultron == |
|||
If you can't run the version of Smultron we recommend, try the older version [http://voxel.dl.sourceforge.net/project/smultron/smultron/3.1.2/Smultron-3.1.2.zip 3.1.2 of Smultron]. We've tested that it runs properly on Mac OS 10.4 on PowerPC and Intel. |
|||
== Configure Smultron to indent with spaces == |
== Configure Smultron to indent with spaces == |
||
Line 33: | Line 25: | ||
* Close the Preferences window. |
* 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. |
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! == |
== Success! == |
||
Line 39: | Line 31: | ||
Now you have an editor that you can use to open any text file, including Python programs. |
Now you have an editor that you can use to open any text file, including Python programs. |
||
[[File:Champagne.png|100px]][[File:Party.png|125px]] |
|||
If you prefer a different editor for text, check with an instructor before moving on to make sure it will work for the weekend. |
|||
[[Boston Python Workshop 8/Friday|« Back to the Friday setup page]] |
[[Boston Python Workshop 8/Friday|« Back to the Friday setup page]] |
Latest revision as of 22:23, 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. For more info, see 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.