Simple code editor for Fortran?

Discussion in 'Mac Programming' started by Spanky Deluxe, Apr 23, 2008.

  1. Spanky Deluxe macrumors 601

    Spanky Deluxe

    Joined:
    Mar 17, 2005
    Location:
    London, UK
    #1
    I've been using TextEdit to write my Fortran programs recently and I was wondering if there are any (free) programs for editing Fortran programs? I don't need anything with syntax checking etc, the compiler does that for me. Something that'll deal with indents easier and have a line number display etc. I guess something a bit like the Xcode C editor.

    Any suggestions?
     
  2. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #2
    TextWrangler, my favourite all-purpose, free text editor, supports Fortran colour coding, I think...
     
  3. Spanky Deluxe thread starter macrumors 601

    Spanky Deluxe

    Joined:
    Mar 17, 2005
    Location:
    London, UK
    #3
    That is absolutely perfect! Thank you!!
     
  4. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #4
  5. Spanky Deluxe thread starter macrumors 601

    Spanky Deluxe

    Joined:
    Mar 17, 2005
    Location:
    London, UK
    #5
    Cheers Sayer. :) I'll give it a try too!
     
  6. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #6
    Every programmer, especially Fortran programmers, should use vim. Or emacs if you prefer.

    Syntax highlighting, line numbering, powerful edit functionality, and free to boot.
     
  7. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #7
    Seconded. Read and write Fortran every day. Nothing but vi(m).

    Every time I mention it around here I seem to get flamed. I guess now that someone says they're writing Fortran they're already passed how "hardcore" people think vi(m) is.

    -Lee
     
  8. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #8
    I often like to think of myself as the resident VIM scourge of the MR forums.
     
  9. Mr. Anderson Moderator emeritus

    Mr. Anderson

    Joined:
    Nov 1, 2001
    Location:
    VA
    #9
    there is also emacs running in the terminal window - just about as hardcore as vi :D

    D
     
  10. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #10
    There needs to be a vim vs emacs poll.

    Perhaps that'll rouse the old passions that fueled the usenet flame wars of old.
     
  11. CaptainZap macrumors regular

    Joined:
    Jan 17, 2007
    #11
    Dude you have to make one. Sorry, but I really have nothing constructive to add to the original topic... Vim FTW =]
     
  12. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #12
    Hey, what about pico?

    :D
     
  13. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #13
    Loyalty to Pico may be judged to be an idiosyncrasy for idiosyncrasy's sake.:)

    For the OP, TextMate while not free (especially if you're an American suffering from a weak $ to € exchange rate), is a popular option and rightly so. It is very pretty, and you get syntax highlighting, code folding, and number of other things.

    Fortran isn't included by default but a Fortran bundle is available from the Macromates SVN repository. Install scripts for Fortran, Ada, and may other TextMate bundles are available here (just cut and paste and run them in your terminal):

    http://netcetera.org/cgi-bin/tmbundles.cgi

    It's worth the trial download.
     
  14. chem macrumors regular

    Joined:
    Jun 9, 2007
  15. sherpa78 macrumors newbie

    Joined:
    Aug 20, 2006
  16. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #16
    +1

    Pico > Vim :).
     

Share This Page