change 'ph' to '<?' and add 2 forms of in line echo

This commit is contained in:
chrisyue 2012-07-25 12:09:06 +08:00
parent 183a430ff0
commit d8c5318448

View File

@ -1,11 +1,14 @@
snippet ph snippet <?
<?php <?php
${1} ${1}
snippet ec snippet ec
echo ${1}; echo ${1};
snippet ecil snippet <?e
<?php echo ${1} ?> <?php echo ${1} ?>
# this is for php5.4
snippet <?=
<?=${1}?>
snippet th snippet th
$this->${1:something} $this->${1:something}
snippet inc snippet inc
@ -125,7 +128,7 @@ snippet doc_h
*/ */
# Interface # Interface
snippet doc_i snippet interface
/** /**
* ${2:undocumented class} * ${2:undocumented class}
* *
@ -135,7 +138,7 @@ snippet doc_i
interface ${1:} interface ${1:}
{ {
${5} ${5}
}$1 }
# class ... # class ...
snippet class snippet class
/** /**
@ -144,10 +147,13 @@ snippet class
class ${2:ClassName} class ${2:ClassName}
{ {
${3} ${3}
${7:public} function ${4:__construct}(${5:argument}) /**
* ${4}
*/
${5:public} function ${6:__construct}(${7:argument})
{ {
${6:// code...} ${8:// code...}
} }${9}
} }
# define(...) # define(...)
snippet def snippet def