How to alter Netbeans IDE so it considers files with a '.red' suffix to be Ruby files?

I’d like to play around with the Ruby Red Ruby-to-Javascript
translator, and it expects its Ruby sources to end with the .red
suffix. I haven’t had any luck in figuring out how to set NB to
consider such files as Ruby files, so any advice would be most

Thanks in advance,
Ken McDonald

Hi Ken,

I’m a bit late on this, but in case you didn’t figure this out yet:
you can change file associations in Tools → Options → Miscellaneous
→ Files, you need to create a new extension for the .red suffix and
then associate it with the Ruby MIME type. Note that this is how you
do it in 6.5, I’m not sure now off the top of my head how to do it in
6.1 – for sure it is a bit more complicated, but I think you can do
it somewhere in Options → Advanced Options → File Types. Let me know
if using 6.5 is not an option for you and I’ll find out how exactly to
do this in 6.1.


2008/10/22 Kenneth McDonald [email protected]: