How to provide Python syntax coloring inside Webstorm?

前端 未结 3 969
走了就别回头了
走了就别回头了 2021-02-05 02:26

I have a Python project, and I use WebStorm as my Editor. The problem is that Python\'s syntax doesn\'t get colored.

How can I display Python pages with a nice syntax?

3条回答
  •  梦如初夏
    2021-02-05 02:47

    You can use the Perl syntax which is very similar to Python.

    1. Go to Preferences => File Types
    2. Search for Perl
    3. Add *.py under Registered Patterns

    Another option is to use PyCharm, the community version is free.

提交回复
热议问题