CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

TextMate bundles

Last modified: 08 September 2023

For a number of languages that are not supported in CLion, for example, PHP, Ruby, and Java, the IDE still provides syntax highlighting to improve your coding experience if you occasionally need to examine such code. For more information about describing languages using the TextMate grammar, refer to the TextMate official website.

Syntax highlighting for these languages is based on TextMate grammars, and CLion 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 Settings dialog (CtrlAlt0S).

TextMate bundles settings

If more profound support for a chosen language is provided through the IDE itself or a plugin (like Rust), it’s prioritized over a TextMate Bundle.

You can also download and use custom TextMate bundles for other languages.

When a TextMate bundle for a particular language is enabled, CLion provides syntax highlighting for the file types registered with the bundle. For example, in case of Ruby:

Ruby syntax highlighting