Looking for the Perfect Editor
Dick Moores
rdm at rcblue.com
Sun Sep 10 19:53:26 EDT 2006
At 02:15 PM 9/10/2006, Kent Johnson wrote:
>Dick Moores wrote:
> > At 01:10 PM 9/8/2006, Doug Stell wrote:
> >> Try www.TextPad.com. I've used it for years and love it. It
> >> understands many programming language constructs and can be taught to
> >> understand python so that things show up in color.
> >
> > Any tips on how to teach TextPad to understand python?
>Download and install the Python syntax highlighting definition from the
>TextPad website.
Thanks very much, Kent. I've been using TextPad for 10 years and
never considered using it for Python.
I downloaded Python (7) from
http://www.textpad.com/add-ons/synn2t.html and put the file
PythonV2.4.syn in C:\Program Files\TextPad 4\system .
>I make a tool to run the front window in Python. Here are the values
>from the preferences window for the tool:
>
>Command: C:\Python24\python.exe
>Parameters: -u $File
>Init fldr: $FileDir
>
>regex to match output:
>^.*"([^"]+)", *line ([0-9]+)
>
>with File: 1, Line: 2
After fumbling around, I believe I've made the tool, using your
values, except I used E:\Python24\python.exe instead of
C:\Python24\python.exe .
I also associated .py with TextPad. I'm now able to open a Python
script with TextPad, and execute it with Ctrl+4.
However, no syntax highlighting is showing up. so I must have done
something wrong. Do I have to do something other than put
PythonV2.4.syn in C:\Program Files\TextPad 4\system ?
Also, why do you use TextPad instead of IDLE?
Thanks,
Dick Moores
More information about the Python-list
mailing list