Sublime Forum

Stata syntax

#1

How do I enable syntax highlighting for Stata?

0 Likes

#2

Obtain textmate package Stata-tab.tmbundle.zip

cd Stata-tab.tmbundle
mv stata.tmLanguage ~/.config/sublime-text-2/Packages/User

0 Likes

#3

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?

0 Likes

#4

Does Stata appear as a language option in the status bar?

0 Likes

#5

No it does not :frowning:

0 Likes

#6

Looks like it has to be in a folder of its own. Try this:

mkdir ~/.config/sublime-text-2/Packages/Stata
mv ~/.config/sublime-text-2/Packages/User/stata.tmLanguage ~/.config/sublime-text-2/Packages/Stata
0 Likes

#7

The Mac path for sublime packages is ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/, not ~/.config/sublime-text-2/Packages/.

0 Likes

#8

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: github.com/rpowers/sublime_stata

Ryan

0 Likes

#9

There’s a plugin available on Package Control called “Stata Enhanced”.

code.tutsplus.com/courses/perfe … ge-control

0 Likes