Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re:RE: Stata and WinEdt as text editor


From   [email protected]
To   [email protected]
Subject   st: Re:RE: Stata and WinEdt as text editor
Date   Tue, 30 Sep 2003 17:40:32 +0200

Nick Cox wrote:

> [email protected]
>>
>> I am sorry if this is slightly OT. I would like to use my
>> favourite Editor
>> (WinEdt) for do-file editing. After having read
>> http://fmwww.bc.edu/repec/bocode/t/textEditors.html , I
>> wrote the following
>> program and stored it in an ado-file:
>>
>> program winedt
>>        version 8
>>        * discard
>>        winexec "D:\Programme\WinEdt\WinEdt.exe" `*'
>> end

>Nothing OT about this at all.
>
>Try
>
>program winedt
>        version 8
>        * discard
>              if "`*'" != "" local file "`c(pwd)'\`*'"
>        winexec "D:\Programme\WinEdt\WinEdt.exe" `"`file'"'
>end

Dear Nick,

thanks a lot for your suggestion. Two slight modifications were necessary
to make things work.
Here is the code:

program winedt
      version 8
      * discard
      if "`*'" != "" local file "`c(pwd)'/`*'"
      winexec "D:\Programme\WinEdt\WinEdt.exe" `file'
end


>Evidently we need a volunteer to write a WinEdt section
>for this FAQ....


If I'll ever work out how to set everything up properly in WinEdt, I'd be
glad to contribute.
Best wishes,
Eva

____________________________________
Eva Poen
University of St. Gallen
FEW-HSG
Varnb�elstr. 14
CH-9000 St. Gallen
Switzerland
Tel: +41-71-224 23 13
Fax: +41-71-224 23 02
EMail: [email protected]



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index