Home > Archive > Fortran > November 2004 > Free pretty-printing for Fortran 90/95
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Free pretty-printing for Fortran 90/95
|
|
| Danguard 2004-11-20, 3:56 pm |
| Is there any free tool to pretty-print Fortran 90/95 source codes?
I tryed lgrind; it works good for FORTRAN 77, but it seems to me that it
cannot correctly manage F90/95 sources...
Thanks in advance,
Dan
| |
| beliavsky@aol.com 2004-11-20, 3:56 pm |
|
Danguard <danguard_robot@hotmail.com> wrote:
>Is there any free tool to pretty-print Fortran 90/95 source codes?
>
>I tryed lgrind; it works good for FORTRAN 77, but it seems to me that it
>cannot correctly manage F90/95 sources...
There are some utilities for F90/95 by Michel Olagnon at
http://www.ifremer.fr/ditigo/molagn...90/contenu.html .
A2ps can generate PostScript files from fixed or free format Fortran code
-- see http://www.inf.enst.fr/~demaille/a2....12/a2ps_7.html .
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
| |
| gtg531e 2004-11-21, 3:58 am |
| If you use emacs, it is built in it.
just type (M- stays for "Meta", C- for "Ctrl")
M-x ps-print-buffer
or
M-x ps-print-buffer-with-faces
If you want to output code to
ps file then type
C-u M-x ps-print-buffer-with-faces
emacs will ask you for the name of the
output postscript file.
--
igor.
| |
| Brian Elmegaard 2004-11-21, 8:56 am |
| Danguard <danguard_robot@hotmail.com> writes:
> Is there any free tool to pretty-print Fortran 90/95 source codes?
latex with the listings package.
--
Brian (remove the sport for mail)
http://www.et.dtu.dk/staff/be/be.html
| |
| Bil Kleb 2004-11-23, 8:57 am |
| Danguard wrote:
> Is there any free tool to pretty-print Fortran 90/95 source codes?
Back in February, Dave Bowler submitted a style file for F90
to the enscript developers that does this with something like,
enscript --color --highlight=f90 file.f90
I haven't tried it.
Looking at http://people.ssh.fi/mtr/genscript/ makes me think
that enscript's maintainers have not released a version that
includes Dave's style file, f90.st.
To get a copy of the style file, try pinging david dot
bowler atchar ucl dot ac dot uk.
Regards,
--
Bil Kleb, Hampton, Virginia
| |
| Michel OLAGNON 2004-11-23, 8:57 am |
|
In article <cnv8l3$kmv$1@news2.news.larc.nasa.gov>, Bil Kleb <Bil.Kleb@NASA.Gov> writes:
>Danguard wrote:
>
>Back in February, Dave Bowler submitted a style file for F90
>to the enscript developers that does this with something like,
>
> enscript --color --highlight=f90 file.f90
>
>I haven't tried it.
>
>Looking at http://people.ssh.fi/mtr/genscript/ makes me think
>that enscript's maintainers have not released a version that
>includes Dave's style file, f90.st.
>
>To get a copy of the style file, try pinging david dot
>bowler atchar ucl dot ac dot uk.
>
>Regards,
>--
>Bil Kleb, Hampton, Virginia
You may also note that together with the f90ppr tool, I wrote the f90tops
one that prints Fortran source to PostScript.
http://www.ifremer.fr/web-com/molagnon/utilsf90.html
Michel
| |
| Charles Russell 2004-11-26, 4:09 pm |
|
"Michel OLAGNON" wrote >
> You may also note that together with the f90ppr tool, I wrote the f90tops
> one that prints Fortran source to PostScript.
Have you had occasion to see whether your utilities yet compile and run with
gfortran and/or g95?
| |
| Steven G. Kargl 2004-11-26, 4:09 pm |
| In article <aMJpd.63616$IQ.59344@bignews6.bellsouth.net>,
"Charles Russell" <STOPworworSPAM@bellsouth.net> writes:
>
> "Michel OLAGNON" wrote >
>
>
> Have you had occasion to see whether your utilities yet compile and run with
> gfortran and/or g95?
>
Michel's f90split and f90tops bothe compile with gfortran.
f90tops < f90tops.f90 > zzzz.ps produces a postscript file
that can be rendered by ghostscript. I haven't f90split.
His f90ppr utility triggers a bug with gfortran.
--
Steve
|
|
|
|
|