Login Register






[Snippet] Sublime Text class method snippet filter_list
Author
Message
[Snippet] Sublime Text class method snippet #1
If you write objective oriented PHP then this snippet becomes really handy. All you do is type "cmeth" and hit Tab and you get a new method with docblock etc.

Code:
<snippet> <content><![CDATA[ /** * $1 * * $2 * * @access ${3:public} * @since ${4:1.0} * @author ${5:Your Name <your@email.net>} * @return ${6:void} */ $3 $7function $8($9) { $10 } ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>cmeth</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 class method snippet #2
If you write objective oriented PHP then this snippet becomes really handy. All you do is type "cmeth" and hit Tab and you get a new method with docblock etc.

Code:
<snippet> <content><![CDATA[ /** * $1 * * $2 * * @access ${3:public} * @since ${4:1.0} * @author ${5:Your Name <your@email.net>} * @return ${6:void} */ $3 $7function $8($9) { $10 } ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>cmeth</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