Difference between revisions of "Boston Python Workshop 4/Friday/Windows text editor"

From OpenHatch wiki
Jump to navigation Jump to search
imported>Paulproteus
imported>Jesstess
 
Line 19: Line 19:
 
* Find the box labeled "Replace by space", and make sure it is '''checked'''
 
* Find the box labeled "Replace by space", and make sure it is '''checked'''
 
* Click Close.
 
* Click Close.
 +
 +
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! ==
 
== Success! ==

Latest revision as of 11:52, 30 September 2011

Our recommendation[edit]

On Windows, we suggest the Notepad++ text editor. It is actually unrelated to the Windows default program called Notepad.

To install it:

To run it:

  • In Windows Vista or Windows 7, click on the Start menu, type Notepad++ in the Search Field, and hit enter.
  • In Windows XP, click on the Start menu, navigate to All Programs, and then navigate to Notepad++.

Configure Notepad++ to indent with spaces[edit]

  • Click Settings -> Preferences
  • Find the tab labeled "Language Menu/Tab Settings"
  • Find the box labeled "Replace by space", and make sure it is checked
  • Click Close.

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 have 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