Improved php snippets.
This commit is contained in:
parent
d8605ea946
commit
f607d3bac1
@ -1,14 +1,20 @@
|
||||
snippet function
|
||||
abbr function () {}
|
||||
abbr public function () {}
|
||||
${1:public }function ${2:#:FunctionName}(${3})
|
||||
{
|
||||
${4:TARGET}
|
||||
}
|
||||
|
||||
snippet function_literal
|
||||
options word
|
||||
abbr function () {}
|
||||
function (${1})${2: use } {
|
||||
${3:TARGET}
|
||||
}
|
||||
|
||||
snippet php
|
||||
<?php
|
||||
${1:TARGET}
|
||||
?>
|
||||
|
||||
snippet pecho
|
||||
<?php echo ${1} ?>${0}
|
||||
@ -109,11 +115,11 @@ snippet c
|
||||
* $0
|
||||
*/
|
||||
|
||||
snippet class
|
||||
snippet class_with_constructor
|
||||
/**
|
||||
* ${1}
|
||||
*/
|
||||
class ${2:#:ClassName}${3:#:extends}}
|
||||
class ${2:#:ClassName}${3:#:extends}
|
||||
{
|
||||
$5
|
||||
function ${4:__construct}(${5:#:argument})
|
||||
@ -122,6 +128,11 @@ snippet class
|
||||
}
|
||||
}
|
||||
|
||||
snippet class
|
||||
class ${2:#:ClassName} {
|
||||
${0:TARGET}
|
||||
}
|
||||
|
||||
snippet def
|
||||
${1}defined('${2}')${0}
|
||||
|
||||
@ -147,6 +158,10 @@ snippet if
|
||||
${0:TARGET}
|
||||
}
|
||||
|
||||
snippet var_dump
|
||||
options head
|
||||
var_dump(${0:TARGET});
|
||||
|
||||
snippet echo
|
||||
echo "${1:#:string}"${0};
|
||||
|
||||
|
@ -718,6 +718,9 @@ A: Please try below settings. It defines snipMate function.
|
||||
==============================================================================
|
||||
CHANGELOG *neosnippet-changelog*
|
||||
|
||||
2013-02-03
|
||||
- Improved php snippets.
|
||||
|
||||
2013-02-01
|
||||
- Added vim snippets.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user