From: "Mauricio Fernández" Date: 2003-08-17T00:35:30+09:00 Subject: Re: list of Ruby capable text editors? On Sat, Aug 16, 2003 at 10:55:41PM +0900, Rudolf Polzer wrote: > Scripsit ille �Andreas Schwarz� : > > Ben Giddings wrote: > > > Martin Pirker wrote: > > >> short question: is there somewhere a comprehensive list of Ruby > > >> syntax-highlightning capable text editors (on Linux)? > > >> > > >> I don't care how "mainstream"[1] they are, it just has to be "good > > >> enough", small, simple, text terminal oriented... and with Ruby > > >> support :-) > > > > > > C'mon... try Emacs/XEmacs... You know you want to... > > > > I'm using XEmacs for Ruby editing, but it seems that I can't get the > > syntax highlighting to work. I have installed ruby-mode, but only > > comments and strings are colored. Shouldn't there be different colors > > for variables, methods, classes etc? > > I'm using elvis and vim. > > elvis doesn't have ANY Ruby syntax highlighting and vim's doesn't work in > the case > > def foo() > return if true > 23 > else > 42 > end > end [nit-picking] well, in this case Ruby thinks like vim :) batsman@tux-chan:/tmp$ expand -t4 t.rb def foo() return if true 23 else 42 end end p foo batsman@tux-chan:/tmp$ ruby t.rb t.rb:6: warning: else without rescue is useless t.rb:7: syntax error However a = if true 1 else 2 end fails as you describe. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Beeping is cute, if you are in the office ;) -- Alan Cox