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]

st: RE: Copying Stata code with line numbers


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Copying Stata code with line numbers
Date   Wed, 7 Mar 2012 12:12:27 +0000

You could write a short program using -file- to read in each line of the file and write it out again with numeric prefixes. 

The idea of fixed lines is one that word processors resist, as I understand it, so I don't think programs fit easily into word processors, even for adding commentary. Actually, I don't think much fits easily into word processors, but set that aside. 

Nick 
[email protected] 

Charles Vellutini

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.


*
*   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