The reason that I created the Stata language module for BBEdit/TextWrangler was that all the references to a set of tools provided by Ben Hulley, including a language module and several AppleScripts, pointed to a nonexistent .mac page. Courtesy of Steven Samuels, however, I have obtained a copy of the original Stata scripts[*].
The scripts include:
- Do file, which sends your entire .do file to Stata
- Do selection, which sends the selected code to Stata (editorial: very nice)
- Insert ruler, which inserts an 80-character ruler (editorial: perfect for writing pretty code, and adaptable to other languages. Also very nice)
- Multiple line slashes, which adds “///” to the end of your line, inserts a carriage return, and indents the subsequent line
To install, unzip the folder into
~/Library/Application Support/TextWrangler/Scripts
replacing TextWrangler with BBEdit if you’re so inclined.
Note: The scripts were originally written for BBEdit, so if you only have TextWrangler installed, the first time you use each script, a dialog will appear asking you to choose an application. Choose TextWrangler. Doing so will rewrite the script so that it will work with TextWrangler.
[*] I am posting these with no permission whatsoever, but I don’t think anyone will complain. Also, for the record, I did not create these, so if you love them, please don’t credit me. And if you hate them, please don’t blame me.