Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby syntax highlighting in PyCharm?

I love PyCharm, but can't seem to find a way to enable Ruby syntax highlighting. I know about RubyMine, but I'm not going to purchase a license just for this basic functionality. Is it possible to add Ruby syntax highlighting in PyCharm?

like image 568
garnertb Avatar asked Apr 03 '14 15:04

garnertb


1 Answers

You can either create a new file type in Settings/File Types, add .rb as registered pattern there, and define your own syntax highlighting rules, or search for existing textmate bundles for Ruby files in the web, import them and use for syntax highlighting - see http://blog.jetbrains.com/phpstorm/2013/05/textmate-bundles-in-phpstorm/ and https://stackoverflow.com/a/16451778/2000323 for more info

like image 195
lena Avatar answered Sep 20 '22 12:09

lena