Is it possible to turn on Ruby syntax highlighting in PHPStorm?

I found this one , but honestly I don’t know how to install it or it is applicable. Thank!

+50
ruby php phpstorm
May 8 '13 at 22:34
source share
3 answers

The Ruby plugin you linked is for IntelliJ IDEA Ultimate only, it will not work with PhpStorm. See this answer for more details.

However, you can get basic syntax highlighting for Ruby files in PhpStorm using the TextMate bundles support plugin. It is already included in PhpStorm 6.0.1 and you do not need to install it, just make sure it is included in Settings | Plugins

  • Git clone Ruby.tmbundle to some directory.

  • Add this directory to Settings | TextMate Bundles :

Ruby bundle

For some reason, support for PhpStorm TextMate Bundles does not recognize *.rb files supported by this package. To fix this problem, open the file Ruby.tmbundle\Syntaxes\Ruby.plist in a text editor, find the <key>fileTypes</key> section, add the <string>rb</string> in the <array>

(the above should be fixed in the latest version of the Ruby package, so editing the package is no longer required, but if you add any other language pack, this is what you may need to configure)

Restart PhpStorm, make sure *.rb now properly bound:

association

Now you get Ruby syntax highlighting in PhpStorm:

Ruby syntax




If you need full support for both Ruby and PHP (plus much more) in the same IDE, consider using IntelliJ IDEA Ultimate .

+134
May 08 '13 at 23:16
source share

CrazyCoder git repo does not work on Windows systems because a large number of file names are not valid on Windows.

However, I found the official repo for ruby ​​for textmate:

https://github.com/textmate/ruby.tmbundle

+2
Jan 30 '14 at 16:43
source share

I really copied my PhpStorm theme into RubyMine without any problems, so it should go both ways.

I went so far as to create a TextMate key card for PhpStorm, you can see it here: http://tentaclecms.com/blog/2013/08/textmate-keymap-for-phpstorm/

+1
Aug 29 '13 at 22:45
source share



All Articles