On Fri, 21 Aug 2009 13:55:51 -0700 (PDT), "newb.py" <>
declaimed the following in gmane.comp.python.general:
> I am learning Python and need to use use IDLE, but I am having a
> problem. When I open a new window in IDLE and write my code, all is
> well. The coloring works and is very helpful. However, when I save the
> file I am working on, all the color disappears. And what is more
> frustrating is that when I open the saved file, it opens in TextEdit,
> so I have to copy it back into a new IDLE window to work on the code.
>
Color coding is NOT part of a Python program -- it is done by the
editor IF the editor is Python aware... SciTE, IDLE, PythonWin, for
example. I suspect VIM and EMACS with proper definition files.
How are you opening the file? On Windows, double-clicking a .py file
normally RUNS the program. You have to right-click and pick edit (or
send-to, if you have added a suitable editor to the send-to list)
--
Wulfraed Dennis Lee Bieber KD6MOG
HTTP://wlfraed.home.netcom.com/