Editors and IDEs

An integrated development environment (IDE) is not implicitly required for programming in Fortran. In most cases, a free editor is sufficient, like:

The Fortran Wiki lists several more editors with syntax highlighting support for Fortran.

You may want to use one of the following free IDEs for your more sophisticated projects:

Some commercial IDEs feature Fortran support, like:


Please see :help fortran for information regarding syntax highlighting of Fortran source code in Vim. You can set some Fortran-specific variables in your .vimrc:

syntax on
let fortran_free_source=1
let fortran_have_tabs=1
let fortran_more_precise=1
let fortran_do_enddo=1

XWindow Programming Environment

XWindow Programming Environment (xwpe)
Fig. 1: Fortran compiler options in xwpe

The XWindow Programming Environment (xwpe) IDE includes a top menu to directly compile and run a Fortran application. Open the Compiler Options window under OptionsCompilerFortran. On FreeBSD, set, for example:

Option Value
Compiler gfortran12
Compiler-Options -I=/usr/local/include/ -L/usr/local/lib/
File-Postfix .f90
Compiler-Style GNU

Then, open ProjectOptions and set additional compiler options, the name of the executable, and further arguments. Select RunCompile in the menu to compile the program.

The font size can be increased, for example, to 18 pixels, by adding the following X resource to ~/.Xdefaults:

xwpe.font: -*-fixed-medium-r-*-*-18-*-*-*-*-*-*-*

Run xfontsel(1) to select a valid font name. An additional syntax definition file for syntax highlighting of Fortran 90 source code is available on the project website.