How can I fix indent problems when using jEdit for f90 programming on Win7?

  • Thread starter Thread starter solarblast
  • Start date Start date
AI Thread Summary
jEdit is being used for writing Fortran 90 (f90) programs on Windows 7, but users are encountering issues with limited indentation features, odd printing results, and cursor behavior that suggests a mix of tabs and spaces. The presence of unseen tabs is causing alignment problems in the code. A suggested solution is to adjust settings in jEdit to replace tab characters with spaces, typically four spaces per tab, to maintain consistent indentation. Additionally, alternatives to jEdit, such as Crimson Editor and Notepad++, are recommended for better handling of f90 formatting and indentation.
solarblast
Messages
146
Reaction score
2
I've been using jEdit for writing f90 programs. Win7. Although jEdit has been helpful, I see that with f90 it has limited indent features, and sometimes when I print I get odd indents. When moving the cursor on a line, sometimes odd things happen. For example, it appears that the cursor takes tab jumps. Tabs may be mixed among blanks spaces. Another editor for f90? Away to control it for f90?

Here's a small example of indent problems.

integer :: j
real :: a
a=3.0
do j=1,3
write(*,*) j + a
end do

There is no clear way to line these up. Unseen tabs may be the problem in jEdit.
 
Technology news on Phys.org
Well, that didn't quite work. Consider _ as a space.

integer :: j
real :: a
__a=3.0
__do j=1,3
_____write(*,*) j + a
__end do

I'd like to see:
__integer :: j
__real :: a
__a=3.0
__do j=1,3
_____write(*,*) j + a
__end do
 
I stopped using jEdit a looooong time ago.

One thing that is frown upon by many of us is the use of tabs, in the first place.

So, see if you can go to Options or Settings and look for a way to emulate tabs with spaces...I think there might be an option where you tell the editor that every time you press the tab key, it should use a certain number (typically 4) of spaces, instead.

Whenever I inherit a source, the first thing I do is a "search and replace" and get rid of the tabs...yes, it ends up misaligned and so I fix it.

Other nice editors are Crimson and Notepad++.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top