Merge pull request #774 from jpgeek/add-html-span

added span, span. and span#
This commit is contained in:
Louis Pilfold 2016-08-26 16:18:11 +01:00 committed by GitHub
commit 5c311010dc

View File

@ -239,6 +239,18 @@ snippet script "XHTML <script>" w
</script> </script>
endsnippet endsnippet
snippet span "<span>" w
<span> ${0:${VISUAL}} </span>
endsnippet
snippet span. "<span> with class" w
<span`!p snip.rv=' class="' if t[1] else ""`${1:name}`!p snip.rv = '"' if t[1] else ""`> ${0:${VISUAL}} </span>
endsnippet
snippet span# "<span> with ID & class" w
<span`!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:${VISUAL}} </span>
endsnippet
snippet style "XHTML <style>" w snippet style "XHTML <style>" w
<style type="text/css" media="screen"> <style type="text/css" media="screen">
${0:${VISUAL}} ${0:${VISUAL}}