ScITE Question

Young Ben
Mon, 17 Aug 2009 10:13:08 -0000

I''m a newbie & am just learning to use Ruby. I''ve chosen
ScITE as my
editor. So far so good, writing scripts then executing them inside
ScITE using ''F5''.

when I run this in ScITE

puts "Hello, world. What is your name?"
myname = gets()
puts "Well, hello there " + myname + "."

All that happens is the ruby.exe window pops up & sits there blank.

If I name the above script "banana1.rb", save it to C:\rubyprograms

& then run the program from the command prompt it runs fine.

eg:

c:\rubyprograms> ruby banana1.rb
Hello, world. What is your name?"
OneBanana
Well, hello there OneBanana

Why won''t it run in ScITE?

Thanks in advance.