tags:

views:

227

answers:

1

I am trying to format my code with textmate "indent" option . but textmate just left aligns everything .

What is the proper way to format ruby code in textmate?

+1  A: 

Indenting Ruby code should actually indent it. Is the Ruby bundle selected for the file you are trying to indent?

mipadi
sorry ..how do i select ruby bundle
Surya
It should be automatically selected for `.rb` files, but if you're editing a file with a different extension (or no extension, in the same of some scripts) it might not be automatically selected. The active bundle will be shown in the menu at the bottom of the window, next to where it says "Line" and "Column". It should say "Ruby".
mipadi
that was it ..it was set to applescript for some wierd reason. thanks
Surya