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

3

6

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.

Pareu answered 16/10, 2013 at 16:50 Comment(0)
S
7

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.

Shoshone answered 16/10, 2013 at 21:26 Comment(1)
Perfect! There is a way to define an icon for a new file type?Pareu
H
0

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
Hanshaw answered 26/7 at 13:34 Comment(0)
C
-3

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

Concordat answered 16/10, 2013 at 17:24 Comment(1)
I'm referring to the Community Edition. This plugin won't work in my IDEA because they are incompatible.Pareu

© 2022 - 2024 — McMap. All rights reserved.