问题
What are the steps needed to get syntax highlighting on .kv
files in PyCharm on OSX?
回答1:
The import settings for PyCharm can be found here: https://github.com/Zen-CODE/kivybits/tree/master/IDE
KV Lang File Type Support
- Download this file
- On Pycharm’s main menu, click "File"-> "Import" (or Import Settings)
- Select this file and PyCharm will present a dialog with filetypes ticked. Click OK.
- You are done. Restart PyCharm.
来源:https://stackoverflow.com/questions/38002630/how-to-get-syntax-highlighting-on-kivy-kv-file-in-pycharm-on-osx