jenjhiz wrote: > Thanks for the lead. However, I can't find an .irbrc file anywhere in > my machine (Windows XP). Where is it located? > I use cygwin when on windows. With cygwin your "C:\Documents and Settings\user_name" directory is your home directory. So you put it in there. Your probably using the one-click installer if irb is crashing on you :) - I had that experiance too - I am not sure what the answer is under that setup. -Charlie > > > Charles Mills wrote: > > Jenjhiz wrote: > > > Hello, > > > I'm looking for a Ruby interactive shell where I can paste snippet > of > > > codes (rather than typing them in). eval.rb doesn't do it (or I > > haven't > > > found a way to make it do it). > > > Thanks! > > > gk > > > > There is an answer to your question at the bottom of this page: > > http://rubygarden.org/ruby?Irb/TipsAndTricks > > > > <snip> > > If you add this to your .irbrc file: > > IRB.conf[:PROMPT][:XMP][:RETURN] = "\# => %s\n" > > > > and start with irb --prompt xmp you'll have a great session for > copying > > and pasting code. > > </snip> > > > > -Charlie