view .txt as .py

In Sublime Text 3, one can view a file with different syntax.

For example, even it is a .txt file, I can change "View -> By Syntax --> Python", and Sublime Text with display the file using the python syntax.

Could we do this with PyCharm? Really important for me... 

1 comment
Comment actions Permalink

Not currently possible, please vote for and linked tickets.

Note that you can assign <your file name>.txt pattern to Python file type in Settings | Editor | File Types to get is highlighted as a .py file


Please sign in to leave a comment.