Is sphinx capable of detecting that this is Fortran? If not you should specific it using the 'codeblock' directive.