I've got some Fortran 90 source code I want to put into my thesis appendix. For this I'm using the
listings package. Is it possible to have colored syntax highlighting for the Fortran code?
You have to set the language and the kind of highlighting, e.g.
For more information about the used settings with
BTW: There are several alternative packages for syntax highlighting. With fortran there seems to be even a package to print Fortran programs. But I've never used this, it cannot be used for syntax highlighting and was made to be used with plainTeX. So maybe if you want to try an alternative, e.g., highlight would be ab better suggestion.