Skip to content

Instantly share code, notes, and snippets.

@StefanoRausch
Created February 14, 2013 09:14
Show Gist options
  • Save StefanoRausch/4951492 to your computer and use it in GitHub Desktop.
Save StefanoRausch/4951492 to your computer and use it in GitHub Desktop.
PHP : template file
<snippet>
<content><![CDATA[
/**
* ${1:file-name}.php
*
* PHP version 5
*
* LICENSE : MIT - Copyright (C) ${2:2013} ${3:Stefano F. Rausch < [email protected] >}
*
* package : ${4:KitFramework}${5:/${6:sub-package}}
* author : Stefano F. Rausch < [email protected] >
* license : http://opensource.org/licenses/MIT
* version : ${7:1.0.0}${8:build}
* link : ${9:http://stefano.rausch-e.net}
* since : File available since Release ${10:1.0.0}
*
* Semantic versioning according to http://semver.org
*/
$0
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>template-file</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
<!-- Optional: Set a description to override the snippet's name -->
<description>php template file</description>
</snippet>
@StefanoRausch
Copy link
Author

The PHP start ( and end ) tag must be inserted first in a new document before Sublime can apply the snippet, due to the scope selector being a sub-set of HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment