-
Notifications
You must be signed in to change notification settings - Fork 4
/
rhtml_html.xml
98 lines (91 loc) · 1.89 KB
/
rhtml_html.xml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version='1.0' encoding='utf-8'?>
<!--
RHTML Html tag snippets
-->
<snippets language="rhtml">
<!-- Generic tag helper -->
<snippet>
<text><![CDATA[<${1:div}>
$0
</${1}]]></text>
<tag><</tag>
<description>HTML: tag</description>
</snippet>
<!--
Basic html tags
-->
<snippet>
<text><![CDATA[<div class="$1">
$0
</div>]]></text>
<tag>divc</tag>
<description>HTML: div with class</description>
</snippet>
<snippet>
<text><![CDATA[<div id="$1">
$0
</div>]]></text>
<tag>divi</tag>
<description>HTML: div with id</description>
</snippet>
<snippet>
<text><![CDATA[<br/>
$0]]></text>
<tag>br</tag>
<description>HTML: line break</description>
<accelerator><![CDATA[<Control>m]]></accelerator>
</snippet>
<!--
Tables
-->
<snippet>
<text><![CDATA[<table class="$1">
<tr>
<th>$0</th>
</tr>
</table>]]></text>
<tag>table</tag>
<description>HTML: table</description>
</snippet>
<snippet>
<text><![CDATA[<td>$0</td>]]></text>
<tag>td</tag>
<description>HTML: table cell</description>
</snippet>
<snippet>
<text><![CDATA[<tr>
$0
</tr>]]></text>
<tag>tr</tag>
<description>HTML: table row</description>
</snippet>
<snippet>
<text><![CDATA[<tr class="<%= cycle( 'odd', 'even' ) %>">
$0
</tr>]]></text>
<tag>troe</tag>
<description>HTML: table row class odd-even</description>
</snippet>
<!--
Lists
-->
<snippet>
<text><![CDATA[<ul class="${1:list}">
$0
</ul>]]></text>
<tag>ulc</tag>
<description>HTML: unordered list with class</description>
</snippet>
<snippet>
<text><![CDATA[<ul>
$0
</ul>]]></text>
<tag>ul</tag>
<description>HTML: unordered list</description>
</snippet>
<snippet>
<text><![CDATA[<li>$1</li>$0]]></text>
<tag>li</tag>
<description>HTML: list item</description>
</snippet>
</snippets>