- Refactored snippets files.

This commit is contained in:
Shougo Matsushita 2012-10-30 17:53:14 +09:00
parent a4c2f3d376
commit 19e6bb6253
24 changed files with 462 additions and 480 deletions

View File

@ -1,23 +1,23 @@
snippet if
abbr if () {}
if (${1:/* condition */}) {
${0:/* code */}
if (${1:#:condition}) {
${0:TARGET}
}
snippet else
else {
${0}
${0:TARGET}
}
snippet elseif
else if (${1:/* condition */}) {
${0}
else if (${1:#:condition}) {
${0:TARGET}
}
snippet ifelse
abbr if () {} else {}
if (${1:condition}) {
${2}
if (${1:#:condition}) {
${2:TARGET}
} else {
${3}
}
@ -25,59 +25,59 @@ abbr if () {} else {}
snippet for
abbr for () {}
for (${1} = 0; $1 < ${2}; $1++) {
${0}
${0:TARGET}
}
snippet while
abbr while () {}
while (${1:/* condition */}) {
${0:/* code */}
while (${1:#:condition}) {
${0:TARGET}
}
snippet do_while
alias do
do {
${0:/* code */}
} while (${1:/* condition */});
${0:TARGET:code}
} while (${1:#:condition});
snippet switch
abbr switch () {}
switch (${1:var}) {
case ${2:val}:
${0}
switch (${1:#:var}) {
case ${2:#:val}:
${0:TARGET}
break;
}
snippet function
alias func
abbr func() {}
${1:void} ${2:func_name}(${3}) {
${0}
${1:void} ${2:#:func_name}(${3:#:args}) {
${0:TARGET}
}
snippet struct
abbr struct {}
struct ${1:name} {
${0:/* data */}
struct ${1:#:name} {
${0:TARGET:data}
};
# Typedef struct
snippet struct_typedef
typedef struct ${1:name} {
${0:/* data */}
typedef struct ${1:#:name} {
${0:TARGET:data}
};
snippet enum
abbr enum {}
enum ${1:name} {
${0}
enum ${1:#:name} {
${0:TARGET}
};
# hard-tab is necessary; C indent doesn't support this.
snippet main
int main(int argc, char const* argv[])
{
${0}
${0:TARGET}
return 0;
}
@ -88,13 +88,13 @@ alias #inc, #include
# #include "..."
snippet inc2
alias #inc2, #include2
#include "${1:}.h"${0}
#include "${1}.h"${0}
snippet ifndef
alias #ifndef
abbr #ifndef ... #define ... #endif
#ifndef $1
#define ${1:SYMBOL}
#define ${1:#:SYMBOL}
#endif${0}
snippet def
@ -107,16 +107,16 @@ abbr include-guard
#ifndef ${1:SYMBOL}
#define $1
${0}
${0:TARGET}
#endif /* end of include guard */
# Tertiary conditional
snippet conditional
(${1:/* condition */}) ? ${2:a} : ${3:b}
(${1:#:condition}) ? ${2:#:a} : ${3:#:b}
# Typedef
snippet typedef
typedef ${1:base_type} ${2:custom_type};
typedef ${1:#:base_type} ${2:#:custom_type};
snippet printf
abbr printf("...\n", ...);
@ -128,12 +128,12 @@ abbr fprintf(..., "...\n", ...);
snippet comment
alias /*
/* ${1:comment} */
/* ${1:#:comment} */
${0}
snippet sizeof
alias size
sizeof(${0})
sizeof(${0:TARGET})
snippet helloworld
#include <stdio.h>
@ -142,3 +142,4 @@ snippet helloworld
puts("hello, world!");
return 0;
}

View File

@ -1,72 +1,72 @@
snippet req
${1:object} = require('$1')
${1:#:object} = require('$1')
snippet log
console.log ${0}
snippet unl
${1:action} unless ${2:condition}
${1:#:action} unless ${2:#:condition}
snippet try
try
${1}
catch ${2:error}
${1:TARGET}
catch ${2:#:error}
${3}
snippet if
if ${1:condition}
${0:# body...}
if ${1:#:condition}
${0:TARGET}
snippet elif
else if ${1:condition}
${0:# body...}
else if ${1:#:condition}
${0:TARGET}
snippet ifte
if ${1:condition} then ${2:value} else ${3:other}
if ${1:#:condition} then ${2:#:value} else ${3:#:other}
snippet ife
if ${1:condition}
${2:# body...}
if ${1:#:condition}
${2:TARGET}
else
${3:# body...}
${3:#:body...}
snippet swi
switch ${1:object}
when ${2:value}
${0:# body...}
switch ${1:#:object}
when ${2:#:value}
${0:TARGET}
snippet ^j
\`${1:javascript}\`
snippet forr
for ${1:name} in [${2:start}..${3:finish}]${4: by ${5:step\}}
${0:# body...}
for ${1:#:name} in [${2:#:start}..${3:#:finish}]${4: by ${5:#:step\}}
${0:TARGET}
snippet forrex
for ${1:name} in [${2:start}...${3:finish}]${4: by ${t:step\}}
${0:# body...}
for ${1:#:name} in [${2:#:start}...${3:#:finish}]${4: by ${5:#:step\}}
${0:TARGET}
snippet foro
for ${1:key}, ${2:value} of ${3:object}
${0:# body...}
for ${1:#:key}, ${2:#:value} of ${3:#:object}
${0:TARGET}
snippet fora
for ${1:name} in ${2:array}
${0:# body...}
for ${1:#:name} in ${2:#:array}
${0:TARGET}
snippet fun
${1:name} = (${2:args}) ->
${0:# body...}
${1:#:name} = (${2:#:args}) ->
${0:TARGET}
snippet bfun
(${1:args}) =>
${0:# body...}
(${1:#:args}) =>
${0:TARGET}
snippet cla
abbr cla
options head
class ${1:ClassName}${2: extends ${3:Ancestor\}}
class ${1:#:ClassName}${2: extends ${3:#:Ancestor\}}
constructor: (${4:args}) ->
${5:# body...}
constructor: (${4:#:args}) ->
${5:TARGET}

View File

@ -6,34 +6,34 @@ abbr template <T>
snippet class
abbr class {}
class ${1:name} {
class ${1:#:name} {
${2}
};
snippet try
abbr try catch
try {
${1}
} catch (${2:exception}) {
${1:TARGET}
} catch (${2:e:xception}) {
${3}
}
# range based for ( C++11 feature )
snippet for_CPP11
abbr for (:) {}
for (${1:var} : ${2:container}) {
${0}
for (${1:#:var} : ${2:#:container}) {
${0:TARGET}
}
# lambda expression ( C++11 feature )
snippet lambda
abbr [](){}
[${1}](${2})${3}{ ${4} }
[${1}](${2})${3}{ ${4:TARGET} }
# scoped enumeration ( C++11 feature )
snippet enum_scoped
abbr enum struct {}
enum struct { ${1} }
enum struct { ${1:TARGET} }
# static assert ( C++11 feature )
snippet static_assert
@ -44,8 +44,8 @@ delete namespace
snippet namespace
abbr namespace {}
options head
namespace ${1:name}
${0}
namespace ${1:#:name}
${0:TARGET}
} // namespace $1
snippet static_cast
@ -65,7 +65,7 @@ abbr dynamic_cast<>()
dynamic_cast<${1}>(${2})${0}
snippet helloworld
abbr #include<iostream>\nint main...
abbr #include<iostream> int main...
#include <iostream>
int main(int argc, char const* argv[])
{
@ -73,3 +73,4 @@ abbr #include<iostream>\nint main...
cout << "hello, world!" << endl;
return 0;
}

View File

@ -1,6 +1,7 @@
snippet background
alias bg
background:${1};${2}
snippet backattachment
alias ba
background-attachment:${1};${2}
@ -21,8 +22,6 @@ snippet backrepeat
alias br
background-repeat:${1};${2}
snippet border
alias b
border:${1};${2}

View File

@ -16,24 +16,25 @@ delete fprintf
snippet foreach
abbr foreach() {}
foreach (${1:var}; ${2:list}) {
${3}
foreach (${1:#:var}; ${2:#:list}) {
${3:TARGET}
}
snippet class
abbr class {}
class ${1:name} {
${2}
class ${1:#:name} {
${2:TARGET}
}
snippet struct
abbr struct {}
struct ${1:name} {
${2}
struct ${1:#:name} {
${2:TARGET}
}
snippet enum
abbr enum {}
enum ${1:name} {
${2}
enum ${1:#:name} {
${2:TARGET}
}

View File

@ -1,19 +1,20 @@
snippet ruby_print
abbr <%= %>
<%= ${1:Ruby print code} %>${2}
<%= ${1:TARGET} %>${2}
snippet ruby_code
abbr <% %>
<% ${1:Ruby code} %>${2}
<% ${1:TARGET} %>${2}
snippet ruby_print_nonl
abbr <%= -%>
<%= ${1:Ruby print code} -%>${2}
<%= ${1:TARGET} -%>${2}
snippet ruby_code_nonl
abbr <% -%>
<% ${1:Ruby code} -%>${2}
<% ${1:TARGET} -%>${2}
snippet comment
abbr <%# %>
<%# ${1:Comment} %>${2}
<%# ${1:TARGET} %>${2}

View File

@ -20,3 +20,4 @@ snippet main
abbr main = do
main = do
${0}

View File

@ -17,26 +17,25 @@ snippet ab
abstract
snippet cl
class ${1} ${2:extends} ${3:Parent} ${4:implements} ${5:Interface} {
${0}
class ${1} ${2:extends} ${3:#:Parent} ${4:implements} ${5:#:Interface} {
${0:TARGET}
}
snippet in
interface ${1} ${2:extends} ${3:Parent} {
${0}
interface ${1} ${2:extends} ${3:#:Parent} {
${0:TARGET}
}
snippet m
${1:void} ${2:method}(${3}) ${4:throws} {
${0}
${1:void} ${2:#:method}(${3}) ${4:throws} {
${0:TARGET}
}
snippet v
${1:String} ${2:var}${3};
${1:#:type} ${2:#:var}${3};
snippet co
static public final ${1:String} ${2:var} = ${3};${4}
static public final ${1:#:type} ${2:#:var} = ${3};${4}
snippet cos
static public final String ${1:var} = "${2}";${4}
@ -45,49 +44,44 @@ snippet re
return
snippet as
assert ${1:test} ${2:Failure message};${3}
assert ${1:#:test} ${2:#:Failure message};${3}
snippet if
if (${1}) {
${2}
${2:TARGET}
}
snippet elif
else if (${1}) {
${2}
${2:TARGET}
}
snippet wh
while (${1}) {
${2}
${2:TARGET}
}
snippet for
for (${1}; ${2}; ${3}) {
${4}
${4:TARGET}
}
snippet fore
for (${1} : ${2}) {
${3}
${3:TARGET}
}
snippet sw
switch (${1}) {
${2}
${2:TARGET}
}
snippet case
abbr ce
case ${1}:
${2}
${2:TARGET}
${0}
snippet br
break;
@ -96,11 +90,10 @@ snippet de
${0}
snippet ca
catch (${1:Exception} ${2:e}) {
catch (${1:#:Exception} ${2:e}) {
${0}
}
snippet th
throw ${0}
@ -115,21 +108,18 @@ snippet pa
snippet tc
public class ${1} extends ${2:TestCase} {
${0}
${0:TARGET}
}
snippet test
public void test${1:Name}() throws Exception {
${0}
public void test${1:#:Name}() throws Exception {
${0:TARGET}
}
snippet imt
import junit.framework.TestCase;
${0}
snippet j.u
java.util.
@ -150,7 +140,6 @@ snippet main
${0}
}
snippet pl
System.out.println(${1});${0}
@ -160,10 +149,9 @@ snippet p
#javadoc
snippet c
/**
* ${0}
* ${0:TARGET}
*/
snippet a
@author ${0:$TM_FULLNAME}
@ -172,7 +160,7 @@ abbr {
{@code ${0}
snippet d
@deprecated ${0:description}
@deprecated ${0:#:description}
snippet {docRoot
abbr {
@ -184,46 +172,47 @@ abbr {
snippet {link
abbr {
{@link ${1:target} ${0:label}
{@link ${1:#:target} ${0:#:label}
snippet {linkplain
abbr {
{@linkplain ${1:target} ${0:label}
{@linkplain ${1:#:target} ${0:#:label}
snippet {literal
abbr {
{@literal ${0}
snippet param
@param ${1:var} ${0:description}
@param ${1:#:var} ${0:#:description}
snippet r
@return ${0:description}
@return ${0:#:description}
snippet s
@see ${0:reference}
@see ${0:#:reference}
snippet se
@serial ${0:description}
@serial ${0:#:description}
snippet sd
@serialField ${0:description}
@serialField ${0:#:description}
snippet sf
@serialField ${1:name} ${2:type} ${0:description}
@serialField ${1:#:name} ${2:#:type} ${0:#:description}
snippet si
@since ${0:version}
@since ${0:#:version}
snippet t
@throws ${1:class} ${0:description}
@throws ${1:#:class} ${0:#:description}
snippet {value
abbr {
{@value ${0}
snippet ver
@version ${0:version}
@version ${0:#:version}
snippet null
{@code null}

View File

@ -1,59 +1,59 @@
snippet :f
options head
${1:method_name}: function(${2:attribute}) {
${0}
${1:#:method_name}: function(${2:#:attribute}) {
${0:TARGET}
}
snippet function
alias func
options word
function ${1:function_name}(${2:argument}) {
${0:// body...}
function ${1:#:function_name}(${2:#:argument}) {
${0:TARGET}
}
snippet proto
options head
${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
${0:// body...}
${1:#:class_name}.prototype.${2:#:method_name} = function(${3:#:first_argument}) {
${0:TARGET}
};
snippet f
options word
function(${1}) { ${0:$TM_SELECTED_TEXT} };
function(${1}) { ${0:TARGET} };
snippet if
options head
if (${1:true}) {
${0:$TM_SELECTED_TEXT}
${0:TARGET}
}
snippet ife
options head
if (${1:true}) {
${0:$TM_SELECTED_TEXT}
if (${1:#:condition}) {
${0:TARGET}
} else {
}
snippet for
options head
for (var ${2:i}=0; $2 < ${1:Things}.length; $2++) {
${0}
for (var ${2:i}=0; $2 < ${1:#:Things}.length; $2++) {
${0:TARGET}
}
snippet forin
options head
for (var ${2:i} in ${1:Things}) {
${0}
for (var ${2:i} in ${1:#:Things}) {
${0:TARGET}
};
snippet ;,
options word
${1:value_name}:${0:value},
${1:#:value_name}:${0:#:value},
snippet key
options word
${1:key}: "${2:value}"}${3:, }
${1:#:key}: "${2:#:value}"}${3:, }
snippet timeout
options head

View File

@ -2,26 +2,26 @@
snippet func
alias function name(args)...end
options word
function ${1:function_name}(${2:argument})
${0:// body...}
function ${1:#:function_name}(${2:#:argument})
${0:TARGET}
end
snippet if
options head
if (${1:true}) then
${0:$TM_SELECTED_TEXT}
if (${1:#:condition}) then
${0:TARGET}
end
snippet for
options head
for ${2:i} = 0, ${1:Things} do
${0}
for ${2:i} = 0, ${1:#:Things} do
${0:TARGET}
end
snippet forin
options head
for ${2:k}, ${3:v} in ${1:ipairs(xs)} do
${0}
${0:TARGET}
end
snippet print_table
@ -30,3 +30,4 @@ abbr for k, v in ipairs(table) do
for k, v in ipairs(${1:table}) do
print(k, v)
end

View File

@ -1,35 +1,35 @@
snippet link
abbr [link][]
[${1:link_id}][]${2}
[${1:#:link_id}][]${2}
snippet linkid
abbr [link][id]
[${1:link}][${2:id}]${3}
[${1:#:link}][${2:id}]${3}
snippet linkurl
abbr [link](url)
[${1:link}](http://${2:url})${3}
[${1:#:link}](http://${2:#:url})${3}
snippet linkemail
abbr [link](email)
[${1:link}](mailto:${2:email})${3}
[${1:#:link}](mailto:${2:#:email})${3}
snippet linkurltitle
abbr [link](url "title")
[${1:link}](${2:url} "${3:title}")${4}
[${1:#:link}](${2:#:url} "${3:#:title}")${4}
snippet idurl
abbr [id]: url "title"
[${1:id}]: http://${2:url} "${3:title}"
[${1:#:id}]: http://${2:#:url} "${3:#:title}"
snippet idemail
abbr [id]: email "title"
[${1:id}]: mailto:${2:url} "${3:title}"
[${1:#:id}]: mailto:${2:#:url} "${3:#:title}"
snippet altid
abbr ![alt][id]
![${1:alt}][${2:id}]${3}
![${1:#:alt}][${2:#:id}]${3}
snippet alturl
abbr ![alt](url)
![${1:alt}](${2:url})${3}
![${1:#:alt}](${2:#:url})${3}
snippet alturltitle
abbr ![alt](url "title")
![${1:alt}](${2:url} "${3:title}")${4}
![${1:#:alt}](${2:#:url} "${3:#:title}")${4}
snippet emphasis1
abbr *emphasis*
@ -49,3 +49,4 @@ abbr __strong__
snippet code
abbr `code`
\`${1}\`${2}

View File

@ -1,5 +1,5 @@
snippet sel
@selector(${1:method}:)
@selector(${1:#:method}:)
snippet imp
@ -32,7 +32,6 @@ abbr Class
}
@end
snippet cli
abbr ClassInterface
@interface ${1} : ${2:NSObject}
@ -41,7 +40,6 @@ abbr ClassInterface
${0}
@end
snippet clm
abbr ClassImplementation
@implementation ${1:object}
@ -54,7 +52,6 @@ abbr ClassImplementation
}
@end
snippet cat
abbr Category
@interface ${1:NSObject} (${2:Category})
@ -64,44 +61,39 @@ abbr Category
${0}
@end
snippet cati
abbr CategoryInterface
@interface ${1:NSObject)} (${2:Category)})
${0}
@end
snippet array
NSMutableArray *${1:array} = [NSMutableArray array];
NSMutableArray *${1:#:array} = [NSMutableArray array];
snippet dict
NSMutableDictionary *${1:dict} = [NSMutableDictionary dictionary];
NSMutableDictionary *${1:#:dict} = [NSMutableDictionary dictionary];
snippet bez
NSBezierPath *${1:path} = [NSBezierPath bezierPath];
${0}
NSBezierPath *${1:#:path} = [NSBezierPath bezierPath];
snippet m
abbr Method
- (${1:id})${2:method}${3:(id)}${4:anArgument}
- (${1:#:id})${2:#:method}${3:(#:id)}${4:#:anArgument}
{
${0}
return nil;
}
snippet M
abbr Method
- (${1:id})${2:method}${3:(id)}${4:anArgument};
- (${1:#:id})${2:#:method}${3:(#:id)}${4:#:anArgument};
snippet cm
abbr ClassMethod
+ (${1:id})${2:method}${3:(id)}${4:anArgument}
+ (${1:#:id})${2:#:method}${3:(#:id)}${4:#:anArgument}
{
${0}
return nil;
@ -110,14 +102,14 @@ abbr ClassMethod
snippet icm
abbr InterfaceClassMethod
+ (${1:id})${0:method};
+ (${1:#:id})${0:#:method};
snippet sm
abbr SubMethod
- (${1:id})${2:method}${3:(id)}${4:anArgument}
- (${1:#:id})${2:#:method}${3:(#:id)}${4:#:anArgument}
{
${1} res = [super ${2:method}]
${1} res = [super ${2:#:method}]
return res;
}
@ -131,9 +123,8 @@ abbr MethodInitialize
nil]];
}
snippet obj
- (${1:id})${2:thing}
- (${1:#:id})${2:#:thing}
{
return ${2};
}
@ -147,12 +138,11 @@ snippet obj
snippet iobj
- (${1:id})${2:thing};
- (${1:#:id})${2:#:thing};
- (void)set${2}:(${1})aValue;
snippet str
- (NSString${$1: *)})${1:thing}
- (NSString${$1: *)})${1:#:thing}
{
return ${2};
}
@ -164,38 +154,35 @@ snippet str
${2} = ${3};
}
snippet istr
- (NSString${1: *)}${1:thing};
- (NSString${1: *)}${1:#:thing};
- (void)set${1}:(NSString${2: *})${2};
snippet cd
abbr CoreData
- (${1:id})${2:attribute}
- (${1:#:id})${2:#:attribute}
{
[self willAccessValueForKey:@"${2: attribute}"];
${1:id} value = [self primitiveValueForKey:@"${2: attribute}"];
[self didAccessValueForKey:@"${2: attribute}"];
[self willAccessValueForKey:@"$2"];
$1 value = [self primitiveValueForKey:@"$2"];
[self didAccessValueForKey:@"$2"];
return value;
}
- (void)set${2}:(${1})aValue
- (void)set$2:($1)aValue
{
[self willChangeValueForKey:@"${2: attribute}"];
[self setPrimitiveValue:aValue forKey:@"${2: attribute}"];
[self didChangeValueForKey:@"${2: attribute}"];
[self willChangeValueForKey:@"$2"];
[self setPrimitiveValue:aValue forKey:@"$2"];
[self didChangeValueForKey:@"$2"];
}
snippet karray
abbr KVCArry
- (void)addObjectTo${1:Things}:(${2:id})anObject
- (void)addObjectTo${1:#:Things}:(${2:#:id})anObject
{
[${3}} addObject:anObject];
}
- (void)insertObject:(${2})anObject in${1}AtIndex:(unsigned int)i
- (void)insertObject:($2)anObject in$1AtIndex:(unsigned int)i
{
[${3} insertObject:anObject atIndex:i];
}
@ -233,7 +220,7 @@ abbr KVCArry
snippet iarray
abbr InterfaceAccessorsForKVCArray
- (void)addObjectTo${1:Things}:(${2:id})anObject;
- (void)addObjectTo${1:#:Things}:(${2:#:id})anObject;
- (void)insertObject:(${2})anObject in${1}AtIndex:(unsigned int)i;
- (${2})objectIn${1}AtIndex:(unsigned int)i;
- (unsigned int)indexOfObjectIn${1}:(${2})anObject;
@ -245,7 +232,7 @@ abbr InterfaceAccessorsForKVCArray
snippet acc
abbr PrimitiveType
- (${1:unsigned int})${2:thing}
- (${1:unsigned int})${2:#:thing}
{
return ${3};
}
@ -261,7 +248,6 @@ abbr Interface:AccessorsForPrimitiveType
- (${1:unsigned int})${2:thing};
- (void)set${2}:($1)new${2};
snippet rdef
abbr ReadDefaultsValue
[[NSUserDefaults standardUserDefaults] objectForKey:${1:key}];
@ -278,11 +264,11 @@ abbr IBOutlet
snippet syn
@synthesize ${1:property};
@synthesize ${1:#:property};
snippet bind
bind:@"${2:binding}" toObject:${3:observableController} withKeyPath:@"${4:keyPath}" options:${5:nil}
bind:@"${2:#:binding}" toObject:${3:observableController} withKeyPath:@"${4:keyPath}" options:${5:nil}
snippet reg
@ -294,7 +280,6 @@ snippet focus
${0}
[self unlockFocus];
snippet forarray
unsigned int ${1:object}Count = [${2:array} count];
@ -304,7 +289,6 @@ snippet forarray
${0}
}
snippet alert
int choice = NSRunAlertPanel(@"${1:Something important!}", @"${2:Something important just happend, and now I need to ask you, do you want to continue?}", @"${3:Continue}", @"${4:Cancel}", nil);
if(choice == NSAlertDefaultReturn) // "${3:Continue}"
@ -316,7 +300,6 @@ snippet alert
}
snippet res
${1} Send ${2} to ${1}, if ${1} supports it}${3}
if ([${1:self} respondsToSelector:@selector(${2:someSelector:})])
@ -324,7 +307,6 @@ snippet res
[${1} ${3}];
}
snippet del
if([${1:[self delegate]} respondsToSelector:@selector(${2:selfDidSomething:})])
[${1} ${3}];
@ -341,7 +323,7 @@ snippet save
snippet thread
[NSThread detachNewThreadSelector:@selector(${1:method}:) toTarget:${2:aTarget} withObject:${3:anArgument}]
[NSThread detachNewThreadSelector:@selector(${1:#:method}:) toTarget:${2:#:aTarget} withObject:${3:#:anArgument}]
snippet pool
@ -349,4 +331,3 @@ snippet pool
${0}
[pool drain];

View File

@ -6,71 +6,72 @@ snippet perl
${1}
snippet sub
sub ${1:function_name} {
${2:# body...}
sub ${1:#:function_name} {
${2:TARGET}
}
snippet if
if (${1}) {
${2:# body...}
if (${1:#:condition}) {
${2:TARGET}
}
snippet ife
if (${1}) {
${2:# body...}
if (${1:#:condition}) {
${2:TARGET}
} else {
${3:# else...}
${3:#:else...}
}
snippet ifee
if (${1}) {
${2:# body...}
if (${1:#:condition}) {
${2:TARGET}
} elsif (${3}) {
${4:# elsif...}
${4:#:elsif...}
} else {
${5:# else...}
${5:#:else...}
}
snippet xif
${1:expression} if ${2:condition};
${1:#:expression} if ${2:#:condition};
snippet while
abbr wh
while (${1}) {
${2:# body...}
while (${1:#:condition}) {
${2:TARGET}
}
snippet xwhile
abbr xwh
${1:expression} while ${2:condition};
${1:#:expression} while ${2:#:condition};
snippet for
for (my $${1:var} = 0; $$1 < ${2:expression}; $$1++) {
${3:# body...}
for (my $${1:#:var} = 0; $$1 < ${2:#:expression}; $$1++) {
${3:TARGET}
}
snippet fore
for ${1} (${2:expression}){
${3:# body...}
for ${1} (${2:#:expression}){
${3:TARGET}
}
snippet xfor
${1:expression} for @${2:array};
${1:#:expression} for @${2:#:array};
snippet unless
abbr un
unless (${1}) {
${2:# body...}
unless (${1:condition}) {
${2:TARGET}
}
snippet xunless
abbr xun
${1:expression} unless ${2:condition};
${1:#:expression} unless ${2:#:condition};
snippet eval
eval {
${1:# do something risky...}
${1:TARGET}
};
if ($@) {
${2:# handle failure...}
${2:#:handle failure...}
}

View File

@ -1,13 +1,13 @@
snippet function
abbr function () {}
${1:public }function ${2:FunctionName}(${3})
${1:public }function ${2:#:FunctionName}(${3})
{
${4:// code...}
${4:TARGET}
}
snippet php
<?php
${1}
${1:TARGET}
?>
snippet pecho
@ -17,20 +17,20 @@ snippet echoh
<?php echo htmlentities(${1}, ENT_QUOTES, 'utf-8') ?>${0}
snippet pfore
<?$php foreach ($${1:variable} as $${2:key}${3: =>}): ?>
${0}
<?$php foreach ($${1:#:variable} as $${2:#:key}${3: =>}): ?>
${0:TARGET}
<?php endforeach ?>
snippet pife
<?php if (${1:condition}): ?>
${2}
<?php if (${1:#:condition}): ?>
${2:TARGET}
<?php else: ?>
${0}
<?php endif ?>
snippet pif
<?php if (${1:condition}): ?>
${0}
<?php if (${1:#:condition}): ?>
${0:TARGET}
<?php endif ?>
snippet pelse
@ -44,21 +44,21 @@ snippet ethis
snippet docc
/**
* ${3:undocumented class variable}
* ${3:#:undocumented class variable}
*
* @var ${4:string}
* @var ${4:#:string}
**/
${1:var} $${2};${0}
${1:#:var} $${2};${0}
snippet docd
/**
* ${3:undocumented constant}
* ${3:#:undocumented constant}
**/
define(${1} ${2});${0}
snippet docs
/**
* ${4:undocumented function}
* ${4:#:undocumented function}
*
* @return ${5:void}
* @author ${6}
@ -67,14 +67,14 @@ snippet docs
snippet docf
/**
* ${4:undocumented function}
* ${4:#:undocumented function}
*
* @return ${5:void}
* @author ${6}
**/
${1}function ${2}(${3})
{
${0}
${0:TARGET}
}
@ -94,15 +94,15 @@ snippet doch
snippet doci
/**
* ${2:undocumented class}
* ${2:#:undocumented class}
*
* @package ${3:default}
* @author ${4}
**/
interface ${1}
{
${0}
} // END interface ${1}
${0:TARGET}
} // END interface $1
snippet c
/**
@ -113,10 +113,10 @@ snippet class
/**
* ${1}
*/
class ${2:ClassName}${3:extends}}
class ${2:#:ClassName}${3:#:extends}}
{
$5
function ${4:__construct}(${5:argument})
function ${4:__construct}(${5:#:argument})
{
${0:# code...}
}
@ -128,73 +128,73 @@ snippet def
snippet do
do {
${0:# code...}
} while (${1});
${0:TARGET}
} while (${1:#:condition});
snippet if?
$${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b} ;
$${1:#:retVal} = (${2:#:condition}) ? ${3:#:a} : ${4:#:b};
snippet ifelse
if (${1:condition}) {
${2:# code...}
if (${1:#:condition}) {
${2:TARGET}
} else {
${3:# code...}
${3:#:code...}
}
${0}
snippet if
if (${1:condition}) {
${0:# code...}
if (${1:#:condition}) {
${0:TARGET}
}
snippet echo
echo "${1:string}"${0};
echo "${1:#:string}"${0};
snippet else
else {
${0:# code...}
${0:TARGET}
}
snippet elseif
elseif (${1:condition}) {
${0:# code...}
elseif (${1:#:condition}) {
${0:TARGET}
}
snippet for
for ($${1:i}=${2:0}; $${1:i} < ${3}; $${1:i}++) {
${0:# code...}
for ($${1:i}=${2:0}; $$1 < ${3}; $$1++) {
${0:TARGET}
}
snippet fore
foreach ($${1:variable} as $${2:key}${3: =>} $${4:value}) {
${0:# code...}
foreach ($${1:#:variable} as $${2:#:key}${3: =>} $${4:#:value}) {
${0:TARGET}
}
snippet con
function __construct(${1})
{
${0}
${0:TARGET}
}
snippet here
<<<${1:HTML}
${2:content here}
${2:TARGET:#:content here}
$1;
snippet inc
include '${1:file}';${0}
include '${1:#:file}';${0}
snippet inco
include_once '${1:file}';${0}
include_once '${1:#:file}';${0}
snippet array
$${1:arrayName} = array('${2}' => ${3} ${0});
$${1:#:arrayName} = array('${2}' => ${3} ${0});
snippet req
require '${1:file}';${0}
require '${1:#:file}';${0}
snippet reqo
require_once '${1:file}';${0}
require_once '${1:#:file}';${0}
snippet ret
return${1};${0}
@ -206,55 +206,56 @@ snippet rett
return true;
snippet case
case '${1:variable}':
${0:# code...}
case '${1:#:variable}':
${0:#:code...}
break;
snippet switch
abbr sw
switch (${1:variable}) {
case '${2:value}':
${3:# code...}
switch (${1:#:variable}) {
case '${2:#:value}':
${3:#:code...}
break;
${0}
default:
${4:# code...}
${4:#:code...}
break;
}
snippet throw
throw new ${1}Exception(${2:"${3:Error Processing Request}"}${4:});
throw new ${1}Exception(${2:"${3:#:Error Processing Request}"}${4:});
${0}
snippet while
abbr wh
while (${1}) {
${0:# code...}
${0:TARGET}
}
snippet gloabals
\$GLOBALS['${1:variable}']${2: = }${3:something}${4:;}${0}
\$GLOBALS['${1:#:variable}']${2: = }${3:#:something}${4:;}${0}
snippet cookie
\$_COOKIE['${1:variable}']
\$_COOKIE['${1:#:variable}']
snippet env
\$_ENV['${1:variable}']
\$_ENV['${1:#:variable}']
snippet files
\$_FILES['${1:variable}']
\$_FILES['${1:#:variable}']
snippet get
\$_GET['${1:variable}']
\$_GET['${1:#:variable}']
snippet post
\$_POST['${1:variable}']
\$_POST['${1:#:variable}']
snippet request
\$_REQUEST['${1:variable}']
\$_REQUEST['${1:#:variable}']
snippet server
\$_SERVER['${1:variable}']
\$_SERVER['${1:#:variable}']
snippet session
\$_SESSION['${1:variable}']
\$_SESSION['${1:#:variable}']

View File

@ -18,27 +18,27 @@ snippet def
abbr def function(...): ...
options head
def ${1:#:name}(${2}):
${0}
${0:TARGET}
snippet defd
abbr def function(...): """..."""
options head
def ${1:#:name}(${2}):
"""${3:#:function documentation}"""
${0}
${0:TARGET}
snippet defm
abbr def method(self, ...): ...
options head
def ${1:#:name}(self, ${2}):
${0}
${0:TARGET}
snippet defmd
abbr def method(self, ...): "..."
options head
def ${1:name}(self, ${2}):
def ${1:#:name}(self, ${2}):
"""${3:#:method documentation}"""
${0}
${0:TARGET}
snippet elif
abbr elif ...: ...
@ -58,7 +58,7 @@ options head
${1:f} = None
try:
$1 = open(${2})
${0}
${0:TARGET}
finally:
if $1:
$1.close()
@ -67,25 +67,25 @@ snippet for
abbr for ... in ...: ...
options head
for ${1:#:value} in ${2:#:list}:
${0}
${0:TARGET}
snippet if
abbr if ...: ...
options head
if ${1:#:condition}:
${0}
${0:TARGET}
snippet ifmain
abbr if __name__ == '__main__': ...
options head
if __name__ == '__main__':
${0}
${0:TARGET}
snippet tryexcept
abbr try: ... except ...: ...
options head
try:
${1}
${1:TARGET}
except ${2:#:ExceptionClass}:
${3}
@ -93,7 +93,7 @@ snippet tryfinally
abbr try: ... finally: ...
options head
try:
${1}
${1:TARGET}
finally:
${2}
@ -101,5 +101,5 @@ snippet while
abbr while ...: ...
options head
while ${1:#:condition}:
${0}
${0:TARGET}

View File

@ -161,3 +161,4 @@ abbr :object =>
snippet partial
abbr :partial =>
:partial =>

View File

@ -1,52 +1,52 @@
snippet if
abbr if ... end
if ${1:condition}
${2}
if ${1:#:condition}
${2:TARGET}
end
snippet def
abbr def ... end
def ${1:method_name}
${2}
def ${1:#:method_name}
${2:TARGET}
end
snippet defrescue
alias defr
abbr def ... rescue ... end
def ${1:method_name}
${2}
rescue ${3:StandardError} => ${4:error}
def ${1:#:method_name}
${2:TARGET}
rescue ${3:#:StandardError} => ${4:error}
${5}
end
snippet do
abbr do ... end
do
${1}
${1:TARGET}
end
snippet dovar
abbr do |var| ... end
do |${1:var}|
${2}
do |${1:#:var}|
${2:TARGET}
end
snippet block
abbr { ... }
{
${1}
${1:TARGET}
}
snippet blockvar
abbr {|var| ... }
{|${1:var}|
${2}
{|${1:#:var}|
${2:TARGET}
}
snippet fileopen
abbr File.open(filename) do ... end
File.open(${1:filename}, '${2:w}') do |${3:io}|
${0}
File.open(${1:#:filename}, '${2:#:mode}') do |${3:io}|
${0:TARGET}
end
snippet edn

View File

@ -8,7 +8,7 @@ snippet try
abbr try {} catch { case ... }
options head
try {
${1}
${1:TARGET}
} catch {
case e${2:: Exception} => ${0}
}
@ -19,13 +19,13 @@ abbr println()
snippet pn
abbr println('name, name)
println('${1:name}, $1)
println('${1:#:name}, $1)
snippet main
abbr def main(args: Array[String]) {
options head
def main(args: Array[String]) {
${0}
${0:TARGET}
}
snippet hello
@ -39,3 +39,4 @@ options head
# scala's indent plugin doesn't work well. use hard-tab for this snippet.
# vim: set noexpandtab :

View File

@ -1,50 +1,48 @@
snippet if
if [ ${1:condition} ]; then
${0:#statements}
if [ ${1:#:condition} ]; then
${0:TARGET}
fi
snippet el
else
${0:#statements}
${0:TARGET}
snippet elif
elif [ ${1:condition} ]; then
${0:#statements}
elif [ ${1:#:condition} ]; then
${0:TARGET}
snippet for
for ${1:i} in ${2:words}; do
${0:#statements}
for ${1:i} in ${2:#:words}; do
${0:TARGET}
done
snippet wh
abbr while
while ${1:condition} ; do
${0:#statements}
while ${1:#:condition} ; do
${0:TARGET}
done
snippet until
until ${1:condition} ; do
${0:#statements}
until ${1:#:condition} ; do
${0:TARGET}
done
snippet case
case ${1:word} in
${2:pattern} )
case ${1:#:word} in
${2:#:pattern} )
${0}
;;
esac
snippet h
snippet here
alias h
<<${1}
${0}
${0:TARGET}
snippet env
#!/usr/bin/env ${1}

View File

@ -2,7 +2,8 @@ snippet snippet
abbr snippet abbr options <snippet code>
alias snip
options head
snippet ${1:trigger}
abbr ${2:abbr}
snippet ${1:#:trigger}
abbr ${2:#:abbr}
options head
${3:snippet code}
${3:#:TARGET}

View File

@ -1,209 +1,209 @@
snippet mathexpression
abbr $ expression $
$${1:expression}$${2}
$${1:#:expression}$${2}
# ========== ENVIRONMENT ==========
snippet begin
alias \begin
\begin{${1:type}}
${2}
\begin{${1:#:type}}
${2:TARGET}
\end{$1}
${0}
snippet list
alias \begin{list}
\begin{list}
${1}
${1:TARGET}
\end{list}
${0}
snippet quotation
alias \begin{quotation}
\begin{quotation}
${1}
${1:TARGET}
\end{quotation}
${0}
snippet description
alias \begin{description}
\begin{description}
\item ${1}
\item ${1:TARGET}
\end{description}
${0}
snippet sloppypar
alias \begin{sloppypar}
\begin{sloppypar}
${1}
${1:TARGET}
\end{sloppypar}
${0}
snippet enumerate
alias \begin{enumerate}
\begin{enumerate}
\item ${1}
\item ${1:TARGET}
\end{enumerate}
${0}
snippet theindex
alias \begin{theindex}
\begin{theindex}
${1}
${1:TARGET}
\end{theindex}
${0}
snippet itemize
alias \begin{itemize}
\begin{itemize}
\item ${1}
\item ${1:TARGET}
\end{itemize}
${0}
snippet titlepage
alias \begin{titlepage}
\begin{titlepage}
${1}
${1:TARGET}
\end{titlepage}
${0}
snippet verbatim
alias \begin{verbatim}
\begin{verbatim}
${1}
${1:TARGET}
\end{verbatim}
${0}
snippet verbatimtab
alias \begin{verbatimtab}
\begin{verbatimtab}[${1:8}]
${2}
${2:TARGET}
\end{verbatim}
${0}
snippet trivlist
alias \begin{trivlist}
\begin{trivlist}
${1}
${1:TARGET}
\end{trivlist}
${0}
snippet verse
alias \begin{verse}
\begin{verse}
${1}
${1:TARGET}
\end{verse}
${0}
snippet table
alias \begin{table}
\begin{table}
${1}
${1:TARGET}
\end{table}
${0}
snippet thebibliography
alias \begin{thebibliography}
\begin{thebibliography}
${1}
${1:TARGET}
\end{thebibliography}
${0}
snippet tabbing
alias \begin{tabbing}
\begin{tabbing}
${1}
${1:TARGET}
\end{tabbing}
${0}
snippet note
alias \begin{note}
\begin{note}
${1}
${1:TARGET}
\end{note}
${0}
snippet tabular
alias \begin{tabular}
\begin{tabular}{${1}}
${2}
${2:TARGET}
\end{tabular}
${0}
snippet overlay
alias \begin{overlay}
\begin{overlay}
${1}
${1:TARGET}
\end{overlay}
${0}
snippet array
alias \begin{array}
\begin{array}
${1}
${1:TARGET}
\end{array}
${0}
snippet slide
alias \begin{slide}
\begin{slide}
${1}
${1:TARGET}
\end{slide}
${0}
snippet displaymath
alias \begin{displaymath}
\begin{displaymath}
${1}
${1:TARGET}
\end{displaymath}
${0}
snippet abstract
alias \begin{abstract}
\begin{abstract}
${1}
${1:TARGET}
\end{abstract}
${0}
snippet eqnarray
alias \begin{eqnarray}
\begin{eqnarray}
${1}
${1:TARGET}
\end{eqnarray}
${0}
snippet eqnarray*
alias \begin{eqnarray*}
\begin{eqnarray*}
${1}
${1:TARGET}
\end{eqnarray}
${0}
snippet appendix
alias \begin{appendix}
\begin{appendix}
${1}
${1:TARGET}
\end{appendix}
${0}
snippet equation
alias \begin{equation}
\begin{equation}
${1}
${1:TARGET}
\end{equation}
${0}
snippet center
alias \begin{center}
\begin{center}
${1}
${1:TARGET}
\end{center}
${0}
snippet document
alias \begin{document}
\begin{document}
${1}
${1:TARGET}
\end{document}
${0}
@ -221,56 +221,56 @@ alias \begin{figure}
snippet filecontents
alias \begin{filecontents}
\begin{filecontents}
${1}
${1:TARGET}
\end{filecontents}
${0}
snippet lrbox
alias \begin{lrbox}
\begin{lrbox}
${1}
${1:TARGET}
\end{lrbox}
${0}
snippet flushleft
alias \begin{flushleft}
\begin{flushleft}
${1}
${1:TARGET}
\end{flushleft}
${0}
snippet minipage
alias \begin{minipage}
\begin{minipage}
${1}
${1:TARGET}
\end{minipage}
${0}
snippet flushright
alias \begin{flushright}
\begin{flushright}
${1}
${1:TARGET}
\end{flushright}
${0}
snippet picture
alias \begin{picture}
\begin{picture}
${1}
${1:TARGET}
\end{picture}
${0}
snippet math
alias \begin{math}
\begin{math}
${1}
${1:TARGET}
\end{math}
${0}
snippet quote
alias \begin{quote}
\begin{quote}
${1}
${1:TARGET}
\end{quote}
${0}
@ -279,33 +279,33 @@ alias \begin{quote}
snippet part
alias \begin{part}
\begin{part}
${1}
${1:TARGET}
\end{part}
${0}
snippet chapter
alias \begin{chapter}
\begin{chapter}
${1}
${1:TARGET}
\end{chapter}
${0}
snippet \chapter
alias \chapter{
\chapter{${1}}
${0}
${0:TARGET}
snippet section
alias \begin{section}
\begin{section}
${1}
${1:TARGET}
\end{section}
${0}
snippet \section
alias \section{
\section{${1}}
${0}
${0:TARGET}
snippet subsection
alias \begin{subsection}
@ -317,98 +317,98 @@ alias \begin{subsection}
snippet \subsection
alias \subsection{
\subsection{${1}}
${0}
${0:TARGET}
snippet subsubsection
alias \begin{subsubsection}
\begin{subsubsection}
${1}
${1:TARGET}
\end{subsubsection}
${0}
snippet \subsubsection
alias \subsubsection{
\subsubsection{${1}}
${0}
${0:TARGET}
snippet paragraph
alias \begin{paragraph}
\begin{paragraph}
${1}
${1:TARGET}
\end{paragraph}
${0}
snippet \paragraph
alias \paragraph{
\paragraph{${1}}
${0}
${0:TARGET}
snippet subparagraph
alias \begin{subparagraph}
\begin{subparagraph}
${1}
${1:TARGET}
\end{subparagraph}
${0}
snippet \subparagraph
alias \subparagraph{
\subparagraph{${1}}
${0}
${0:TARGET}
# ========== FONT ==========
snippet bfseries
alias \begin{bfseries}
\begin{bfseries}
${1}
${1:TARGET}
\end{bfseries}
snippet mdseries
alias \begin{mdseries}
\begin{mdseries}
${1}
${1:TARGET}
\end{mdseries}
snippet ttfamily
alias \begin{ttfamily}
\begin{ttfamily}
${1}
${1:TARGET}
\end{ttfamily}
snippet sffamily
alias \begin{sffamily}
\begin{sffamily}
${1}
${1:TARGET}
\end{sffamily}
snippet rmfamily
alias \begin{rmfamily}
\begin{rmfamily}
${1}
${1:TARGET}
\end{rmfamily}
snippet upshape
alias \begin{upshape}
\begin{upshape}
${1}
${1:TARGET}
\end{upshape}
snippet slshape
alias \begin{slshape}
\begin{slshape}
${1}
${1:TARGET}
\end{slshape}
snippet scshape
alias \begin{scshape}
\begin{scshape}
${1}
${1:TARGET}
\end{scshape}
snippet itshape
alias \begin{itshape}
\begin{itshape}
${1}
${1:TARGET}
\end{itshape}
# ========== OTHERS ==========

View File

@ -7,7 +7,7 @@ options head
snippet elseif
options head
elseif ${1:/* condition */}
elseif ${1:#:condition}
${0:TARGET}
snippet ifelse
@ -84,7 +84,7 @@ options head
snippet augroup
abbr augroup with autocmds
options head
augroup ${1}
augroup ${1:#:augroup_name}
autocmd!
autocmd ${2:#:event}
augroup END

View File

@ -15,8 +15,9 @@ snippet doctypestrict
snippet xhtml
<html xmlns="http://www.w3.org/1999/xhtml">
${1}
${1:TARGET}
</html>
snippet head
<head>
<meta http-equiv="content-type" content="text/html; charset=${1:utf-8}">
@ -40,16 +41,16 @@ snippet metadescription
snippet scriptcharset
<script type="text/javascript" charset="${1:UTF-8}">
${2}
${2:TARGET}
</script>${3}
snippet script
<script type="text/javascript">
${1}
${1:TARGET}
</script>${2}
snippet body
<body>
${1}
${1:TARGET}
</body>
snippet h
@ -65,29 +66,29 @@ snippet hr
<hr />
snippet comment
<!--${1}-->${2}
<!--${1:TARGET}-->${2}
snippet b
<b>${1}</b>${2}
<b>${1:TARGET}</b>${2}
snippet small
<small>${1}</small>${2}
<small>${1:TARGET}</small>${2}
snippet strong
<strong>${1}</strong>${2}
<strong>${1:TARGET}</strong>${2}
snippet sub
<sub>${1}</sub>${2}
<sub>${1:TARGET}</sub>${2}
snippet sup
<sup>${1}</sup>${2}
<sup>${1:TARGET}</sup>${2}
snippet ins
<ins>${1}</ins>${2}
<ins>${1:TARGET}</ins>${2}
snippet del
<del>${1}</del>${2}
<del>${1:TARGET}</del>${2}
snippet em
<em>${1}</em>${2}
<em>${1:TARGET}</em>${2}
snippet bdo
<bdo dir="${1:rtl}">${2}</bdo>${3}
<bdo dir="${1:rtl}">${2:TARGET}</bdo>${3}
snippet pre
<pre>
${1}
${1:TARGET}
</pre>${2}
snippet blockquote
<blockquote>
@ -109,66 +110,66 @@ snippet bgcolor
bgcolor="${1}"${2}
snippet ahref
<a href="${1}">${2}</a>${3}
<a href="${1}">${2:TARGET}</a>${3}
snippet ahref_blank
<a href="${1}" target="_blank">${2}</a>${3}
<a href="${1}" target="_blank">${2:TARGET}</a>${3}
snippet ahref_parent
<a href="${1}" target="_parent">${2}</a>${3}
<a href="${1}" target="_parent">${2:TARGET}</a>${3}
snippet ahref_top
<a href="${1}" target="_top">${2}</a>${3}
<a href="${1}" target="_top">${2:TARGET}</a>${3}
snippet aname
<a name="${1}">${2}</a>${3}
<a name="${1}">${2:TARGET}</a>${3}
snippet framesetcols
<frameset cols="${1}">
${2}
${2:TARGET}
</frameset>${3}
snippet framesetrows
<frameset rows="${1}"
${2}
${2:TARGET}
</frameset>${3}
snippet iframe
<iframe src="${1}"></iframe>${2}
snippet table
<table border="${1}">
${2}
${2:TARGET}
</table>${3}
snippet th
<th>${1}</th>${2}
<th>${1:TARGET}</th>${2}
snippet ulsquare
<ul type="square">${1}</ul>${2}
<ul type="square">${1:TARGET}</ul>${2}
snippet ulcircle
<ul type="circle">${1}</ul>${2}
<ul type="circle">${1:TARGET}</ul>${2}
snippet uldisc
<ul type="disc">${1}</ul>${2}
<ul type="disc">${1:TARGET}</ul>${2}
snippet ol
<ol>${1}</ol>${2}
<ol>${1:TARGET}</ol>${2}
snippet olA
<ol type="A">${1}</ol>${2}
<ol type="A">${1:TARGET}</ol>${2}
snippet ola
<ol type="a">${1}</ol>${2}
<ol type="a">${1:TARGET}</ol>${2}
snippet olI
<ol type="I">${1}</ol>${2}
<ol type="I">${1:TARGET}</ol>${2}
snippet oli
<ol type="i">${1}</ol>${2}
<ol type="i">${1:TARGET}</ol>${2}
snippet li
<li>${1}</li>${2}
<li>${1:TARGET}</li>${2}
snippet dl
<dl>${1}</dl>${2}
<dl>${1:TARGET}</dl>${2}
snippet dt
<dt>${1}</dt>${2}
<dt>${1:TARGET}</dt>${2}
snippet dd
<dd>${1}</dd>${2}
<dd>${1:TARGET}</dd>${2}
snippet form
<form>
${1}
${1:TARGET}
</form>${2}
snippet inputtext
@ -182,33 +183,33 @@ snippet inputcheckbox
snippet textarea
<textarea rows="${1}" cols="${2}">
${3}
${3:TARGET}
</textarea>
${4}
snippet button
<button>${1}</button>${2}
<button>${1:TARGET}</button>${2}
snippet select
<select>${1}</select>${2}
<select>${1:TARGET}</select>${2}
snippet optgroup
<optgroup label="${1}">
${2}
${2:TARGET}
<optgroup>${3}
snippet option
<option value="${1}">${2}</option>${3}
<option value="${1}">${2:TARGET}</option>${3}
snippet label
<label>${1}: <input type="${2}" /><label>${3}
<label>${1}: <input type="${2:TARGET}" /><label>${3}
snippet labelfor
<label for="${1}:id">${2}</label>${3}
<label for="${1}:id">${2:TARGET}</label>${3}
snippet fiedset
<fiedlset>${1}</fiedset>${2}
<fiedlset>${1:TARGET}</fiedset>${2}
snippet legend
<legend>${1}</legend>${2}
<legend>${1:TARGET}</legend>${2}
snippet id
id="${1}"${2}
@ -217,19 +218,20 @@ snippet class
class="${1}"${2}
snippet pclass
<p class="${1}">${2}</p>${3}
<p class="${1}">${2:TARGET}</p>${3}
snippet pid
<p id="${1}">${2}</p>${3}
<p id="${1}">${2:TARGET}</p>${3}
snippet divid
<div id="${1}">${2}</div>${3}
<div id="${1}">${2:TARGET}</div>${3}
snippet divclass
<div class="${1}">${2}</div>${3}
<div class="${1}">${2:TARGET}</div>${3}
snippet img
<img src="${1}">${2}
snippet div
<div ${1:id="${2:someid\}"}>${3}</div>${4}
<div ${1:id="${2:someid\}"}>${3:TARGET}</div>${4}

View File

@ -532,6 +532,7 @@ CHANGELOG *neosnippet-changelog*
- Added FAQ section.
- Added indent option.
- Added <Plug>(neosnippet_register_oneshot_snippet).
- Refactored snippets files.
2012-10-29
- Improved parse of snippets file.