PyCon intro tutorial prep/OSX text editor: Difference between revisions

imported>Jesstess
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1:
[[File:Quill.png|100px]]
 
== Installing SmultronTextWrangler ==
 
On OSX, a good free text editor is SmultronTextWrangler.
 
To download and install SmultronTextWrangler:
 
* Download the latest version of SmultronTextWrangler from http://sourceforgewww.netbarebones.com/projectsproducts/smultrontextwrangler/download.html (now BBEdit)
* Open the downloaded file from your Downloads directory or the Download bar in your web browser
* Drag the icon (it looks like's a top-downlasso viewshaped oflike a tomato"W") to your Dock for easy access
 
To run SmultronTextWrangler:
 
* Double-click the SmultronTextWrangler icon from your Dock.
 
== Configure SmultronTextWrangler to indent with spaces ==
 
* Start up SmultronTextWrangler, and click SmultronTextWrangler -> Preferences. This-> willEditor popDefaults. up a preferences window.
* Check the "Indent with spaces, notAuto-expand tabs" checkbox.
* Click on the Advanced tab, and then on the Really Advanced tab within that tab.
* Make sure the "Tab width" is set to 4 in the box below.
* Check the "Indent with spaces, not tabs" checkbox
* Restart TextWrangler for change to take place.
* Close the Preferences window.
 
That's it! Now, you can press 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.
Anonymous user