IDLE won't highlight my syntax

Jan M. picture Jan M. · Apr 14, 2012 · Viewed 20.5k times · Source

Using IDLE and Python version 2.7.3. Only when I start a new file it highlights for a few lines and then just stops after I press F5. So all my text becomes plain black.

If there are equally good/better command line and editor combinations out there, you may always suggest them.

Answer

user2574063 picture user2574063 · Jul 11, 2013

This happened to me too. Save it as .py (manually type .py in the document name), and the highlighting will come back.