bbedit for fortran

I recently discovered bbedit and like some of its features. I do a lot of programming in fortran. So is there any extra customization I can do for fortran ? One problem I find is that bbedit does not respect the 72 column rule for traditional fortran. How can I enable this ?

BBEdit Preferences

I'm not sure exactly what you want to do but you can set the character limit in the Editor preferences.
Also there is an excellent searchable mailing list on the BBEdit website.

With vim, when you are

With vim, when you are editing a fortran file, it automatically wraps at 72 columns, This does not happen with bbedit. Also it does not seem to indent properly. If I am typing an "if" statement, when type "endif", the indenting is not correct.

TextMate

I haven't used BBEdit, but I have heard good things about it. I was of the view that it is particularly suited to web development, but maybe I'm wrong.

I use TextMate (http://www.macromates.com) for my Fortran development. It has a bundle for Fortran syntax highlighting, and you can customize the bundles quite easily yourself.

I don't think it will handle the 72 column issue, but I'm not sure, because I do all my Fortran development in free form these days.

Drew

---------------------------
Drew McCormack
http://www.maccoremac.com
http://www.macanics.net
http://www.macresearch.org

Textmate also does not

Textmate also does not respect the column rule. Vim is smart in this respect. It recognizes whether the file is using fixed format or free format and wraps accordingly. Vim's indenting is also very good.

One nice thing about bbedit is that if you are editing a file which contains many subroutines/functions, it gives you a drop-down list of these. You can directly jump to any subroutine. I did not notice this type of feature in textmate. Is it already present ?

Subroutine/Function Drop Down

Yes, TextMate has a subroutine/function drop down too.

One other thing I like about TextMate is that you can create your own snippets, and insert them by just entering a keyword and tabbing. For example, if I enter 'module' and then tab, I get a complete module template, with interface blocks, user-defined types etc. If I tab again, I can enter a name for the module, which automatically gets filled in at various places in the module (eg after 'end module').

Another thing which draws me to TextMate over basic editors like vi is its multiple file handling capabilities. I create a TextMate project, and drag in the directories I need regular access to. Not only does this allow me to locate files in the project drawer quite easily, it also allows me to search across many files. The files in question do not need to even be in the same root directory: TextMate just searches any files that you have gathered together in the project drawer. Beats the 'grep' command hands down.

Drew

---------------------------
Drew McCormack
http://www.maccoremac.com
http://www.macanics.net
http://www.macresearch.org

text syntax coloring

I find the textmate syntax coloring for fortran rather dull. I am new to this, so I could not figure out how to change it. Can anyone share their bundle with me if they have modified it for their own use ? Particularly interested in a better syntax coloring.

Syntax coloring in TextMate

You can set this in the TextMate prefs under Fonts & Colors. You set the colors universally, rather than on a per-language basis. So all comments in Fortran are the same as comments in C, etc.

Drew

---------------------------
Drew McCormack
http://www.maccoremac.com
http://www.macanics.net
http://www.macresearch.org

I had missed that one.

I had missed that one. Thank. Though I am still not satisfied with the available themes. I will try to cook up my own.

None of the fonts look very good in textmate; I found bbedit fonts better. I tried inconsolata which is somewhat good. What fonts do other users like ?