Note: This page might be a little out of date as it is from 2006.
Hey Clara,
Here's the website from which you can download the program. It's a
bit sketchy, but you've seen the end result.. it's worth it.
http://notepad-plus.sourceforge.net/uk/site.htm
The details on how to set up Notepad++ to make stata commands look nice can
be found at
http://www.econ.umd.edu/~kranker/code/notepad_to_stata.html<http://www.econ.umd.edu/%7Ekranker/code/notepad_to_stata.html>
It may be a bit difficult to follow so I am summarizing Kranker's summary
here and also attaching two files (rundo.au3 & rundolines.au3) in case you
have trouble creating your own. First, you need a program called AutoIt that
can be downloaded from
http://www.autoitscript.com/autoit3/downloads.php
Then you can edit these two files by changing lines 16 & 18 in rundo.au3
(and the same change in lines 15 & 17 in rundolines.au3). In these lines you
need to write the path of your Stata directory & the type of Stata that you
are using (this appears on the top left of your computer screen when you
start STATA, for instance "Intercooled Stata 9.2". After that you should
rightclick these file & 'compile' them. Place them in your Stata folder if
you like.
After that you should download the userDefineLang.xml on to your Notepad++
directory from Kranker's page above where he says :
I have also posted a copy of a userDefineLang.xml file
here<http://www.econ.umd.edu/%7Ekranker/code/userDefineLang_stata.xml>for
downloading. See
this link <http://notepad-plus.sourceforge.net/uk/download.php> for
instructions for installing. '
To get your copy of Notepad++ to finally work, you need to go it's directory
& open up Shortcuts.xml. Then follow step 5 on Kranker's page. This step
basically tells Notepad++ where to look for rundo & rundolines on your
computer.
After that you should be able to run your code by pressing F8 & if you want
to only run a few selected lines then you could use F9 (hence the names
rundo & rundolines).
Good luck!
Schery
<http://www.econ.umd.edu/%7Ekranker/code/notepad_to_stata.html>