mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 09:54:17 +00:00
Last commit before tagging and releasing
This commit is contained in:
0
extras/imported/html-mode/.yas-make-groups
Normal file
0
extras/imported/html-mode/.yas-make-groups
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: !
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: IE Conditional Comment: Internet Explorer 5.0 only
|
||||
# --
|
||||
<!--[if IE 5.0]>${1:${TM_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 5.0 only }}<![endif]-->$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: !
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: IE Conditional Comment: Internet Explorer 5.5 only
|
||||
# --
|
||||
<!--[if IE 5.5000]>${1:${TM_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 5.5 only }}<![endif]-->$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: !
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: IE Conditional Comment: Internet Explorer 5.x
|
||||
# --
|
||||
<!--[if lt IE 6]>${1:${TM_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 5.x }}<![endif]-->$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: !
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: IE Conditional Comment: Internet Explorer 6 and below
|
||||
# --
|
||||
<!--[if lte IE 6]>${1:${TM_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 6 and below }}<![endif]-->$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: !
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: IE Conditional Comment: Internet Explorer 6 only
|
||||
# --
|
||||
<!--[if IE 6]>${1:${TM_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 6 only }}<![endif]-->$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: !
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: IE Conditional Comment: Internet Explorer 7 and above
|
||||
# --
|
||||
<!--[if gte IE 7]>${1:${TM_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 7 and above }}<![endif]-->$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: !
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: IE Conditional Comment: Internet Explorer
|
||||
# --
|
||||
<!--[if IE]>${1:${TM_SELECTED_TEXT: IE Conditional Comment: Internet Explorer }}<![endif]-->$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: !
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: IE Conditional Comment: NOT Internet Explorer
|
||||
# --
|
||||
<!--[if !IE]><!-->${1:${TM_SELECTED_TEXT: IE Conditional Comment: NOT Internet Explorer }}<!-- <![endif]-->$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: arrow
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: →
|
||||
# --
|
||||
→
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: backspace
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⌫
|
||||
# --
|
||||
⌫
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: backtab
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⇤
|
||||
# --
|
||||
⇤
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: command
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⌘
|
||||
# --
|
||||
⌘
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: control
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⌃
|
||||
# --
|
||||
⌃
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: delete
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⌦
|
||||
# --
|
||||
⌦
|
||||
6
extras/imported/html-mode/Entities/Down (down).yasnippet
Normal file
6
extras/imported/html-mode/Entities/Down (down).yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: down
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ↓
|
||||
# --
|
||||
↓
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: enter
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⌅
|
||||
# --
|
||||
⌅
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: escape
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⎋
|
||||
# --
|
||||
⎋
|
||||
6
extras/imported/html-mode/Entities/Left (left).yasnippet
Normal file
6
extras/imported/html-mode/Entities/Left (left).yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: left
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ←
|
||||
# --
|
||||
←
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: option
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⌥
|
||||
# --
|
||||
⌥
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: return
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ↩
|
||||
# --
|
||||
↩
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: right
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: →
|
||||
# --
|
||||
→
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: shift
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⇧
|
||||
# --
|
||||
⇧
|
||||
6
extras/imported/html-mode/Entities/Tab (tab).yasnippet
Normal file
6
extras/imported/html-mode/Entities/Tab (tab).yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: tab
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ⇥
|
||||
# --
|
||||
⇥
|
||||
6
extras/imported/html-mode/Entities/Up (up).yasnippet
Normal file
6
extras/imported/html-mode/Entities/Up (up).yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: up
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ↑
|
||||
# --
|
||||
↑
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Non-Breaking Space
|
||||
# binding: "~ "
|
||||
# --
|
||||
|
||||
6
extras/imported/html-mode/Format/Emphasize.yasnippet
Normal file
6
extras/imported/html-mode/Format/Emphasize.yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Emphasize
|
||||
# binding: "@i"
|
||||
# --
|
||||
${0:${TM_SELECTED_TEXT/\A<em>(.*)<\/em>\z|.*/(?1:$1:<em>$0<\/em>)/m}}
|
||||
6
extras/imported/html-mode/Format/Strong.yasnippet
Normal file
6
extras/imported/html-mode/Format/Strong.yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Strong
|
||||
# binding: "@b"
|
||||
# --
|
||||
${0:${TM_SELECTED_TEXT/\A<strong>(.*)<\/strong>\z|.*/(?1:$1:<strong>$0<\/strong>)/m}}
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: doctype
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: HTML — 4.01 Strict
|
||||
# --
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: doctype
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: XHTML — 1.0 Frameset
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: doctype
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: XHTML — 1.0 Strict
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: doctype
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: XHTML — 1.0 Transitional
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: doctype
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: XHTML — 1.1
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||||
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: doctype
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: HTML — 4.01 Transitional
|
||||
# --
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
@@ -0,0 +1,16 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: movie
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Embed QT Movie
|
||||
# --
|
||||
<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
|
||||
<param name="src" value="$1"${TM_XHTML}>
|
||||
<param name="controller" value="$4"${TM_XHTML}>
|
||||
<param name="autoplay" value="$5"${TM_XHTML}>
|
||||
<embed src="${1:movie.mov}"
|
||||
width="${2:320}" height="${3:240}"
|
||||
controller="${4:true}" autoplay="${5:true}"
|
||||
scale="tofit" cache="true"
|
||||
pluginspage="http://www.apple.com/quicktime/download/"
|
||||
${TM_XHTML}>
|
||||
</object>
|
||||
10
extras/imported/html-mode/Insert Tag/Fieldset.yasnippet
Normal file
10
extras/imported/html-mode/Insert Tag/Fieldset.yasnippet
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: fieldset
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Fieldset
|
||||
# --
|
||||
<fieldset id="${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}" ${2:class="${3:}"}>
|
||||
<legend>${1:`yas/selected-text`}</legend>
|
||||
|
||||
$0
|
||||
</fieldset>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: input
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Input with Label
|
||||
# --
|
||||
<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}"}${TM_XHTML}>
|
||||
6
extras/imported/html-mode/Insert Tag/Option.yasnippet
Normal file
6
extras/imported/html-mode/Insert Tag/Option.yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: opt
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Option
|
||||
# --
|
||||
<option${1: value="${2:option}"}>${3:$2}</option>
|
||||
10
extras/imported/html-mode/Insert Tag/Select Box.yasnippet
Normal file
10
extras/imported/html-mode/Insert Tag/Select Box.yasnippet
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: select
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Select Box
|
||||
# --
|
||||
<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>
|
||||
<option${12: value="${13:option2}"}>${14:$13}</option>${15:}
|
||||
$0
|
||||
</select>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: input
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Input
|
||||
# --
|
||||
<input type="${1:text/submit/hidden/button}" name="${2:some_name}" value="$3"${4: id="${5:$2}"}${TM_XHTML}>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: textarea
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Text Area
|
||||
# --
|
||||
<textarea name="${1:Name}" rows="${2:8}" cols="${3:40}">$0</textarea>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: mailto
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Mail Anchor
|
||||
# --
|
||||
<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: base
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Base
|
||||
# --
|
||||
<base href="$1"${2: target="$3"}${TM_XHTML}>
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: body
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Body
|
||||
# --
|
||||
<body id="${1:${TM_FILENAME/(.*)\..*/\L$1/}}"${2: onload="$3"}>
|
||||
$0
|
||||
</body>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Br
|
||||
# binding: "^
|
||||
"
|
||||
# --
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: div
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Div
|
||||
# --
|
||||
<div${1: id="${2:name}"}>
|
||||
`yas/selected-text`$0
|
||||
</div>
|
||||
10
extras/imported/html-mode/Insert Tag/XHTML <form>.yasnippet
Normal file
10
extras/imported/html-mode/Insert Tag/XHTML <form>.yasnippet
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: form
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Form
|
||||
# --
|
||||
<form action="${1:${TM_FILENAME/(.*?)\..*/$1_submit/}}" method="${2:get}" accept-charset="utf-8">
|
||||
$0
|
||||
|
||||
<p><input type="submit" value="Continue →"${TM_XHTML}></p>
|
||||
</form>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: h1
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Heading
|
||||
# --
|
||||
<h1 id="${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}">${1:`yas/selected-text`}</h1>
|
||||
10
extras/imported/html-mode/Insert Tag/XHTML <head>.yasnippet
Normal file
10
extras/imported/html-mode/Insert Tag/XHTML <head>.yasnippet
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: head
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Head
|
||||
# --
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"${TM_XHTML}>
|
||||
<title>${1:${TM_FILENAME/((.+)\..*)?/(?2:$2:Page Title)/}}</title>
|
||||
$0
|
||||
</head>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: link
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Link
|
||||
# --
|
||||
<link rel="${1:stylesheet}" href="${2:/css/master.css}" type="text/css" media="${3:screen}" title="${4:no title}" charset="${5:utf-8}"${TM_XHTML}>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: meta
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Meta
|
||||
# --
|
||||
<meta name="${1:name}" content="${2:content}"${TM_XHTML}>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: scriptsrc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Script With External Source
|
||||
# --
|
||||
<script src="$1" type="text/javascript" charset="${3:utf-8}"></script>
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: script
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Script
|
||||
# --
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$0
|
||||
</script>
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: style
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Style
|
||||
# --
|
||||
<style type="text/css" media="screen">
|
||||
$0
|
||||
</style>
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: table
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Table
|
||||
# --
|
||||
<table border="${1:0}"${2: cellspacing="${3:5}" cellpadding="${4:5}"}>
|
||||
<tr><th>${5:Header}</th></tr>
|
||||
<tr><td>${0:Data}</td></tr>
|
||||
</table>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: title
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Title
|
||||
# --
|
||||
<title>${1:${TM_FILENAME/((.+)\..*)?/(?2:$2:Page Title)/}}</title>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Special: Return Inside Empty Open/Close Tags
|
||||
# binding: "
|
||||
"
|
||||
# --
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Wrap Selection in Open/Close Tag
|
||||
# binding: "^W"
|
||||
# --
|
||||
<${1:p}>`yas/selected-text`</${1/\s.*//}>
|
||||
5
extras/imported/html-mode/Wrap in <?= … ?>.yasnippet
Normal file
5
extras/imported/html-mode/Wrap in <?= … ?>.yasnippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Wrap in <?= … ?>
|
||||
# --
|
||||
<?= `yas/selected-text` ?>
|
||||
Reference in New Issue
Block a user