...
-# # binding: C-c C-c C-m -# # -- -#=(when yas/prefix "\n")=$0=(when yas/prefix "\n")=
- -# This binding will be recorded in the keymap -# ==html-mode-map==. To expand a paragraph tag newlines, just -# press ==C-u C-c C-c C-m==. Omitting the ==C-u== will expand the -# paragraph tag without newlines. - -# ==# contributor:== snippet author -# --------------------------------------------------- - -# This is optional and has no effect whatsoever on snippet -# functionality, but it looks nice. - -# Template syntax -# =============== - -# The syntax of the snippet template is simple but powerful, very -# similar to TextMate's. - -# Plain Text -# ---------- - -# Arbitrary text can be included as the content of a template. They are -# usually interpreted as plain text, except ==$== and =====. You need to -# use ==\== to escape them: ==\$== and ==\===. The ==\== itself may also -# needed to be escaped as ==\\== sometimes. - -# Embedded Emacs-lisp code -# ------------------------ - -# Emacs-Lisp code can be embedded inside the template, written inside -# back-quotes (=====). The lisp forms are evaluated when the snippet is -# being expanded. The evaluation is done in the same buffer as the -# snippet being expanded. - -# Here's an example for ==c-mode== to calculate the header file guard -# dynamically: - -# .. sourcecode:: text - -# #ifndef ${1:_=(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))=_H_} -# #define $1 - -# $0 - -# #endif /* $1 */ - -# From version 0.6, snippets expansions are run with some special -# Emacs-lisp variables bound. One of this is ==yas/selected-text==. You -# can therefore define a snippet like: - -# .. sourcecode:: text - -# for ($1;$2;$3) { -# =yas/selected-text=$0 -# } - -# to "wrap" the selected region inside your recently inserted -# snippet. Alternatively, you can also customize the variable -# ==yas/wrap-around-region== to ==t== which will do this automatically. - -# Tab stop fields -# --------------- - -# Tab stops are fields that you can navigate back and forth by ==TAB== -# and ==S-TAB==. They are written by ==$== followed with a -# number. ==$0== has the special meaning of the *exit point* of a -# snippet. That is the last place to go when you've traveled all the -# fields. Here's a typical example: - -# .. sourcecode:: text - -#...
+# # binding: C-c C-c C-m +# # -- +#=(when yas/prefix "\n")=$0=(when yas/prefix "\n")=
+ +# This binding will be recorded in the keymap +# ==html-mode-map==. To expand a paragraph tag newlines, just +# press ==C-u C-c C-c C-m==. Omitting the ==C-u== will expand the +# paragraph tag without newlines. + +# ==# contributor:== snippet author +# --------------------------------------------------- + +# This is optional and has no effect whatsoever on snippet +# functionality, but it looks nice. + +# Template syntax +# =============== + +# The syntax of the snippet template is simple but powerful, very +# similar to TextMate's. + +# Plain Text +# ---------- + +# Arbitrary text can be included as the content of a template. They are +# usually interpreted as plain text, except ==$== and =====. You need to +# use ==\== to escape them: ==\$== and ==\===. The ==\== itself may also +# needed to be escaped as ==\\== sometimes. + +# Embedded Emacs-lisp code +# ------------------------ + +# Emacs-Lisp code can be embedded inside the template, written inside +# back-quotes (=====). The lisp forms are evaluated when the snippet is +# being expanded. The evaluation is done in the same buffer as the +# snippet being expanded. + +# Here's an example for ==c-mode== to calculate the header file guard +# dynamically: + +# .. sourcecode:: text + +# #ifndef ${1:_=(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))=_H_} +# #define $1 + +# $0 + +# #endif /* $1 */ + +# From version 0.6, snippets expansions are run with some special +# Emacs-lisp variables bound. One of this is ==yas/selected-text==. You +# can therefore define a snippet like: + +# .. sourcecode:: text + +# for ($1;$2;$3) { +# =yas/selected-text=$0 +# } + +# to "wrap" the selected region inside your recently inserted +# snippet. Alternatively, you can also customize the variable +# ==yas/wrap-around-region== to ==t== which will do this automatically. + +# Tab stop fields +# --------------- + +# Tab stops are fields that you can navigate back and forth by ==TAB== +# and ==S-TAB==. They are written by ==$== followed with a +# number. ==$0== has the special meaning of the *exit point* of a +# snippet. That is the last place to go when you've traveled all the +# fields. Here's a typical example: + +# .. sourcecode:: text + +#