Merge pull request #762 from chaucerbao/master
By default, use VISUAL selection for HTML tag content
This commit is contained in:
commit
e14e270075
@ -127,7 +127,6 @@ endsnippet
|
|||||||
#############
|
#############
|
||||||
snippet input "Input with Label" w
|
snippet input "Input with Label" w
|
||||||
<label for="${2:${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}}">$1</label><input type="${3:text/submit/hidden/button}" name="${4:$2}" value="$5"${6: id="${7:$2}"}`!p x(snip)`>
|
<label for="${2:${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}}">$1</label><input type="${3:text/submit/hidden/button}" name="${4:$2}" value="$5"${6: id="${7:$2}"}`!p x(snip)`>
|
||||||
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet input "XHTML <input>" w
|
snippet input "XHTML <input>" w
|
||||||
@ -141,9 +140,7 @@ endsnippet
|
|||||||
|
|
||||||
snippet select "Select Box" w
|
snippet select "Select Box" w
|
||||||
<select name="${1:some_name}" id="${2:$1}"${3:${4: multiple}${5: onchange="${6:}"}${7: size="${8:1}"}}>
|
<select name="${1:some_name}" id="${2:$1}"${3:${4: multiple}${5: onchange="${6:}"}${7: size="${8:1}"}}>
|
||||||
<option${9: value="${10:option1}"}>${11:$10}</option>
|
${0:${VISUAL}}
|
||||||
<option${12: value="${13:option2}"}>${14:$13}</option>${15:}
|
|
||||||
$0
|
|
||||||
</select>
|
</select>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -162,25 +159,25 @@ endsnippet
|
|||||||
|
|
||||||
snippet body "<body>"
|
snippet body "<body>"
|
||||||
<body>
|
<body>
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</body>
|
</body>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet div "<div>" w
|
snippet div "<div>" w
|
||||||
<div>
|
<div>
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</div>
|
</div>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet div. "<div> with class" w
|
snippet div. "<div> with class" w
|
||||||
<div`!p snip.rv=' class="' if t[1] else ""`${1:name}`!p snip.rv = '"' if t[1] else ""`>
|
<div`!p snip.rv=' class="' if t[1] else ""`${1:name}`!p snip.rv = '"' if t[1] else ""`>
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</div>
|
</div>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet div# "<div> with ID & class" w
|
snippet div# "<div> with ID & class" w
|
||||||
<div`!p snip.rv=' id="' if t[1] else ""`${1:name}`!p snip.rv = '"' if t[1] else ""``!p snip.rv=' class="' if t[2] else ""`${2:name}`!p snip.rv = '"' if t[2] else ""`>
|
<div`!p snip.rv=' id="' if t[1] else ""`${1:name}`!p snip.rv = '"' if t[1] else ""``!p snip.rv=' class="' if t[2] else ""`${2:name}`!p snip.rv = '"' if t[2] else ""`>
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</div>
|
</div>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -188,33 +185,39 @@ snippet form "XHTML <form>" w
|
|||||||
<form action="${1:`!p
|
<form action="${1:`!p
|
||||||
snip.rv = (snip.basename or 'unnamed') + '_submit'
|
snip.rv = (snip.basename or 'unnamed') + '_submit'
|
||||||
`}" method="${2:get}" accept-charset="utf-8">
|
`}" method="${2:get}" accept-charset="utf-8">
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
|
|
||||||
<p><input type="submit" value="Continue →"`!p x(snip)`></p>
|
|
||||||
</form>
|
</form>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet h1 "XHTML <h1>" w
|
snippet h1 "XHTML <h1>" w
|
||||||
<h1>$0</h1>
|
<h1>${0:${VISUAL}}</h1>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet h2 "XHTML <h2>" w
|
snippet h2 "XHTML <h2>" w
|
||||||
<h2>$0</h2>
|
<h2>${0:${VISUAL}}</h2>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet h3 "XHTML <h3>" w
|
snippet h3 "XHTML <h3>" w
|
||||||
<h3>$0</h3>
|
<h3>${0:${VISUAL}}</h3>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet h4 "XHTML <h4>" w
|
snippet h4 "XHTML <h4>" w
|
||||||
<h4>$0</h4>
|
<h4>${0:${VISUAL}}</h4>
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet h5 "XHTML <h5>" w
|
||||||
|
<h5>${0:${VISUAL}}</h5>
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet h6 "XHTML <h6>" w
|
||||||
|
<h6>${0:${VISUAL}}</h6>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet head "XHTML <head>"
|
snippet head "XHTML <head>"
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>${1:`!p snip.rv = snip.basename or "Page Title"`}</title>
|
<title>${1:`!p snip.rv = snip.basename or "Page Title"`}</title>
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</head>
|
</head>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -232,20 +235,19 @@ endsnippet
|
|||||||
|
|
||||||
snippet script "XHTML <script>" w
|
snippet script "XHTML <script>" w
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</script>
|
</script>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet style "XHTML <style>" w
|
snippet style "XHTML <style>" w
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</style>
|
</style>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet table "XHTML <table>" w
|
snippet table "XHTML <table>" w
|
||||||
<table border="${1:0}"${2: cellspacing="${3:5}" cellpadding="${4:5}"}>
|
<table border="${1:0}"${2: cellspacing="${3:5}" cellpadding="${4:5}"}>
|
||||||
<tr><th>${5:Header}</th></tr>
|
${0:${VISUAL}}
|
||||||
<tr><td>${0:Data}</td></tr>
|
|
||||||
</table>
|
</table>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -254,29 +256,29 @@ snippet a "Link" w
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet p "paragraph" w
|
snippet p "paragraph" w
|
||||||
<p>$0</p>
|
<p>${0:${VISUAL}}</p>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet li "list item" w
|
snippet li "list item" w
|
||||||
<li>$0</li>
|
<li>${0:${VISUAL}}</li>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet ul "unordered list" w
|
snippet ul "unordered list" w
|
||||||
<ul>
|
<ul>
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</ul>
|
</ul>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet td "table cell" w
|
snippet td "table cell" w
|
||||||
<td>$0</td>
|
<td>${0:${VISUAL}}</td>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet th "table header" w
|
snippet th "table header" w
|
||||||
<th>$0</th>
|
<th>${0:${VISUAL}}</th>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet tr "table row" w
|
snippet tr "table row" w
|
||||||
<tr>$0</tr>
|
<tr>${0:${VISUAL}}</tr>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet title "XHTML <title>" w
|
snippet title "XHTML <title>" w
|
||||||
@ -286,7 +288,7 @@ endsnippet
|
|||||||
snippet fieldset "Fieldset" w
|
snippet fieldset "Fieldset" w
|
||||||
<fieldset id="${1/[\w\d]+|( )/(?1:_:\L$0\E)/g}" ${2:class="${3:}"}>
|
<fieldset id="${1/[\w\d]+|( )/(?1:_:\L$0\E)/g}" ${2:class="${3:}"}>
|
||||||
<legend>$1</legend>
|
<legend>$1</legend>
|
||||||
$0
|
${0:${VISUAL}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user