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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top