Home Download Buy Blog Forum Support

Stata syntax

Stata syntax

Postby anydroid on Wed Jan 11, 2012 5:57 pm

How do I enable syntax highlighting for Stata?
anydroid
 
Posts: 2
Joined: Wed Jan 11, 2012 5:55 pm

Re: Stata syntax

Postby anydroid on Thu Jan 12, 2012 10:36 pm

Obtain textmate package Stata-tab.tmbundle.zip

cd Stata-tab.tmbundle
mv stata.tmLanguage ~/.config/sublime-text-2/Packages/User
anydroid
 
Posts: 2
Joined: Wed Jan 11, 2012 5:55 pm

Re: Stata syntax

Postby katthegreat on Mon Mar 19, 2012 8:39 pm

Is there any more information on how to hook sublime text to STATA?
I tried the below code on my MAC.

1. downloaded Stata-tab.tmbundle.zip
On my command line:
2. cd Stata-tab.tmbundle
But....
3. mv stata.tmLanguage ~/.config/sublime-text-2/Packages/User
mv does not work for me

Any suggestions?
katthegreat
 
Posts: 2
Joined: Mon Mar 19, 2012 8:36 pm

Re: Stata syntax

Postby nick. on Mon Mar 19, 2012 8:46 pm

Does Stata appear as a language option in the status bar?
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Stata syntax

Postby katthegreat on Tue Mar 20, 2012 2:53 pm

No it does not :(
katthegreat
 
Posts: 2
Joined: Mon Mar 19, 2012 8:36 pm

Re: Stata syntax

Postby nick. on Tue Mar 20, 2012 4:53 pm

Looks like it has to be in a folder of its own. Try this:
Code: Select all
mkdir ~/.config/sublime-text-2/Packages/Stata
mv ~/.config/sublime-text-2/Packages/User/stata.tmLanguage ~/.config/sublime-text-2/Packages/Stata
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Stata syntax

Postby quarnster on Tue Mar 20, 2012 6:09 pm

The Mac path for sublime packages is ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/, not ~/.config/sublime-text-2/Packages/.
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: Stata syntax

Postby rpowers on Fri Jul 27, 2012 2:51 pm

I've just released a Stata package for Sublime based on the Stata textmate bundle. It includes Syntax highlighting and a build system. Check it out here: https://github.com/rpowers/sublime_stata

Ryan
rpowers
 
Posts: 3
Joined: Fri Jul 27, 2012 2:47 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 21 guests