# TextMate Bundles

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/2026.3/llms.txt).

> **Warning:**
> The following is only valid when the TextMate Bundles Support plugin is [installed and enabled](managing-plugins.html).

Projects can contain file types unknown to RubyMine. While RubyMine 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 RubyMine's integration with the text editor [TextMate](http://macromates.com/).

All the available bundles are listed on the `Editor | TextMate Bundles` page   In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Meta+Comma` (TextMate), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))).

Learning how to describe languages using the TextMate grammar is out of the scope of this document. For more information about TextMate, refer to [product documentation](http://manual.macromates.com/en/).

## Prerequisites

Make sure that:

* You have already downloaded bundles you want to use. You can, for example, find the bundles you want to install on [GitHub](https://github.com/textmate/) or [Subversion](http://svn.textmate.org/trunk/Bundles/).

* Before you start working with TextMate Bundles, make sure that the TextMate Bundles plugin is enabled. The plugin is bundled with RubyMine and is activated by default. If the plugin is not activated, enable it on the Plugins settings page `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Meta+Comma` (TextMate), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) as described in [Plugins](managing-plugins.html). ![Prebundled TextMate plugin](https://resources.jetbrains.com/help/img/idea/2026.3/textmatebundles_plugin.png)

## Importing bundles

Suppose you want RubyMine to highlight syntax of the OCaml files. For this purpose, you have already downloaded the [OCaml TextMate Bundle](https://github.com/textmate/ocaml.tmbundle). It now resides on your hard disk, and you only have to import this bundle into RubyMine.

Procedure:

1. In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Meta+Comma` (TextMate), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))), select Editor | TextMate Bundles.

2. Click ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) and locate the desired bundle on your disk:

![Select the downloaded bundle](https://resources.jetbrains.com/help/img/idea/2026.3/ps_textmatebundles_import.png)

3. Click OK to apply the changes. The OCaml bundle appears in the list of recognized bundles:

![New TextMate bundle](https://resources.jetbrains.com/help/img/idea/2026.3/ps_textmatebundles_import_result.png)

## Testing

Once a TextMate bundle is added, RubyMine 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:

![Code highlighting](https://resources.jetbrains.com/help/img/idea/2026.3/py_textmatebundles_highlight.png)

## See also

### Reference

[TextMate Bundles](textmate-bundles.html)

