For a number of languages that are not supported in WebStorm, for example, PHP, Python, Ruby, and Java, the IDE still provides syntax highlighting to improve your coding experience if you occasionally need to examine such code. To learn how to describe languages using the TextMate grammar, see the TextMate Official website.
Syntax highlighting for these languages is based on TextMate grammars, and WebStorm is shipped with a collection of grammar files for different languages. All the available bundles are listed on the of the Settings/Preferences dialog (Ctrl+Alt+S).page
You can also download and use custom TextMate bundles for other languages.
Suppose you want WebStorm 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 WebStorm.
Once a TextMate bundle is added, WebStorm 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: