# TextMate バンドル

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

CLion でサポートされていないいくつかの言語、例えば PHP、Ruby、Java の場合でも、時々そのようなコードを確認する必要がある場合は、IDE がコーディング体験を向上させるために構文ハイライトを提供します。 TextMate 文法を使用した言語の記述の詳細については、 [TextMate 公式 Web サイト(英語)](https://macromates.com/manual/en/language_grammars)を参照してください。

これらの言語の構文ハイライトは TextMate 文法に基づいており、CLion にはさまざまな言語の文法ファイルのコレクションが付属しています。 使用可能なすべてのバンドルは、   設定   ダイアログ（ `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)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ）の  `エディター | TextMate バンドル`  ページに一覧表示されます。

![TextMate バンドル設定](https://resources.jetbrains.com/help/img/idea/2026.3/cl_textmate_settings.png)

選択した言語のより深いサポートが IDE 自体またはプラグイン（ [Rust(英語)](https://plugins.jetbrains.com/plugin/8182-rust) など）を通じて提供される場合、TextMate バンドルよりも優先されます。

他の言語の [カスタム TextMate バンドル](#importing-bundles)をダウンロードして使用することもできます。

特定の言語の TextMate バンドルが有効化されている場合、CLion はバンドルに登録されているファイルタイプの構文ハイライトを提供します。 例: Ruby の場合:

![Ruby 構文のハイライト](https://resources.jetbrains.com/help/img/idea/2026.3/cl_textmate_ruby.png)

##  カスタム TextMate バンドルの使用 

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

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)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `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/ac_textmatebundles_import.png)

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

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

4. TextMate バンドルが追加されると、バンドルに登録されているファイルタイプの構文のハイライトが利用可能になります。 追加した TextMate バンドルを使用するサンプル OCaml コードフラグメントを次に示します。

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

## See also

