Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Copying Stata code with line numbers


From   Partho Sarkar <[email protected]>
To   [email protected]
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
<[email protected]> wrote:
> Thanks Partho. Interesting suggestion. Apart from the line numbers, do you see other benefits over Stata's own editor?
>
> -----Message d'origine-----
> De : [email protected] [mailto:[email protected]] De la part de Partho Sarkar
> Envoyé : mercredi 7 mars 2012 15:23
> À : [email protected]
> 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 <[email protected]> To  "[email protected]" <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index