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:
- Code::Blocks IDE for Fortran (Linux, Windows),
- Eclipse Photran (Linux, Unix, macOS, Windows),
- Force Fortran IDE for Fortran 77/90 (Windows),
- NetBeans IDE, using the C/C++/Fortran bundle (Linux, Unix, macOS, Windows),
- Oracle Developer Studio (RHEL, Solaris),
- Microsoft Visual Studio Code (Linux, Unix, macOS, Windows).
- XWindow Programming Environment, Borland-like IDE for X11 (Linux, Unix).
Some commercial IDEs feature Fortran support, like:
- Approximatrix SimpleFortran (Linux, macOS, Windows),
- IntelliJ CLion with Fortran plug-in (Linux, Unix, macOS, Windows),
Vim
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
- 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 Options → Compiler → Fortran. On FreeBSD, set, for example:
Option | Value |
---|---|
Compiler | gfortran13 |
Compiler-Options | -I=/usr/local/include -L/usr/local/lib |
File-Postfix | .f90 |
Compiler-Style | GNU |
Then, open Project → Options and set additional compiler options, the name of the executable, and further arguments. Select Run → Compile 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.
< Fortran Compilers | [Index] | Source Format > |