Skip to content

Commit

Permalink
Update snippets.code-snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianWassermann committed Jun 7, 2021
1 parent 5bca6a7 commit cdacf2b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions snippets/snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Php Tag Completion": {
"php tag completion": {
"prefix": "<?php",
"body": [
"<?php",
Expand All @@ -8,14 +8,29 @@
],
"description": "Php Tag Auto Complete"
},
"Html Tag Completion": {
"html tag completion": {
"prefix": "<",
"body": "<${1:tagName}></${1}>",
"description": "Html Tag Completion"
},
"Variable Completion": {
"variable completion": {
"prefix": "$",
"body": "$${1:variableName} = ${2:value};${0}",
"description": "Variable Completion"
},
"simple table echo foreach": {
"prefix": "!table",
"body": [
"echo '<table>'",
"foreach ($${1:iterable_expression} as $${2:value}) {",
" echo '<tr>'",
" foreach ($${3:iterable_expression} as $${4:value}) {",
" echo '<td>'.$${4}.'</td>'",
" }",
" echo '</tr>'",
"}",
"echo '</table>'"
],
"description": "generates a simple table for php. use the foreach to generate a dynamic table. tip: use it in php tag."
}
}

0 comments on commit cdacf2b

Please sign in to comment.