A collection of Silk snippets for Sublime Text 2.
Just grab the download, or clone, then put the snippets in your 'packages/User' directory.
Alternatively use Package Control.
Type the snippet tabTrigger/shortcode to complete the snippet.
The snippets are listed below in no particular order. The '$1' indicates first editable section of the snippet. Some snippets have been set up so that pressing Tab jumps the caret to the next predefined editable section.
If you want to contribute just fork this repository and submit a pull request, or fire your idea over to our mailing list. The more generic and reusable your contributions/ideas the better.
skc
<div id="silk-component:${1}">${2}</div>
skv
<html>
<body>
${1}
</body>
</html>
skt
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>${1}</title>
</head>
<body>
<!-- some header / nav placeholder -->
<div id="silk-view">
<!-- Silk view content goes here -->
</div>
<!-- some footer placeholder -->
</body>
</html>