Login Register






[Snippet] Sublime Text new class snippet filter_list
Author
Message
[Snippet] Sublime Text new class snippet #1
When you start working on a class there's a few things that should always be present. This snippet sets all of that up for you and all you need to do is to write phpclass and hit Tab.

Code:
<snippet> <content><![CDATA[ namesapce $1\\$2 /** * $3 * * $4 * * @package $1 * @subpackage $2 * @since ${5:1.0} * @author ${6:Your Name <your@email.net>} */ class $7 { /** * $8 * * $9 * * @access ${10:public} * @since ${11:1.0} * @author $6 * @return ${12:void} */ $10 $13function $14($15) { $16 } } ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>phpclass</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.php</scope> </snippet>
"SQL Injection-a-holic"

Twitter | Security Sucks | My Blog

Reply

[Snippet] Sublime Text new class snippet #2
When you start working on a class there's a few things that should always be present. This snippet sets all of that up for you and all you need to do is to write phpclass and hit Tab.

Code:
<snippet> <content><![CDATA[ namesapce $1\\$2 /** * $3 * * $4 * * @package $1 * @subpackage $2 * @since ${5:1.0} * @author ${6:Your Name <your@email.net>} */ class $7 { /** * $8 * * $9 * * @access ${10:public} * @since ${11:1.0} * @author $6 * @return ${12:void} */ $10 $13function $14($15) { $16 } } ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>phpclass</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.php</scope> </snippet>
"SQL Injection-a-holic"

Twitter | Security Sucks | My Blog

Reply