Text editors that can hook Stata and run programs or portions of code
from the edit window do so by copying the code to a temporary file and
running it like a regular do file. A program that just tries to paste
code straight into the command window is doomed to fail when it
encounters comments.
For example when I chose [do all/selected] in my text editor, Notetab,
what appears in the Stata command window is something like:
-do "C:\DOCUME~1\DAVIDE~1\LOCALS~1\Temp\efo6BF.tmp"- the name of the
temporary do file created.
DCE
*
* 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/