tags:

views:

22

answers:

1

I've got a file named Vagrantfile and it's a ruby file but it cannot have the .rb at the end of the filename.

Is there a way to tell Netbeans that it's Ruby file?

+1  A: 

Right-click the file in Files view (Ctrl-Shift-2 or -Shift-2) and look for "Open As...". When the context menu opens, select "text/x-ruby". Note that this works only when a file type is not detected automatically.
There is a caveat with this: Once a file w/o extension is opened as Ruby file, it treats all files w/o extension as Ruby files.

Swanand
Great trick, but since it will tread all files with no extension it's probably not a such good idea:)
never_had_a_name