Source

python emacs / yasnippet-0.6.1c / snippets / text-mode / cc-mode / c-mode / printf

1
2
3
4
5
6
# -*- mode: snippet -*-
# name : printf 
# contributor : joaotavora
# --
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
}$2${1:$(if (string-match "%" text) "\);" "")}