You can use Sublime Text to highlight Stata code.
I'm not sure how to run code from Sublime in Stata using ctrl+d.
For highlighting follow this:
Download: Stata-tab.tmbundle.zip
from:
http://bylr.net/3/2010/10/stata-bundle-for-textmate/
Then at command line type:
mv stata.tmLanguage /Users/kathrynvasilaky/Library/Application Support/Sublime Text 2/Packages
Then go to sublime text, open a do file, and at the bottom right hand corner on the extensions tab