Python Quick Python color coding in editing question

AI Thread Summary
IDLE, the Python IDE, can lose syntax highlighting when files are saved without the proper .py extension. Restarting IDLE restores the color coding, but this can be inconvenient for users. Some users recommend exploring alternative editors or IDEs, as they may provide a more stable experience. New programmers are encouraged to experiment with different tools to find one that suits their needs better.
DrummingAtom
Messages
657
Reaction score
2
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
 
Technology news on Phys.org
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.
 
jhae2.718 said:
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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top