Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

YASnippet

< >

YASnippet is an open source text markup language created in 2008 by Zhang Chiyuan.

#289on PLDB 16Years Old 403Repos
Download source code:
git clone https://github.com/joaotavora/yasnippet
Homepage · Source Code

A template system for Emacs


Example 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 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 });

Language features

Feature Supported Example Token
Comments ✓ # A comment
Line Comments ✓ # A comment #
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v161.0.4