In a python 2.5.4 text screen, after I run the script, the color coding goes away? Any new commands I type are black? Anyone know why?
And actually, I lose the indention formatting as well?
Dear Neeco, You need to save your file in python file format to keep the colours on.While saving the file you need to save it with extension '.py'.For example-name.py. Although it doesn't really matter as the program will still run if you just give the name without extension and don't care about the colors but it is good practice to use the extension and use the color as it will immediately tell you which word is a reserved word and can't be used as a variable name by its orange color.
Dear cracker_saba- Thank you kindly. I was saving the file by just typing in the name. It must have been saving it as a .txt instead of a *.py. After saving using the name ps1.py I am no longer color blind! Thanks!
Join our real-time social learning platform and learn together with your friends!