Files
settings-webstorm/home/.vim/snippets/javascript-gf3.snippets
2013-01-03 15:06:48 +00:00

36 lines
761 B
Plaintext
Executable File

# Add Comment
snippet com
/* ------------------------------ ${1:Title} ------------------------------ */$2
snippet comm
/*------------------------------------*\
${1:Title}
\*------------------------------------*/$2
# jQuery
snippet jq
jQuery${1:()}
# jQuery Ready
snippet jqr
jQuery(function() {
${1:codes}
});
# Prototype DOM loaded
snippet pdl
document.observe("dom:loaded", function(${1:event}) {
${2:codes}
});
# Function
snippet fn
function(${1:param}) { ${2:codes}}
# PDoc
snippet pdoc
/**
* ${1:Class#method(param) -> Return}
* ${2:- param (Type): Description}
*
* ${3:Method description.}
*
* ### Examples
*
* ${4:irc_instance.raw(":YourNick TOPIC #channel :LOL This is awesome!"); // Set a channel topic}
**/