First and foremost: your snippet, as such, probably won't do much. You'll want to format it in the following way:
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>hisnip</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
<scope>source.php</scope>
</snippet>
To begin creating a new snippet, go to Tools > New Snippet in the menu bar. This will create a new snippet with default options and formatting. You can get a comprehensive list of custom options from the docs.
Once you've created and customized your snippet, go to Sublime Text > Preferences > Browse Packages... and save the snippet in the User directory:
Note that the proper file extension for snippets is .sublime-snippet
. You may also need to restart Sublime Text to load the snippet into use.
Once loaded into the environment, you'll be able to access your snippet by typing hisnip
(or whatever is encapsulated between the <tabTrigger></tabTrigger>
tags) and pressing the Tab key.