News for hackers. Stuff that matters.

Ruby editor?

I'm looking for a text editor to save ".rb" files, but I can't find any programs out there that are free... Most are 30 day trials.

Is ruby installer suppose to come with a text editor program?

Apologies I'm just starting to code and a bit unfamiliar with how to go about this.

( 15 comments | 4 points | on HN )
Re:Ruby editor? by phren0logy on Friday April 01, 2011 @04:18PM (#2397841)
From Zed Shaw's "Learn Python the Hard Way":

>If a programmer tells you to use vim or emacs, tell them no. These editors are for when you are a better programmer. All you need right now is an editor that lets you put text into a file. We will use gedit because it is simple and the same on all computers. Professional programmers use gedit so it's good enough for you starting out.

Re:Ruby editor? by SingAlong on Friday April 01, 2011 @11:30PM (#2399039)
gedit with this https://github.com/gmate/gmate

Been suggesting Ubuntu+gedit+gmate to my friends who are starting with programming. It's better than the editor that ships with Windows (most in my geographic region use windows... like 99%).

Re:Ruby editor? by csarva on Friday April 01, 2011 @03:51PM (#2397736)
Any text editor will be able to save .rb files; they're just plain text files. Also, you didn't say which OS you're on, but assuming you're on Windows, notepad++ is a good free editor.

http://notepad-plus-plus.org/

Re:Ruby editor? by simplify on Friday April 01, 2011 @05:05PM (#2398070)
You should try http://sublimetext.com

It's sort of like textmate but also cross-platform, so in theory you won't have to learn another editor. I'd learn it myself if I wasn't already used to textmate.

Re:Ruby editor? by robflynn on Friday April 01, 2011 @10:46PM (#2398943)
I like this editor a lot also. Sublime Text 2 is quite nice. Enables me to use a nice editor across all of the platforms on which I have to develop.
Re:Ruby editor? by davidw on Friday April 01, 2011 @04:04PM (#2397787)
You might as well skip past all the toys and get Emacs and start on the lifelong journey of understanding it. Vim might be worth looking at too, but it's not my cup of tea.
Re:Ruby editor? by wewyor on Friday April 01, 2011 @05:40PM (#2398204)
Since you said installer I might assume use of windows, take a look at notepad++ (http://notepad-plus-plus.org/)

OS x or linux check out gedit. (http://projects.gnome.org/gedit/ Downloads on right side of front page.) Also available for windows, but notepad++ is a little easier to use if you are used to windows programs.

Re:Ruby editor? by vinodkd on Friday April 01, 2011 @03:55PM (#2397750)
it looks like you could use most any text editor. most os's have a default text editor.

if you want a ruby IDE, try redcar - http://www.redcareditor.com.

Re:Ruby editor? by th0ma5 on Friday April 01, 2011 @04:01PM (#2397772)
On my Ubuntu netbook, I love GEdit http://grigio.org/pimp_my_gedit_was_textmate_linux
Re:Ruby editor? by jakkinabox on Friday April 01, 2011 @08:41PM (#2398732)
My setup on Ubuntu is as follows. I use a drop down terminal called Yakuake. It drops down from the top of my screen when I press F12. From there I can create a ruby document by typing

vim example.rb

You don't have to use or learn all of vims features straight away. I probably use 1% of it but I like it. :w to save, :wq to save and quit.

Re:Ruby editor? by gharbad on Friday April 01, 2011 @03:44PM (#2397713)
Vim has good coloring and you can add completion to it.

Do you need anything else in an editor?

Re:Ruby editor? by mindfulbee on Sunday April 03, 2011 @12:37PM (#2403114)
Thank you, Vim is definitely helpful!
Re:Ruby editor? by mark_l_watson on Friday April 01, 2011 @05:23PM (#2398138)
I mostly use TextMate (OS X) and GEdit (on Linux), but perhaps 1/4 of the time I use RubyMine because autocompletion and immediate flagging of syntax errors can help.
Re:Ruby editor? by nwmcsween on Friday April 01, 2011 @10:50PM (#2398952)
Re:Ruby editor? by jsavimbi on Friday April 01, 2011 @03:53PM (#2397739)
I've used Textmate for about four years now and I'm really happy with it. But if it's not for you, just use iTerm2 and learn the Vim.