mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 13:33:04 +00:00
Document type directive
* doc/snippet-development.org: Add type to directive list.
This commit is contained in:
parent
4c16eaee0e
commit
6b04dada67
@ -169,6 +169,16 @@ 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=
|
paragraph tag newlines, just press =C-u C-c C-c C-m=. Omitting the =C-u=
|
||||||
will expand the paragraph tag without newlines.
|
will expand the paragraph tag without newlines.
|
||||||
|
|
||||||
|
** =# type:= =snippet= or =command=
|
||||||
|
|
||||||
|
If the =type= directive is set to =command=, the body of the snippet
|
||||||
|
is interpreted as lisp code to be evaluated when the snippet is
|
||||||
|
triggered.
|
||||||
|
|
||||||
|
If it's =snippet= (the default when there is no =type= directive), the
|
||||||
|
snippet body will be parsed according to the [[Template Syntax]],
|
||||||
|
described below.
|
||||||
|
|
||||||
** =# uuid:= unique identifier
|
** =# uuid:= unique identifier
|
||||||
|
|
||||||
This provides to a way to identify a snippet, independent of its name.
|
This provides to a way to identify a snippet, independent of its name.
|
||||||
@ -180,7 +190,7 @@ previous snippet.
|
|||||||
This is optional and has no effect whatsoever on snippet functionality,
|
This is optional and has no effect whatsoever on snippet functionality,
|
||||||
but it looks nice.
|
but it looks nice.
|
||||||
|
|
||||||
* Template syntax
|
* <<Template syntax>>
|
||||||
|
|
||||||
The syntax of the snippet template is simple but powerful, very similar
|
The syntax of the snippet template is simple but powerful, very similar
|
||||||
to TextMate's.
|
to TextMate's.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user