How to make Geany use free-form style for .f files?

Is there a way to make Geany use free form style for f files? I currently need to use f90 or f95 files for Geany to use free form style for syntax highlighting.

I might ask why you want to do that, when most (if not all) compilers treat .f as fixed-form. For my additional thoughts on this, see Doctor Fortran in “Source Form Just Wants to be Free” - Doctor Fortran (

1 Like

I have no experience with Geany, but according to these pages

I guess it may be possible to customize the file type to be used. Also, the online manual

might have more detailed information (though it may be faster to look into more user Q/A pages…)