# TextMate バンドル

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

> **Warning:**
> 以下は、   TextMate バンドルのサポート   プラグインが [インストールされ、有効化されている](managing-plugins.html)場合にのみ有効です。

プロジェクトは RubyMine に未知のファイルタイプを含むことができます。 RubyMine には、多くのプログラミング言語とスクリプト言語のサポートが組み込まれています。 プロジェクト固有の言語に構文ハイライトを適用したい場合は、強力な RubyMine のテキストエディター [TextMate](http://macromates.com/) との統合を利用してください。

利用可能なすべてのバンドルは、   設定   ダイアログ（ `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)) ）の  `エディター | TextMate バンドル`  ページに表示されます。

TextMate 文法を使用して言語を記述する方法の学習は、このドキュメントの範囲外です。 TextMate の詳細については、 [製品ドキュメント(英語)](http://manual.macromates.com/en/)を参照してください。

## 前提条件

以下を確認してください：

* すでに使いたいバンドルをダウンロードしています。 たとえば、 [GitHub(英語)](https://github.com/textmate/) または [Subversion(英語)](http://svn.textmate.org/trunk/Bundles/) にインストールするバンドルを見つけることができます。

* TextMate バンドルの使用を開始する前に、 TextMate バンドル プラグインが有効になっていることを確認してください。 このプラグインは RubyMine にバンドルされており、デフォルトで有効になっています。 プラグインが有効化されていない場合は、 [プラグイン](managing-plugins.html) の説明に従い、 プラグイン 設定ページ `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)) で有効化してください。 ![バンドル済みの TextMate プラグイン](https://resources.jetbrains.com/help/img/idea/2026.3/textmatebundles_plugin.png)

## バンドルのインポート

RubyMine に OCaml ファイルの構文をハイライトさせたいとします。 この目的のために、すでに [OCaml TextMate バンドル(英語)](https://github.com/textmate/ocaml.tmbundle)をダウンロードしました。 それは現在ハードディスク上にあり、RubyMine にこのバンドルをインポートするだけです。

Procedure:

1. 設定   ダイアログ（ `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)) ）で、   エディター | TextMate バンドル   を選択します。

2. ![追加ボタン](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) をクリックして、ディスク上の目的のバンドルを見つけます。

![ダウンロードしたバンドルを選択する](https://resources.jetbrains.com/help/img/idea/2026.3/ps_textmatebundles_import.png)

3. 変更を適用するには、   OK   をクリックします。 認識されたバンドルのリストに   OCaml   バンドルが表示されます。

![新しい TextMate バンドル](https://resources.jetbrains.com/help/img/idea/2026.3/ps_textmatebundles_import_result.png)

## テスト​​

TextMate バンドルが追加されると、RubyMine はバンドルに登録されているファイルタイプの構文ハイライトを提供します。 これは、先ほど追加した TextMate バンドルを使用したサンプル OCaml コードフラグメントです。

![コードのハイライト](https://resources.jetbrains.com/help/img/idea/2026.3/py_textmatebundles_highlight.png)

## See also

### リファレンス

[TextMate バンドル](textmate-bundles.html)

