For a number of languages that are not supported in AppCode, 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 AppCode is shipped with a collection of grammar files for different languages. All the available bundles are listed on the Editor | TextMate Bundles page of the Preferences dialog (⌃ ⌥ S).
Before you start, make sure the TextMate Bundles bundled plugin is enabled in the Installed tab of the Settings/Preferences | Plugins page as described in Managing plugins.
Importing bundles
In the Preferences dialog (⌃ ⌥ 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:
Testing
Once a TextMate bundle is added, AppCode 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: