![]() ![]() In the pop-up window, click on ‘Import’ and navigate to the directory where you saved the xml file. In Notepad++, click on ‘Language’ on your toolbar, and select ‘Define your language’.I suggest you download a ready-made syntax file (e.g., this one) and modify it according to your own liking. Set up syntax highlighting: it makes writing do-file more fun and reading it much easier.See this instruction by Keith Kranker for details. In the case where you get your new version of STATA before Huebler gets to update his files (for STATA 12, there was a 2-month lag), then knowing how to create your own ‘rundo’ programs through AutoIt will solve your problem.Follow this instruction by Friedrich Huebler.Set up hot keys to pass code from Notepad++ to STATA (like Ctrl-D in STATA’s editor).Download the latest Notepad++ and install it.Ctrl-G: brings a window for you to type in the line number that you want to go to.Īlt-Left mouse click: column selection instead of row selection.īottom line: if you’re a frequent STATA user but not a hardcore programmer (they have Vim and such), coding with Notepad++ will make you more efficient.This set of functions are extremely helpful for repetitive tasks. ![]() Ctrl-Shft-R, Ctrl-Shft-P: start/stop to record macro (with R) and play recorded macro (with P).Ctrl-Shft-Q, Ctrl-Q: stream comment current line (or selection) with Shft (wich is /* */ in STATA), and block comment/uncomment without Shft (which is *).Ctrl-Shft-U, Ctrl-U: convert current line (or selection) to upper case with Shft, and lower case without Shft.Ctrl-Shft-Up/Down: move the current line (or selection) up/down.Its pop-up window also has advanced find/replace options. Tab, Shft-Tab: add (without Shft) and remove (with Shft) indentation for current line (or selection).Here are some functions that I find useful (see this page for a full list of nice functions and corresponding hot keys): You could also split windows to view two do-files concurrently (right click tab and choose ‘move to other view’), or see one do-file in two split windows (right click tab and choose ‘clone to other view’) to view different sections without scrolling. It also comes with productivity enhancing functions like ‘find and replace’, ‘move current line up/down’, ‘block commenting’, ‘record/play macro’, etc. Notepad++ does everything that the STATA editor does, and it allows customization. How is Notepad++ better than STATA’s default do-file editor? Integrating with LaTeX: Tex mode comes as default with Emacs, and made better with the AUCTeX extension here. But thanks to Bill Rising and his ado-mode, this is made possible and simple. Integrating with Stata: unfortunately Stata does not come as a default Emacs mode. Make sure you follow through the tutorials closely. The most useful chapters for me are 2, 4, and 5. A thorough introduction by Jeremy Zawodny can be found here. Therefore, almost all Emacs help files apply to Aquamacs. Getting started with Aquamacs: is essentially the same as Emacs. Set up Aquamacs: Download and install Aquamacs. If you run into trouble with any of them, or find anything difficult to follow, feel free to get in touch with me via email. This note only offers a few useful links. In short, Aquamacs will be worth your investment (of time) in the long run. And these are just the tip of the iceberg of what Aquamacs is capable of. You could also use it to compare files, which comes in handy if you want to tell apart similar do-files. It is, in my opinion, also the best free TeX editor for both Windows and Mac OS. However, it is great for editing STATA do-files, TeX files, R scripts (which Aquamacs can run internally), etc. ![]() For starters, it is certainly more difficult to learn than Notepad++. This frustration led me to step into the realm of real programmers and start learning to use Aquamacs (based on GNU Emacs but has Mac-looking interface). But in one way or another, they can’t match the same level of user-friendliness of Notepad++ on Windows. Among the above mentioned, I liked TextWrangler the most. As recommended by others, I have tried TextWrangler, Smultron, and TextMate (the trial/free version, of course). I spent a long time trying to find a Notepad++ equivalent for Mac OS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |