Projects can contain file types unknown to PyCharm. While PyCharm comes with the built-in support for many programming and scripting languages. If you want to have syntax highlighting for the project-specific languages, use the powerful PyCharm's integration with the text editor TextMate.
All the available bundles are listed on the Settings/Preferences dialog Ctrl+Alt+S.page In the
Learning how to describe languages using the TextMate grammar is out of the scope of this document. Refer to product documentation for more details about TextMate.
Make sure that:
Before you start working with TextMate Bundles, make sure that the plugin is enabled. The plugin is bundled with PyCharm and is activated by default. If the plugin is not activated, enable it on the Plugins page of the Settings/Preferences dialog Ctrl+Alt+S as described in Manage plugins.
If you are using Docker for Windows, enable the Expose daemon on tcp://localhost:2375 without TLS option in the General section of your Docker settings.
Suppose you want PyCharm to highlight syntax of the OCaml files. For this purpose, you have already downloaded the OCaml TextMate Bundle. It now resides on your hard disk, and you only have to import this bundle into PyCharm.
In the Settings/Preferences dialog Ctrl+Alt+S, select Editor | TextMate Bundles.
Click and locate the desired bundle on your disk:
Click OK to apply the changes. The OCaml bundle appears in the list of recognized bundles:
Once a TextMate bundle is added, PyCharm provides syntax highlighting for the file types registered with the bundle. Here's a sample OCaml code fragment that uses the TextMate bundle we've added earlier: