It is possible to set up any text editor to be the default editor in ArcGIS.
This way, when choosing Edit from the context menu, your code editor of choice
appears for you to edit your script.
Personally, my preference is to use PyScripter, an open source Python IDE. It