Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Notepad++ and Stata


From   "Richard Ohrvall" <[email protected]>
To   [email protected]
Subject   Re: st: Notepad++ and Stata
Date   Tue, 10 Jul 2007 08:43:41 +0700

Friedrich,

thank you for your reply. Yes, I have tried to push up the sleep to
200, even 300, but I get the same result with the icon in the toolbar
saying that the script is paused.

The first time I use notepad++ to run the whole program or a selection
it works fine, but the second time I get this problem. But if
re-compile the script, still keeping Stata and notepad++ open, I am
able to send the code a second time, but if I try again without
re-compiling again I run into the same problem. Also, if I, after
running into this problem, close Stata I am able to send the code, it
starts up Stata and run the code.

Anyone who has an idea about what I might do wrong?

David, does the library you mention work with the light version of
Notetab, or do you have to have a more advanced version?

All the best,
Richard

On 7/10/07, David Elliott <[email protected]> wrote:
I have used Notepad++ and enjoy its syntax hilighting and code-folding
features.

However, I keep coming back to Notetab (notetab.com) because the
interactivity with other programs is built into Notetab itself, not
provided by a scripting utility like AutoIt.  I have developed a
library of text-processing functions and interactivity with Stata
based on work started by Ross Odell.

The library can be found at:
http://www3.ns.sympatico.ca/d.elliott/Stata.clb .  This works with
Notetab versions up to 4.95.  I also have a version that works with
Notetab 5+ that I can make available upon request.

For working with do files it has run, do, do-selected and do-to-end
functionality.  It will do a lookup of Stata commands directly from
the editor, and if Stata isn't open, it will start Stata.  You can't
get that functionality from existing AutoIt scripts.  I have included
an experimental execute-mata command that will paste a block of mata
code into Stata and run it.

A list of the text functions and links with Stata is included below:
 _____________________
     About this Library...
 ���������������������
 Do/Run/Test Commands
 ���������������������
run all/selected
do all/selected
do to end
execute mata
 -----------------------
Debug (trace on|off)
Cleanup (programs|logs)
Clear Programs from Memory
Match brackets
Close Log

Strip #review numbers

 Commenting
 ���������������������
Comment selection /**/
Add Comment to block
Uncomment a block

 Quick Reference
 ���������������������
Math Functions
String Functions
Keyword Help

 Programming Constructs
 ���������������������
Ado Header
while
if
for

macro string quotes (`"`'"')
macro plain quotes (`')
macro dir (for debugging)
generate
egen
replace

 Multi-line display cmd

 Utilities
 ���������������������
List files
List do-files + *comments
List ado-files + /*comments*/
List all ado in subdirectories
Strip Log Cmds to File
Format Table for WP
Alternate Table Format
 -----------------------
Stata Website Links

(These last two are required because Notetab needs to store the path
to the executable and the "flavour" of stata in the Windows Registry)
Reset Registry
OnOpen

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

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