-
Notifications
You must be signed in to change notification settings - Fork 0
/
html.snippets
73 lines (62 loc) · 1.04 KB
/
html.snippets
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
66
67
68
69
70
71
72
73
snippet c= "css class"
class="${1}"$0
endsnippet
snippet i= "css class"
id="${1}"$0
endsnippet
snippet p "paragraph"
<p>
${VISUAL}$0
</p>
endsnippet
snippet d "div"
<div>
${VISUAL}$0
</div>
endsnippet
snippet di "div"
<div id="${1}">
${VISUAL}$0
</div>
endsnippet
snippet dc "div"
<div class="${1}">
${VISUAL}$0
</div>
endsnippet
snippet li "<li> tag"
<li>
${VISUAL}${1}
</li>$0
endsnippet
snippet html "html template"
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>${1}</title>
<meta name="description" content="${2}">
<meta name="author" content="${3}">
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
${VISUAL}$0
</body>
</html>
endsnippet
snippet script "script"
<script src="${1:js/main.js}"></script>$0
endsnippet
snippet link "link stylsheet"
<link rel="stylesheet" href="${1}" />$0
endsnippet
snippet iscript "inline script"
<script>
${VISUAL}$0
</script>
endsnippet
snippet "<((\w+).*)>" "Generic Tag" r
<`!p snip.rv = match.group(1)`>
${VISUAL}${1}
</`!p snip.rv = match.group(2)`>$0
endsnippet