PyCon intro tutorial prep/OSX text editor: Difference between revisions
Content added Content deleted
imported>Jesstess (Created page with "100px == Installing Smultron == On OSX, a good free text editor is Smultron. To download and install Smultron: * Click and download http://sourceforge.n...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[File:Quill.png|100px]] |
[[File:Quill.png|100px]] |
||
== Installing |
== Installing TextWrangler == |
||
On OSX, a good |
On OSX, a good text editor is TextWrangler. |
||
To download and install |
To download and install TextWrangler: |
||
* Download the latest version of TextWrangler from http://www.barebones.com/products/textwrangler/download.html (now BBEdit) |
|||
* Click and download http://sourceforge.net/projects/smultron/ |
|||
* Open the downloaded file from your Downloads directory or the Download bar in your web browser |
* Open the downloaded file from your Downloads directory or the Download bar in your web browser |
||
* Drag the icon (it |
* Drag the icon (it's a lasso shaped like a "W") to your Dock for easy access |
||
To run |
To run TextWrangler: |
||
* Double-click the |
* Double-click the TextWrangler icon from your Dock. |
||
== Configure |
== Configure TextWrangler to indent with spaces == |
||
* Start up |
* Start up TextWrangler, and click TextWrangler -> Preferences -> Editor Defaults. |
||
⚫ | |||
* 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. |
|||
⚫ | |||
* 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. |
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. |
Latest revision as of 10:14, 2 October 2017
Installing TextWrangler
On OSX, a good text editor is TextWrangler.
To download and install TextWrangler:
- Download the latest version of TextWrangler from http://www.barebones.com/products/textwrangler/download.html (now BBEdit)
- Open the downloaded file from your Downloads directory or the Download bar in your web browser
- Drag the icon (it's a lasso shaped like a "W") to your Dock for easy access
To run TextWrangler:
- Double-click the TextWrangler icon from your Dock.
Configure TextWrangler to indent with spaces
- Start up TextWrangler, and click TextWrangler -> Preferences -> Editor Defaults.
- Check the "Auto-expand tabs" checkbox.
- Make sure the "Tab width" is set to 4 in the box below.
- Restart TextWrangler for change to take place.
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.
Success!
Now you have an editor that you can use to open any text file, including Python programs.