Victor Dolirio
Victor Dolirio

Reputation: 153

How to get a ruby syntax highlighting in IntelliJ IDEA Community 12

I know that there is no "official" support from Jetbrains. How can I workaround this? I just need a syntax highlighting level of support for ruby.

Thanks in advance.

Upvotes: 6

Views: 4487

Answers (3)

Felix
Felix

Reputation: 436

I followed @TheGraeme's suggestion and added this configuration for Ruby (which i have no idea of, I only need it for the Podfile in XCode for my Flutter app) in my current Android Studio Version.

Android Studio ruby file type

Here is the list of Keywords that I took from this list: https://www.geeksforgeeks.org/ruby-keywords/

BEGIN
END
__ENCODING__
__FILE__
__LINE__
alias
and
begin
break
case
class
def
defined?
do
else
elsif
end
ensure
false
for
if
in
module
next
nil
not
or
redo
rescue
retry
return
self
super
then
true
undef
unless
until
when
while
yield

Upvotes: 0

TheGraeme
TheGraeme

Reputation: 1123

Follow the instructions in this blog post: http://blog.jetbrains.com/idea/2010/09/custom-file-types-in-intellij-idea/

I've followed that process myself to setup custom syntax highlighting for both Velocity Template Language and JavaScript files, and am just about to do the same for Ruby.

Upvotes: 7

epsilones
epsilones

Reputation: 11609

Sure there is here an official technical support.

You can find ruby plugin for IntellJ IDEA here

Btw, first I thought you were using RubyMine, there you can set the auto-completion by going to File | Settings - IDE Settings - Editor - Code completion, so you could try to find what's up in this path for IntelliJ IDEA

Upvotes: -3

Related Questions