That does help some, but it can get cumbersome to read through over
hundreds of lines. Also, if the syntax isn't done just right, they won't
indent right. There are some bugs with the indenting, sometimes, too. I
was just thinking it could be implemented in a more friendly way,
possibly.

 

Thanks,

Megan

Megan O'Byrne | SPA | Biomedical Statistics & Informatics | 507-284-5635
| obyrne.megan@mayo.edu 
Mayo Clinic | 200 First Street SW | Rochester, MN 55905 |
www.mayoclinic.org 

________________________________

From: Richard M. Heiberger [mailto:rmh@temple.edu] 
Sent: Friday, December 30, 2011 2:09 PM
To: O'Byrne, Megan M.
Cc: ess-help@r-project.org
Subject: Re: [ESS] SAS do; end; statements



Does indentation do what you want?  Here is some unindented nonsense
code:



do i=1,2;
a=1;
b=2;
do j=1,23;
abcd=3;
def=4;
end;
end;

and the same thing after highlighting it and M-x indent-region


do i=1,2;
    a=1;
    b=2;
    do j=1,23;
        abcd=3;
        def=4;
        end;
    end;

Rich



On Fri, Dec 30, 2011 at 2:53 PM, O'Byrne, Megan M.
<OByrne.Megan@mayo.edu> wrote:

Hi. I'm new to the list. I was wondering if there was anything in the
works to match up do; and end; statements in SAS code? Sometimes I find
it really difficult to figure out where they got mismatched. I love how
it is implemented for R code with a note at the bottom giving you the if
statement after you close it off. Maybe something similar could be done
here?

Thanks!
Megan

Megan O'Byrne | SPA | Biomedical Statistics & Informatics
Mayo Clinic | 200 First Street SW | Rochester, MN 55905 |
www.mayoclinic.org <http://www.mayoclinic.org/> 



       [[alternative HTML version deleted]]

______________________________________________
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help




	[[alternative HTML version deleted]]

