reformat and reindent fortran files
Posted: Thu Mar 02, 2006 10:12 pm
Hi,
I think I like the editor so far but I wonder whether it has the capability to perform reformating and indenting of fortran files. I presently use emacs to reformat and indent the files and use Zeus for code folding options.
for example:
subroutine sub()
integer:: k, n = 2
real( 8 ):: x, y, e=2
DO k = 1, n
x= x+k
y = y - e
ENDDO
end subroutine sub
would be reformatted and indented to:
subroutine sub()
I will be glad to do everything within one editor like Zeus.
jpSam
I think I like the editor so far but I wonder whether it has the capability to perform reformating and indenting of fortran files. I presently use emacs to reformat and indent the files and use Zeus for code folding options.
for example:
subroutine sub()
integer:: k, n = 2
real( 8 ):: x, y, e=2
DO k = 1, n
x= x+k
y = y - e
ENDDO
end subroutine sub
would be reformatted and indented to:
subroutine sub()
- integer:: k, n = 2
real( 8 ):: x, y, e=2
- DO k = 1, n
- x= x+k
y = y - e
- x= x+k
I will be glad to do everything within one editor like Zeus.
jpSam