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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Copying Stata code with line numbers


From   Partho Sarkar <partho.ss+lists@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Copying Stata code with line numbers
Date   Thu, 8 Mar 2012 10:40:41 +0530

Well Charles, firstly I don't know what the Stata 12 editor is like,
so some of what I say below may no longer apply.  But I use Stata 11,
and switched to Notepad++ recently, after hearing about it for a long
time from experienced Stata users, on this forum and elsewhere.  For
me, the switch has made do file editing dramatically  easier.  For a
list of some of the gains, see this blog post by Mitch Abdon
http://statadaily.wordpress.com  Just to mention some of the added
features (the quotes are from above blog):

1. "Matching pairs of parentheses or braces are highlighted. I like
this the most because it makes it easier to look for missing pairs".

2. "I now have a “Word wrap” option. This minimizes the use of “///”
or other delimiters."

3.  Advanced search & replace, including regular expressions & wildcards.

4.  A battery of free plugins for, among other things, even more
advanced search (across files, for example).

As a matter of fact, I have the impression think very few regular
Stata programmers use the built-in editor (at least this was so till
Stata 11).  There is a very good FAQ/ review of alternative Stata do
file editors by Nick Cox (don't have the reference handy, but I am
sure you can find it quite easily)

Hope this helps
Partho


On Wed, Mar 7, 2012 at 10:46 PM, Charles Vellutini
<charles.vellutini@ecopa.com> wrote:
> Thanks Partho. Interesting suggestion. Apart from the line numbers, do you see other benefits over Stata's own editor?
>
> -----Message d'origine-----
> De : owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] De la part de Partho Sarkar
> Envoyé : mercredi 7 mars 2012 15:23
> À : statalist@hsphsun2.harvard.edu
> Objet : Re: st: Copying Stata code with line numbers
>
> Also, you could consider using Notepad++  as your do file editor (see for e.g.,  http://enoriver.net/index.php/2008/09/10/edit-stata-do-files-with-notepad-2/
>  ) with the  TextFX  plugin, which lets you add line numbers before every line.  For e.g., see  http://www.ruby-forum.com/topic/124443
>
> Hope this helps.
> P. S.
>
> From  Charles Vellutini <charles.vellutini@ecopa.com> To  "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> Subject  st: Copying Stata code with line numbers Date  Wed, 7 Mar 2012 04:01:26 -0800 Dear Statalisters,
>
> Would anyone know how to copy the content of an do-file (from Stata's standard do-file editor) and paste it in a word processor *with the line numbers*?
>
> We use Stata 12.1 on a Windows system.
>
> Thanks in advance,
>
> Charles
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/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/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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