YASnippet is an actively used text markup language created in 2008.

11Years Old 2,594Users 0Jobs
  • YASnippet ranks in the top 50% of languages
  • the YASnippet website
  • YASnippet on github
  • YASnippet first appeared in 2008
  • file extensions for YASnippet include yasnippet
  • I have 35 facts about YASnippet. what would you like to know? email me and let me know how I can help.

Example code from the web:

# -*- mode: snippet -*-
# name: fun
# key: fun
# expand-env: ((yas-indent-line 'fixed))
# --
${1:function-name} :: ${2:type}
$1 ${3:arguments} $0

Example code from Linguist:

# name: Read stdin
# key: stdin
# group: es6
# --
new Promise(resolve => {
	let input = "";
	process.stdin.setEncoding("UTF8");
	process.stdin.on("readable", () => {
		const chunk = process.stdin.read();
		null !== chunk ? input += chunk : resolve(input);
	})
}).then(data => {
	$1
});

Last updated October 14th, 2019