-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperch.code-snippets
More file actions
65 lines (63 loc) · 2.24 KB
/
perch.code-snippets
File metadata and controls
65 lines (63 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// See https://code.visualstudio.com/docs/editor/userdefinedsnippets for more information.
"PHP": {
"prefix": ["php"],
"body": ["<?php $0?>"],
"description": "PHP Tags"
},
"Perch After": {
"prefix": ["perchafter", "after"],
"body": ["<perch:after>$0</perch:after>"],
"description": "Perch After Tags"
},
"Perch Before": {
"prefix": ["perchbefore", "before"],
"body": ["<perch:before>$0</perch:before>"],
"description": "Perch Before Tags"
},
"Perch Block": {
"prefix": ["perchblock", "block"],
"body": ["<perch:block type=\"$1\" label=\"$2\" icon=\"$3\"> $0</perch:block>"],
"description": "Perch Block Tags"
},
"Perch Blocks": {
"prefix": ["perchblocks", "blocks"],
"body": ["<perch:blocks> $0</perch:blocks>"],
"description": "Perch Blocks Tags"
},
"Perch Collection": {
"prefix": ["perchcollection", "collection", "collect"],
"body": ["perch_collection('$1',[$0]);"],
"description": "Perch Collection"
},
"Perch Content Custom": {
"prefix": ["perchcustom", "custom"],
"body": ["perch_content_custom('$1',[$0]);"],
"description": "Perch Content Custom"
},
"Perch Content": {
"prefix": ["perchcontent", "content"],
"body": ["perch_content('$0');"],
"description": "Perch Content Region"
},
"Perch Layout": {
"prefix": ["perchlayout", "layout"],
"body": ["perch_layout('$0');"],
"description": "Perch Layout"
},
"Perch Repeater": {
"prefix": ["perchrepeater", "repeater"],
"body": ["<perch:repeater id=\"$1\" label=\"$2\" max=\"$3\">$0</perch:repeater>"],
"description": "Perch Repeater Tags"
},
"Perch If": {
"prefix": ["perchif", "if"],
"body": ["<perch:if exists=\"$1\">$0</perch:if>"],
"description": "Perch If Conditional"
},
}