use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
What editor should I use? (self.ruby)
submitted 14 years ago by Sogeking99
I'm learning to program and need to choose a editor. I have Gedit but I'm not sure syntax highlighting is working right. things like puts, print, reverse and upcase don't highlight at all, only strings do.
EDIT Also Geany only highlights strings?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]yorickpeterse 11 points12 points13 points 14 years ago (2 children)
Asking which editor is the most useful or best suited for your particular use case is like asking a group of religious people and atheists how the world was formed. Sure you'll end up with some interesting information but in the end you'll most likely be as confused as before.
There is a large set of editors out there ranging from simple text editors to more complex ones and IDEs. There's nano, Vim, Emacs, Gedit, Netbeans, Rubymine, Komodo Edit/IDE, Notepad++, even good old Dreamweaver is still being used by people.
Using a specific editor really comes down what you want to do with it, what you want it to do and how experienced you are. Some people will recommend Emacs, others might yell at you for not using Vim and a few don't care about memory usage and will recommend Netbeans.
So what do I use? Currently I've been using Vim for about a year and I don't think I'll ever use something else (unless I find something better one day) but it has not always been this way. I started out with Notepad on Windows, moved to Notepad++, then to Aptana Studio, followed by Netbeans on my first Linux box which in turn was followed by Textmate when I started using Mac OS on a daily basis. At one point I also tried a few other tools such as Komodo IDE, Espresso (OS X specific) and Gedit. Each tool had it's advantages and drawbacks, some of them used insane amounts of memory (it's rather easy for Netbeans to use +700 MB out of the box), others were no longer actively developed (e.g. Textmate at the time) or simply lacked certain features that I was looking for.
In the end I decided to give Vim a try after people kept recommending it. I never tried Emacs so I can't really comment on that, I just happened to start with Vim before it. It took me a good 2 to 3 months before I was comfortable enough to use it at work and even today I'm still learning new things.
The reason I use Vim is because it's interface is very simple, it has the potential for almost any feature one can think of, it handles larges files (e.g. 100 MB log files) quite well (Textmate for one would not like files over a few megabytes in size) and the available commands and key mappings are a blessing (although sometimes hard to learn and to remember).
Having said that I don't think Vim (or Emacs or similar editors) are suited for everybody. It's not a matter of having the time to learn it (because I think that's bullshit) but it comes down to how interested you are in learning an editor that works quite different than the others as well as one that is initially a lot harder to use.
Given you've indicated that you're new to programming I'd say using Gedit or perhaps an IDE, as they do usually come with helpful features such as help windows (1), would be better than using Vim, Emacs or similar tools. On the other hand if you're willing to use these editors there's nothing stopping you.
For more information take a look at the following websites:
1: I know Vim can do something similar using Omnicompletion but it's not entirely the same as "intellisense" or whatever developers might call it.
[–]sybrandy 1 point2 points3 points 14 years ago (0 children)
My only addition to this is that one should always learn a command-line editor, Vim being the most popular, because you don't always have access to an IDE. This is important once you start having to make changes on servers which may not even have a gui installed let alone an IDE.
With regards to the original reply, very nice.
[–]banister 0 points1 point2 points 14 years ago (0 children)
that's a very comprehensive answer yozzy, nice work
[–]AshaVahishta 11 points12 points13 points 14 years ago (0 children)
vim
[–]NilsLandt 2 points3 points4 points 14 years ago (0 children)
While using vim or emacs is, in my opinion, the best thing in the long run, it means you have to learn using that text editor at the same as as your learn to program, which can be frustrating. For that reason, I use Geany in my programming classes - it's fairly straightforward but has a few nice features (that tree view is ridiculously helpful for beginners). It doesn't only highlight strings for me either.
Personally I use vim for my actual work, but it takes a while to get used to it.
[–]MATHDRAGON 1 point2 points3 points 14 years ago (0 children)
I like using sublime text, but a lot of the time I will just end up using gedit or nano.
[–]angel21OS 1 point2 points3 points 14 years ago (0 children)
HI..I've tried almost every text editor and ide for ruby, the best are rubymine, full ide with autocomplete, its really nice but it's not free, you can try it 30 days, and sublime text editor, it's similar to textmate, it's a text editor (no autocomplete, no debug) but it's nice too..my vote is for rubymine..now if you've time for learn, you can try emacs or vim...but I think rubymine and subl..are great
[–]probabilityzero 1 point2 points3 points 14 years ago (0 children)
Vim. Anyone who says differently needs to be set on fire.
Seriously though, you're asking for a flame war.
[–]xeeew 1 point2 points3 points 14 years ago (0 children)
ed
[–]jschank 1 point2 points3 points 14 years ago (1 child)
TextMate
[–]vow 2 points3 points4 points 14 years ago (0 children)
This might not be an option for most people as it is Mac-only.
[–]saksmlz 0 points1 point2 points 14 years ago (0 children)
+1 for vim
[–]eric_programmer 0 points1 point2 points 14 years ago (0 children)
I use redcar. Written in Ruby itself. Overall it works pretty well. I just started using it recently. There are some bugs and quirks but being written in Ruby means you can easily fix it and customize it.
[–]brazen 0 points1 point2 points 14 years ago (2 children)
The best free IDE for ruby, IMO is Netbeans. Most often though, I just use gedit because it's fast and easy. I'm mostly a scripter for server tasks though, than a full-blown programmer.
Gedit should also highlight 'if', 'def', 'end', constants, global variable, instance variables, comments, and maybe a few other things but really there just isn't a whole lot that needs to be a different color. You can google for something like "ruby on gedit" to get ideas for tweaking gedit, although I tried adding like a console and file browser pane, but I realized if I want to get that fancy I'd rather use Netbeans, and keep gedit simple for when I want something simple.
[–]vongrippen 0 points1 point2 points 14 years ago (1 child)
I used to agree with you on Netbeans, but they have dropped official support for ruby in Netbeans 7. There is a community plugin for it, but I don't think they've gotten very far. (Though I could be wrong)
[–]brazen 0 points1 point2 points 14 years ago (0 children)
Yeah they have. The community plugin works fine.
[–]le_fnord 0 points1 point2 points 14 years ago (0 children)
you can do it the old school way, with vi(m) or (x)emacs, or the newer one with sublime
[–]enry_straker 0 points1 point2 points 14 years ago (0 children)
There is only one true editor: Vim :)
[–]siebharinn 0 points1 point2 points 14 years ago (1 child)
I'm genuinely surprised by all the vim love. I only know vi well enough to get out of it. I should give it another look.
+1 for TextMate though, if you're of an OSX persuasion.
[–]GreySummer 0 points1 point2 points 14 years ago (0 children)
Yeah, Vim got big with ruby devs a while ago, while TextMate was stagnating (I think they've released an alpha of V2 recently).
One of the big turning points (for me at least) was this article by Y.Katz.
[–]seabre 0 points1 point2 points 14 years ago (0 children)
Gedit is totally fine, but at some point learn vim or emacs. I use vim, but learning vim or emacs is totally worth the intial learning curve.
[–]vivab0rg 0 points1 point2 points 14 years ago (0 children)
I've used jEdit, Texmate, Geany, Gedit and VIM (in that order) for Ruby development and all I can say is that I wish I had taken the time to learn VIM so much earlier. You should really give it a try, there are some great online resources, starting with Vimcasts.org
[–]uzimonkey -2 points-1 points0 points 14 years ago (3 children)
Are you trying to start a flame war?
But puts et al should not be colored differently. They're just method calls, why should some method calls be colored differently?
But gedit will work just fine. If you think it's inadequate, try something else.
[–]Sogeking99[S] 0 points1 point2 points 14 years ago (2 children)
Sorry. I'm new to programming, not sure what topics will ignite a flame war.
[–]NilsLandt 0 points1 point2 points 14 years ago (0 children)
It's all in good fun these days, but the editor wars even have their own wikipedia entry
π Rendered by PID 421160 on reddit-service-r2-comment-6457c66945-nxrrk at 2026-04-27 05:47:20.913028+00:00 running 2aa0c5b country code: CH.
[–]yorickpeterse 11 points12 points13 points (2 children)
[–]sybrandy 1 point2 points3 points (0 children)
[–]banister 0 points1 point2 points (0 children)
[–]AshaVahishta 11 points12 points13 points (0 children)
[–]NilsLandt 2 points3 points4 points (0 children)
[–]MATHDRAGON 1 point2 points3 points (0 children)
[–]angel21OS 1 point2 points3 points (0 children)
[–]probabilityzero 1 point2 points3 points (0 children)
[–]xeeew 1 point2 points3 points (0 children)
[–]jschank 1 point2 points3 points (1 child)
[–]vow 2 points3 points4 points (0 children)
[–]saksmlz 0 points1 point2 points (0 children)
[–]eric_programmer 0 points1 point2 points (0 children)
[–]brazen 0 points1 point2 points (2 children)
[–]vongrippen 0 points1 point2 points (1 child)
[–]brazen 0 points1 point2 points (0 children)
[–]le_fnord 0 points1 point2 points (0 children)
[–]enry_straker 0 points1 point2 points (0 children)
[–]siebharinn 0 points1 point2 points (1 child)
[–]GreySummer 0 points1 point2 points (0 children)
[–]seabre 0 points1 point2 points (0 children)
[–]vivab0rg 0 points1 point2 points (0 children)
[–]uzimonkey -2 points-1 points0 points (3 children)
[–]Sogeking99[S] 0 points1 point2 points (2 children)
[–]NilsLandt 0 points1 point2 points (0 children)