PDA

View Full Version : Quick Python color coding in editing question


DrummingAtom
Jul19-11, 07:18 PM
When I've been programming in Python for a while I noticed that the color coding in IDLE goes away. If I restart IDLE, the colors come back. Why is it doing this? How can I maintain the color in there without having to restart a bunch of times?

Thanks

jhae2.718
Jul19-11, 11:46 PM
The only reason I've noticed IDLE losing syntax highlighting is saving a Python file without the proper extension, but I haven't used IDLE in a long time. (I write Python in gedit and run my scripts from the terminal on a Linux box.)

You may want to consider using a different editor/IDE than IDLE, for me it's always been troublesome.

DrummingAtom
Jul20-11, 08:54 PM
The only reason I've noticed IDLE losing syntax highlighting is saving a Python file without the proper extension, but I haven't used IDLE in a long time. (I write Python in gedit and run my scripts from the terminal on a Linux box.)

You may want to consider using a different editor/IDE than IDLE, for me it's always been troublesome.

That was it exactly. I wasn't using the .py extension. I'm very new to programming so I haven't experimented with a different editor yet, I'll download some others and play around. Thanks for your help.