Sublime Forum

Need to manually install pkg, not sure if I'm doing it right

#1

Hi:

I am working in an environment where I unfortunately cannot use the package manager. I am trying to use github.com/purplefish32/sublime … -wordpress with Sublime Text 2, Version 2.02, Build 2221 (latest per the update command). I am on OS X.

I go to the aforementioned github link, download the zip and unzip the contents into “/Users/MYUSERNAME/Library/Application Support/Sublime Text 2/Packages/” so that the contents appear in “/Users/MYUSERNAME/Library/Application Support/Sublime Text 2/Packages/sublime-text-2-wordpress-master/”

I restarted Sublime and am unable to see any of the snippets (cmd + shift + p then type snippet) provided in the snippets subdirectory, nor do I see WordPress in the dropdown in the lower right hand corner. Am I missing something?

Thanks so much.

-MG

0 Likes

#2

That package does not define its own scope. If you look at the snippets files you will see the line:

	<scope>source.php</scope>

That means that the snippets will only show up when the PHP scope is active. So on the lower right corner, you need to have PHP selected to have the snippets show up.

Also its generally good practice to remove “-master” from the directory name since that is something that github added on when you downloaded the ZIP from its website.

0 Likes

#3

THANKS!!!

0 Likes