Automating tasks : Editing scripts using a text-editing application
 
Editing scripts using a text-editing application
You can edit the Python code in the text editor of your choice. The editor application designated for script editing will open.
To edit Python code
Edit workspace 
1 Click the Edit Selected Script button to display the Script Editor dialog box.
2 Click Text Editor.
The text editor assigned in the File Locations dialog box opens the script.
Until you specify another application, the default editor is Notepad.
To change text-editing applications
Edit workspace 
1 Choose File Preferences File Locations to display the File Locations dialog box.
2 In the File Types list, choose Python Source Editor.
3 Click Browse, and choose a text-editing application.
The Python Source Editor Path dialog box appears.
4 Click Open.
5 Click OK.
You can also click the File Locations button in the Select Script drop-list to open the File Locations dialog box.