[ESS] ESS + Stata: Getting indentation right in Stata-mode editor

Frede Aakmann Tøgersen |rtog @end|ng |rom ve@t@@@com
Thu Jan 22 17:52:00 CET 2015


Hi Aaron

Perhaps the following thread may be of help to you. There could be other threads on ess-help relevant for your question. 

https://stat.ethz.ch/pipermail/ess-help/2014-May/009939.html

Yours sincerely / Med venlig hilsen


Frede Aakmann Tøgersen
Specialist, M.Sc., Ph.D.
Plant Performance & Modeling

Technology & Service Solutions
T +45 9730 5135
M +45 2547 6050
frtog using vestas.com
http://www.vestas.com

Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sender. 


> -----Original Message-----
> From: ESS-help [mailto:ess-help-bounces using r-project.org] On Behalf Of Aaron
> Ponce
> Sent: 22. januar 2015 16:59
> To: ess-help using r-project.org
> Subject: [ESS] ESS + Stata: Getting indentation right in Stata-mode editor
> 
> I've noticed that indentation in Stata-mode doesn't quite work right in
> ESS. For comments /* */ at the end of lines or after the continuation
> sequence /// subsequent lines indent indefinitely. For code of more than 2
> lines, this can get very nested looking (see below):
> 
> recode educ 0 = 1 ///
>     5 = 2 ///
>         10 = 3 ///
>             15 = 4 ///
>                 20 = 5 ///
>                     25 = 6
> 
> Is there a workaround for this? I *really* like running Stata through ESS
> and would love to use it this way as much as I can.
> 
> For now, I've been editing in Bill Rising's ado mode and sending to Stata
> through ESS. The drawback to this approach is that every time I open a new
> do file (which I do often to edit single lines here and there for a big
> project), I have to indicate which dialect of ESS I am using in the buffer
> line.
> 
> Thanks!
> 
> AP
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help




More information about the ESS-help mailing list