I found this but honestly not sure how to install it or whether it applies. Thanks!
Ruby plug-in that you have linked is designed for IntelliJ IDEA Ultimate only, it will not work with PhpStorm. See this answer for more details.
However, it's possible to get the basic syntax highlighting for Ruby files in PhpStorm using the TextMate bundles support plug-in. It's already included with PhpStorm 6.0.1 and you don't need to install it, just make sure it's enabled in Settings
| Plugins
.
Git clone Ruby.tmbundle into some directory.
Add this directory in Settings
| TextMate Bundles
:
For some reason PhpStorm TextMate Bundles support will not recognize *.rb
files as supported by this bundle. To fix this problem open Ruby.tmbundle\Syntaxes\Ruby.plist
file in some text editor, find <key>fileTypes</key>
section, add <string>rb</string>
under <array>
(the above should be fixed in the latest Ruby bundle version, so the editing the bundle is no longer needed, but if you are adding some other language bundle, it's something you may need to adjust)
Restart PhpStorm, verify that *.rb
is now associated correctly:
Now you get Ruby syntax highlighting in PhpStorm:
If you need full support for both Ruby and PHP (plus much more) in a single IDE, consider using IntelliJ IDEA Ultimate.
CrazyCoder's git repo doesn't work in windows systems, as a large number of the filenames are invalid in Windows.
I have, however, found the official repo for ruby for textmate:
https://github.com/textmate/ruby.tmbundle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With