Snippets typically live in a Sublime Text package. They are simplified XML files with the extension sublime-snippet. For instance, you could have a greeting.sublime-snippet inside an Email package.
The structure of a typical snippet is as follows (including the default hints Sublime Text inserts for your convenience):
<![CDATA[Type your snippet here]]>
xyzzy
source.python
My Fancy Snippet
Ref:
http://sublimetext.info/docs/en/extensibility/snippets.html
http://www.hongkiat.com/blog/sublime-code-snippets/
No comments:
Post a Comment