× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I want the editor to indent for me.  Other editors do it. Code
should too.
If I have
if a = b ;
   c = d ;
endif;

and I wrap some more code around it
if x > y ;
   z =q ;
if a = b ;
   c = d ;
endif ;
endif ;

I'd like the editor to straighten it out for me to
if x > y ;
   z =q ;
   if a = b ;
      c = d ;
   endif ;
endif ;

If the editor can do it, why should I?

Of course, it would also be nice to redo the indentation if you
didn't like how the previous guy did it.  Or if he made a right
dog's breakfast out of it.

I'm not knocking free format.  I just want editor added structure
in it.  Look at a Cobol program, which is free format.  How often
isn't the code in the correct structure?

Sam

----- Original Message -----
From: "Don Freeman" <DFreeman@norcalwaste.com>
To: <code400-l@midrange.com>
Sent: Thursday, October 03, 2002 6:42 PM
Subject: RE: Corresponding End's


Just curious...What purpose would indent fill in free-form format?
To me the ability to indent your control structures from within
your code is one of the (if not THE) biggest advantages of using
free format.  The indent function of CODE would be superfluous in
this case.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.