Editor

S

Safran von Twesla

Hi,

I'm looking for a free windows editor for programming in ruby. It
should at least support syntax highlightening.

Thanks

PS: I posted already (got no answer yet) for a friend who tries to get
the gd-library-functions to work with ruby. Is there something special
to know about? He already managed to get it to work with perl and php.


SvT
 
E

E F van de Laar

* Safran von Twesla ([email protected]) said:
Hi,

I'm looking for a free windows editor for programming in ruby. It
should at least support syntax highlightening.

When I developed on windows I used Eclipse with the ruby plugin. It had
everything I needed at the time.

You could also try FreeRIDE. Just google for either...

Emiel
 
S

Safran von Twesla

SciTE is great until you find Crimson Editor. http://www.crimsoneditor.com

Crimson isn't perfect, but it offers a lot of things that are really nice to
have that I've found SciTE doesn't offer ATM.

Well, I have "walked" through the menu / syntax and I couldn't find
any ruby formatting... ?!? Are there some plugins somewhere?

Thx

SvT
 
S

Stephan Kämper

Safran said:
Hi,

I'm looking for a free windows editor for programming in ruby. It
should at least support syntax highlightening.

Thanks

PS: I posted already (got no answer yet) for a friend who tries to get
the gd-library-functions to work with ruby. Is there something special
to know about? He already managed to get it to work with perl and php.


SvT
Hi,

your might like to try 'Syn'

http://syn.sourceforge.net/

It come with syntax highlighting (for Ruby, too) can can be configured
to run your programs, to create RDocs and to run, say, your unit tests
quite easily (You DO write unit tests, do you ;-)
 
S

Sam Roberts

Crimson looks like a less-mature version of textpad (textpad.com).

I use textpad when I have to use windows, its what Codewrite used to be,
until it bloated beyond all belief.

Cheers
Sam
 
O

Osuka Adartse

Safran said:
Hi,

I'm looking for a free windows editor for programming in ruby. It
should at least support syntax highlightening.

Thanks

PS: I posted already (got no answer yet) for a friend who tries to get
the gd-library-functions to work with ruby. Is there something special
to know about? He already managed to get it to work with perl and php.


SvT
Windows editor? RDE
http://homepage2.nifty.com/sakazuki/rde_e.html

regarding GD lib, I'm on windows haven't got a problem using it, are you
using the pragprog ruby install? mingw? I use the later, didn't tried
compiling gd myself, got the binary from the /binaries/mingw|mswin/ext
folder in a mirror
for mingw
http://www.ibiblio.org/pub/language...1.8/ext/ruby-GD-0.7.4-i386-mingw32-1.8.tar.gz

for mswin didn't see one, but most probably the mingw would work with
the mswin install(but I could be wrong), just unpack the GD.so to the
right dir i.e. ruby/lib/1.8/i386-msvcrt , the i386-msvcrt could be
different on mswin install, just look where the other *.so are.

and thats if using ruby-GD, see:
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=Graphics
 
S

Safran von Twesla

regarding GD lib, I'm on windows haven't got a problem using it, are you
using the pragprog ruby install? mingw? I use the later, didn't tried
compiling gd myself, got the binary from the /binaries/mingw|mswin/ext
folder in a mirror
for mingw
http://www.ibiblio.org/pub/language...1.8/ext/ruby-GD-0.7.4-i386-mingw32-1.8.tar.gz

for mswin didn't see one, but most probably the mingw would work with
the mswin install(but I could be wrong), just unpack the GD.so to the
right dir i.e. ruby/lib/1.8/i386-msvcrt , the i386-msvcrt could be
different on mswin install, just look where the other *.so are.

and thats if using ruby-GD, see:
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=Graphics


He inserted GD.so in C:\ruby\lib\ruby\1.8\i386-mswin32 and run his
Script again... here the error:

test.rb:62: undefined method `colorAllocate' for
#<GD::Image:(100x100)> (NoMethodError)

Strange, isn't it?

Thx

SvT
 
O

Osuka Adartse

Safran said:
He inserted GD.so in C:\ruby\lib\ruby\1.8\i386-mswin32 and run his
Script again... here the error:
ms-win32?, the pragprog doesn't create a /*mswin but /*msvcrt? or is a
newer version? or is he using other windows binary?
test.rb:62: undefined method `colorAllocate' for
#<GD::Image:(100x100)> (NoMethodError)

Strange, isn't it?

Thx

SvT
I Installed the ruby-180-10, just to check it out and using the example.rb:
-----------------------------------------
require 'GD'
im=GD::Image.new(100,100)
white = im.colorAllocate(255,255,255)
black = im.colorAllocate(0,0,0)
red = im.colorAllocate(255,0,0)
blue = im.colorAllocate(0,0,255)
im.transparent(white)
im.interlace = true

# Put a black frame around the picture
im.rectangle(0,0,99,99,black)

# Draw a blue oval
im.arc(50,50,95,75,0,360,blue)

# And fill it with red
im.fill(50,50,red)

# Convert the image to PNG and print it on standard output
file=File.new("test.png","wb")
im.png(file)
-----------------------------------------
I get the test.png ok!, both with the mingw install and the
mswin(pragprog), mmmh... is other mswin install, self compiled?

run the line *require 'GD'* does it gives an error by itself?

Adartse
smoking kills, living kills, but I like both.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,818
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top