- Fixed html snippets.
This commit is contained in:
parent
ca5fa29574
commit
3c9c731722
@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" FILE: snippets_complete.vim
|
" FILE: snippets_complete.vim
|
||||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||||
" Last Modified: 12 May 2013.
|
" Last Modified: 20 May 2013.
|
||||||
" License: MIT license {{{
|
" License: MIT license {{{
|
||||||
" Permission is hereby granted, free of charge, to any person obtaining
|
" Permission is hereby granted, free of charge, to any person obtaining
|
||||||
" a copy of this software and associated documentation files (the
|
" a copy of this software and associated documentation files (the
|
||||||
|
@ -49,37 +49,51 @@ snippet body
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
snippet h
|
snippet h
|
||||||
|
options word
|
||||||
<h${1:1}>${2}</h$1>${3}
|
<h${1:1}>${2}</h$1>${3}
|
||||||
|
|
||||||
snippet p
|
snippet p
|
||||||
|
options word
|
||||||
<p>${1}</p>${2}
|
<p>${1}</p>${2}
|
||||||
|
|
||||||
snippet br
|
snippet br
|
||||||
|
options word
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
snippet hr
|
snippet hr
|
||||||
|
options word
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
snippet comment
|
snippet comment
|
||||||
|
options word
|
||||||
<!--${1:TARGET}-->${2}
|
<!--${1:TARGET}-->${2}
|
||||||
|
|
||||||
snippet b
|
snippet b
|
||||||
|
options word
|
||||||
<b>${1:TARGET}</b>${2}
|
<b>${1:TARGET}</b>${2}
|
||||||
snippet small
|
snippet small
|
||||||
|
options word
|
||||||
<small>${1:TARGET}</small>${2}
|
<small>${1:TARGET}</small>${2}
|
||||||
snippet strong
|
snippet strong
|
||||||
|
options word
|
||||||
<strong>${1:TARGET}</strong>${2}
|
<strong>${1:TARGET}</strong>${2}
|
||||||
snippet sub
|
snippet sub
|
||||||
|
options word
|
||||||
<sub>${1:TARGET}</sub>${2}
|
<sub>${1:TARGET}</sub>${2}
|
||||||
snippet sup
|
snippet sup
|
||||||
|
options word
|
||||||
<sup>${1:TARGET}</sup>${2}
|
<sup>${1:TARGET}</sup>${2}
|
||||||
snippet ins
|
snippet ins
|
||||||
|
options word
|
||||||
<ins>${1:TARGET}</ins>${2}
|
<ins>${1:TARGET}</ins>${2}
|
||||||
snippet del
|
snippet del
|
||||||
|
options word
|
||||||
<del>${1:TARGET}</del>${2}
|
<del>${1:TARGET}</del>${2}
|
||||||
snippet em
|
snippet em
|
||||||
|
options word
|
||||||
<em>${1:TARGET}</em>${2}
|
<em>${1:TARGET}</em>${2}
|
||||||
snippet bdo
|
snippet bdo
|
||||||
|
options word
|
||||||
<bdo dir="${1:rtl}">${2:TARGET}</bdo>${3}
|
<bdo dir="${1:rtl}">${2:TARGET}</bdo>${3}
|
||||||
snippet pre
|
snippet pre
|
||||||
<pre>
|
<pre>
|
||||||
@ -105,14 +119,19 @@ snippet bgcolor
|
|||||||
bgcolor="${1}"${2}
|
bgcolor="${1}"${2}
|
||||||
|
|
||||||
snippet ahref
|
snippet ahref
|
||||||
|
options word
|
||||||
<a href="${1}">${2:TARGET}</a>${3}
|
<a href="${1}">${2:TARGET}</a>${3}
|
||||||
snippet ahref_blank
|
snippet ahref_blank
|
||||||
|
options word
|
||||||
<a href="${1}" target="_blank">${2:TARGET}</a>${3}
|
<a href="${1}" target="_blank">${2:TARGET}</a>${3}
|
||||||
snippet ahref_parent
|
snippet ahref_parent
|
||||||
|
options word
|
||||||
<a href="${1}" target="_parent">${2:TARGET}</a>${3}
|
<a href="${1}" target="_parent">${2:TARGET}</a>${3}
|
||||||
snippet ahref_top
|
snippet ahref_top
|
||||||
|
options word
|
||||||
<a href="${1}" target="_top">${2:TARGET}</a>${3}
|
<a href="${1}" target="_top">${2:TARGET}</a>${3}
|
||||||
snippet aname
|
snippet aname
|
||||||
|
options word
|
||||||
<a name="${1}">${2:TARGET}</a>${3}
|
<a name="${1}">${2:TARGET}</a>${3}
|
||||||
|
|
||||||
snippet framesetcols
|
snippet framesetcols
|
||||||
@ -125,6 +144,7 @@ snippet framesetrows
|
|||||||
</frameset>${3}
|
</frameset>${3}
|
||||||
|
|
||||||
snippet iframe
|
snippet iframe
|
||||||
|
options word
|
||||||
<iframe src="${1}"></iframe>${2}
|
<iframe src="${1}"></iframe>${2}
|
||||||
snippet table
|
snippet table
|
||||||
<table border="${1}">
|
<table border="${1}">
|
||||||
@ -132,34 +152,47 @@ snippet table
|
|||||||
</table>${3}
|
</table>${3}
|
||||||
|
|
||||||
snippet th
|
snippet th
|
||||||
|
options word
|
||||||
<th>${1:TARGET}</th>${2}
|
<th>${1:TARGET}</th>${2}
|
||||||
|
|
||||||
snippet ulsquare
|
snippet ulsquare
|
||||||
|
options word
|
||||||
<ul type="square">${1:TARGET}</ul>${2}
|
<ul type="square">${1:TARGET}</ul>${2}
|
||||||
snippet ulcircle
|
snippet ulcircle
|
||||||
|
options word
|
||||||
<ul type="circle">${1:TARGET}</ul>${2}
|
<ul type="circle">${1:TARGET}</ul>${2}
|
||||||
snippet uldisc
|
snippet uldisc
|
||||||
|
options word
|
||||||
<ul type="disc">${1:TARGET}</ul>${2}
|
<ul type="disc">${1:TARGET}</ul>${2}
|
||||||
|
|
||||||
snippet ol
|
snippet ol
|
||||||
|
options word
|
||||||
<ol>${1:TARGET}</ol>${2}
|
<ol>${1:TARGET}</ol>${2}
|
||||||
snippet olA
|
snippet olA
|
||||||
|
options word
|
||||||
<ol type="A">${1:TARGET}</ol>${2}
|
<ol type="A">${1:TARGET}</ol>${2}
|
||||||
snippet ola
|
snippet ola
|
||||||
|
options word
|
||||||
<ol type="a">${1:TARGET}</ol>${2}
|
<ol type="a">${1:TARGET}</ol>${2}
|
||||||
snippet olI
|
snippet olI
|
||||||
|
options word
|
||||||
<ol type="I">${1:TARGET}</ol>${2}
|
<ol type="I">${1:TARGET}</ol>${2}
|
||||||
snippet oli
|
snippet oli
|
||||||
|
options word
|
||||||
<ol type="i">${1:TARGET}</ol>${2}
|
<ol type="i">${1:TARGET}</ol>${2}
|
||||||
|
|
||||||
snippet li
|
snippet li
|
||||||
|
options word
|
||||||
<li>${1:TARGET}</li>${2}
|
<li>${1:TARGET}</li>${2}
|
||||||
|
|
||||||
snippet dl
|
snippet dl
|
||||||
|
options word
|
||||||
<dl>${1:TARGET}</dl>${2}
|
<dl>${1:TARGET}</dl>${2}
|
||||||
snippet dt
|
snippet dt
|
||||||
|
options word
|
||||||
<dt>${1:TARGET}</dt>${2}
|
<dt>${1:TARGET}</dt>${2}
|
||||||
snippet dd
|
snippet dd
|
||||||
|
options word
|
||||||
<dd>${1:TARGET}</dd>${2}
|
<dd>${1:TARGET}</dd>${2}
|
||||||
|
|
||||||
snippet form
|
snippet form
|
||||||
@ -168,12 +201,16 @@ snippet form
|
|||||||
</form>${2}
|
</form>${2}
|
||||||
|
|
||||||
snippet inputtext
|
snippet inputtext
|
||||||
|
options word
|
||||||
<input type="text" name="${1:user}">${2}
|
<input type="text" name="${1:user}">${2}
|
||||||
snippet inputpassword
|
snippet inputpassword
|
||||||
|
options word
|
||||||
<input type="password" name="${1:password}">${2}
|
<input type="password" name="${1:password}">${2}
|
||||||
snippet inputradio
|
snippet inputradio
|
||||||
|
options word
|
||||||
<input type="radio" name="${1}" value="value">${2}
|
<input type="radio" name="${1}" value="value">${2}
|
||||||
snippet inputcheckbox
|
snippet inputcheckbox
|
||||||
|
options word
|
||||||
<input type="checkbox" name="${1}">${2}
|
<input type="checkbox" name="${1}">${2}
|
||||||
|
|
||||||
snippet textarea
|
snippet textarea
|
||||||
@ -183,9 +220,11 @@ snippet textarea
|
|||||||
${4}
|
${4}
|
||||||
|
|
||||||
snippet button
|
snippet button
|
||||||
|
options word
|
||||||
<button>${1:TARGET}</button>${2}
|
<button>${1:TARGET}</button>${2}
|
||||||
|
|
||||||
snippet select
|
snippet select
|
||||||
|
options word
|
||||||
<select>${1:TARGET}</select>${2}
|
<select>${1:TARGET}</select>${2}
|
||||||
|
|
||||||
snippet optgroup
|
snippet optgroup
|
||||||
@ -193,40 +232,53 @@ snippet optgroup
|
|||||||
${2:TARGET}
|
${2:TARGET}
|
||||||
<optgroup>${3}
|
<optgroup>${3}
|
||||||
snippet option
|
snippet option
|
||||||
|
options word
|
||||||
<option value="${1}">${2:TARGET}</option>${3}
|
<option value="${1}">${2:TARGET}</option>${3}
|
||||||
|
|
||||||
snippet label
|
snippet label
|
||||||
|
options word
|
||||||
<label>${1}: <input type="${2:TARGET}" /><label>${3}
|
<label>${1}: <input type="${2:TARGET}" /><label>${3}
|
||||||
snippet labelfor
|
snippet labelfor
|
||||||
|
options word
|
||||||
<label for="${1}:id">${2:TARGET}</label>${3}
|
<label for="${1}:id">${2:TARGET}</label>${3}
|
||||||
|
|
||||||
snippet fiedset
|
snippet fiedset
|
||||||
|
options word
|
||||||
<fiedlset>${1:TARGET}</fiedset>${2}
|
<fiedlset>${1:TARGET}</fiedset>${2}
|
||||||
|
|
||||||
snippet legend
|
snippet legend
|
||||||
|
options word
|
||||||
<legend>${1:TARGET}</legend>${2}
|
<legend>${1:TARGET}</legend>${2}
|
||||||
|
|
||||||
snippet id
|
snippet id
|
||||||
|
options word
|
||||||
id="${1}"${2}
|
id="${1}"${2}
|
||||||
|
|
||||||
snippet class
|
snippet class
|
||||||
|
options word
|
||||||
class="${1}"${2}
|
class="${1}"${2}
|
||||||
|
|
||||||
snippet pclass
|
snippet pclass
|
||||||
|
options word
|
||||||
<p class="${1}">${2:TARGET}</p>${3}
|
<p class="${1}">${2:TARGET}</p>${3}
|
||||||
|
|
||||||
snippet pid
|
snippet pid
|
||||||
|
options word
|
||||||
<p id="${1}">${2:TARGET}</p>${3}
|
<p id="${1}">${2:TARGET}</p>${3}
|
||||||
|
|
||||||
snippet divid
|
snippet divid
|
||||||
|
options word
|
||||||
<div id="${1}">${2:TARGET}</div>${3}
|
<div id="${1}">${2:TARGET}</div>${3}
|
||||||
|
|
||||||
snippet divclass
|
snippet divclass
|
||||||
|
options word
|
||||||
<div class="${1}">${2:TARGET}</div>${3}
|
<div class="${1}">${2:TARGET}</div>${3}
|
||||||
|
|
||||||
snippet img
|
snippet img
|
||||||
|
options word
|
||||||
<img src="${1}">${2}
|
<img src="${1}">${2}
|
||||||
|
|
||||||
snippet div
|
snippet div
|
||||||
|
options word
|
||||||
<div ${1:id="${2:someid\}"}>${3:TARGET}</div>${4}
|
<div ${1:id="${2:someid\}"}>${3:TARGET}</div>${4}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
include html
|
include html
|
||||||
|
|
||||||
snippet xhtml
|
snippet xhtml
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
${1:TARGET}
|
${1:TARGET}
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user