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

**URL:** <https://www.ruby-forum.com/t/how-to-alter-netbeans-ide-so-it-considers-files-with-a-red-suffix-to-be-ruby-files/151562>\
**Category:** Rails\
**Created:** [October 22, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/how-to-alter-netbeans-ide-so-it-considers-files-with-a-red-suffix-to-be-ruby-files/151562 "2008-10-22T23:53:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [October 22, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/how-to-alter-netbeans-ide-so-it-considers-files-with-a-red-suffix-to-be-ruby-files/151562/1 "2008-10-22T23:53:39Z")

</div>

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  
appreciated.

Thanks in advance,  
Ken McDonald

---

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [October 27, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/how-to-alter-netbeans-ide-so-it-considers-files-with-a-red-suffix-to-be-ruby-files/151562/2 "2008-10-27T16:25:02Z")

</div>

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.

Erno

2008/10/22 Kenneth McDonald [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
