Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Stata Editor for Mac with Code Folding


From   June Bridge <junebridge25@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Stata Editor for Mac with Code Folding
Date   Thu, 11 Apr 2013 14:10:11 -0400

Thanks! I've been trying TextMate and I like it a lot so far.

One question - I've noticed that TextMate doesn't seem to recognize all the different types of comments in stata - it gets comments that are enclosed in /* .. */ just fine, as well as lines that start with *, but it doesn't properly color comments that start with "//". Also, it thinks that any time there is an "*" that it's a comment, when sometimes it's just a multiplication sign (it should only be considered a comment if it's at the beginning of the line). Is there a way to edit the Stata bundle so that it properly recognizes comments?

Thanks,
June


On 4/10/13 10:20 AM, Phil Schumm wrote:
On Apr 10, 2013, at 9:43 AM, Federico Belotti wrote:
You can use Textmate. It allows code-folding and a number of other useful things.

I would strongly second that.  TextMate allows for manual-code folding -- at the moment, we haven't incorporated any automatic folding into the Stata/Mata mode (e.g., automatically-defined folding for if/then/else blocks, function and class defs, loops, etc.).  However, feel free to suggest enhancements (the more specific the suggestion is, the better) or pull requests!


-- Phil

P.S. You want to be using the TextMate 2.0 alpha version, available for download from http://macromates.com.  Although labeled "alpha", 2.0 is plenty stable for real work (I've been using it for ~6-8 hrs/day for the last year), and has considerably more features and polish than 1.5.  Most importantly, however, we no longer support the Stata bundle for 1.5.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index