'php': {
'filters': 'php, html',
'snippets': {
'php': '',
'php:info': '',
'php:echo': '',
'php:Ns': '',
'php:ns': 'namespace |;',
'php:Class': '',
'php:class': 'class |\n{\n\t\n}',
'php:Function': '',
'php:function': 'function |() {\n\t\n}',
'php:Var': '',
'php:var': '$| = ;',
'php:Object': '',
'php:object': '$| = (object) ;',
'php:New': '',
'php:new': '$| = new ;',
'php:Bool': '',
'php:bool': '$| = FALSE;',
'php:Array': '',
'php:array': '$| = array();',
'php:Array+': '',
'php:array+': '|[] = ;',
'php:Array-': '',
'php:array-': 'unset($|[]);',
//hack $|, seems to replace $i with $1
'php:For': '',
'php:for': 'for ($|i = 0; $|i < |; $|i++) {\n\t\n}',
'php:Foreach': '',
'php:foreach': 'foreach (| as ) {\n\t\n}',
'php:While': '',
'php:while': 'while(|) {\n\t\n}',
'php:Dowhile': '',
'php:dowhile': 'do {\n\t\n} while(|);',
'php:If': '\n\t\n',
'php:if': 'if( | ) {\n\t\n}',
'php:Ifelse': '\n\t\n\n\t\n',
'php:ifelse': 'if( | ) {\n\t\n} else {\n\t\n}',
'php:Switch': '',
'php:switch': 'switch( | ) { \n\tcase :\n\t\t\n\t\tbreak;\n\tdefault :\n\t\t\n\t\tbreak;\n}',
'php:Include': '',
'php:include': 'include \'|\';',
'php:Include1': '',
'php:include1': 'include_once \'|\';'
}
},
//Make sure to add 'php': 1, to: know_syntaxes.
var know_syntaxes = {
'html': 1,
'css': 1,
'xml': 1,
'xml': 1,
'haml': 1
};