PyCon intro to open source/Windows text editor: Difference between revisions

imported>Jesstess
(Created page with "== Our recommendation == On Windows, we suggest the Notepad++ text editor. It is actually unrelated to the Windows default program called Notepad. To install it: * Click an...")
 
imported>Jesstess
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1:
[[File:Quill.png|100px]]
== Our recommendation ==
 
== Installing Notepad++ ==
On Windows, we suggest the Notepad++ text editor. It is actually unrelated to the Windows default program called Notepad.
 
On Windows, wea suggestgood thefree text editor is Notepad++. textNote editor.that Itthis is actually unrelated to the Windows default program called Notepad.!
To install it:
 
To install itNotepad++:
* Click and download http://download.tuxfamily.org/notepadplus/5.9/npp.5.9.Installer.exe
 
* Click and download http://download.tuxfamily.org/notepadplus/56.93.3/npp.56.3.93.Installer.exe
* Run the installer, and follow the process to the end.
 
Line 20 ⟶ 22:
* Click Close.
 
That's it! Now, you can hitpress tabTab to indent your code, and that indentation will actually be made of spaces. ThisWe changedo willthis helpbecause youPython usedoesn't spaceslike consistently,it sowhen thatwe Pythonmix doesn'ttabs getand confused about whitespacespaces.
 
== Success! ==
Line 26 ⟶ 28:
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 have different editor for text, check with an instructor before moving on to make sure it will work for the weekend.
 
[[Boston Python Workshop 7/FridayPyCon_intro_to_open_source|« Back to the Friday setupmain page]]

Latest revision as of 23:13, 9 April 2014

Installing Notepad++

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

  • 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 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.

  

« Back to the main page