Pycharm utils.py not getting syntax highlight

Vaibhav Mishra picture Vaibhav Mishra · Nov 14, 2012 · Viewed 15.7k times · Source

I have several django projects and several different files with name utils.py, however pycharm treats them as simple .txt files with no syntax highlighting or any other kind of parsing, how can I fix this?

Answer

CrazyCoder picture CrazyCoder · Nov 14, 2012

Please see File | Settings (Preferences on Mac) | Editor | File Types, select the Text files and remove utils.py from there. Most likely it was added by accident from the file right click context menu.