Improve XML attribute snippet, add XML comment snippet

This commit is contained in:
Kenneth Benzie 2016-10-28 10:35:07 +09:00
parent 4297e753eb
commit e4a8ba61b1

View File

@ -3,7 +3,7 @@ snippet t "XML inline tag" i
endsnippet endsnippet
snippet a "XML attribute" i snippet a "XML attribute" i
${1:attrib}="${0:value}" ${1:attrib}="${2:value}"$0
endsnippet endsnippet
snippet < "XML inline tag" i snippet < "XML inline tag" i
@ -15,3 +15,7 @@ snippet tb "XML inline tag" i
${2:content} ${2:content}
</${1/([\w:._-]+).*/$1/}> </${1/([\w:._-]+).*/$1/}>
endsnippet endsnippet
snippet <! "XML comment" i
<!-- $1 -->$0
endsnippet