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

From OpenHatch wiki
Jump to navigation Jump to search
imported>Jesstess
imported>Jesstess
 
Line 1: Line 1:
== Our recommendation ==
+
[[File:Quill.png|100px]]
  
On Windows, we suggest the Notepad++ text editor. It is actually unrelated to the Windows default program called Notepad.
+
We are going to install a good text editor for writing code.
  
To install it:
+
== Installing Notepad++ ==
  
* Click and download http://download.tuxfamily.org/notepadplus/5.9/npp.5.9.Installer.exe
+
On Windows, a good free text editor is Notepad++. Note that this is unrelated to the Windows default program called Notepad!
 +
 
 +
To install Notepad++:
 +
 
 +
* Click and download http://download.tuxfamily.org/notepadplus/6.3.3/npp.6.3.3.Installer.exe
 
* Run the installer, and follow the process to the end.
 
* Run the installer, and follow the process to the end.
  
To run it:
+
To run Notepad++:
  
 
* In Windows Vista or Windows 7, click on the Start menu, type ''Notepad++'' in the Search Field, and hit enter.  
 
* In Windows Vista or Windows 7, click on the Start menu, type ''Notepad++'' in the Search Field, and hit enter.  
Line 20: Line 24:
 
* 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.
+
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 26: Line 30:
 
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.
  
If you have different editor for text, check with an instructor before moving on to make sure it will work for the weekend.
+
[[File:Champagne.png|100px]][[File:Party.png|125px]]
  
 
[[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 00:37, 12 July 2013

Quill.png

We are going to install a good text editor for writing code.

Installing Notepad++[edit]

On Windows, a good free text editor is Notepad++. Note that this is unrelated to the Windows default program called Notepad!

To install Notepad++:

To run Notepad++:

  • 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. We do this because Python doesn't like it when we mix tabs and spaces.

Success![edit]

Now you have an editor that you can use to open any text file, including Python programs.

Champagne.pngParty.png

« Back to the Friday setup page