Projects can contain file types unknown to CLion. While CLion 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 CLion's integration with the text editor TextMate.
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:
TextMate bundle support plugin is enabled. The plugin is bundled with CLion and is activated by default. If the plugin is not activated, enable it in as described in Plugins.
Suppose you want CLion 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 CLion.
Once a TextMate bundle is added, CLion 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: