To use fortran compiler, please install gfortran package from Add-ons. Package gfortran-examples includes few examples to demonstrate how it works.
Type two spaces on begin of new line to get six spaces indent.
Fortran "hello world":
program hello print *, "Hello World!" end program hello