mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-15 14:03:04 +00:00
Fix typos in "Writing Templates" documentation
* doc/snippet-development.org: Fix typos. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
ba73f20bc3
commit
60666310af
@ -80,7 +80,7 @@ Here's a list of currently supported directives:
|
|||||||
|
|
||||||
This is the probably the most important directive, it's the
|
This is the probably the most important directive, it's the
|
||||||
abbreviation you type to expand a snippet just before hitting the key
|
abbreviation you type to expand a snippet just before hitting the key
|
||||||
that runs [[sym:yas-expand][=yas-expand=]]. If you don't specify this
|
that runs [[sym:yas-expand][=yas-expand=]]. If you don't specify this,
|
||||||
the snippet will not be expandable through the trigger mechanism.
|
the snippet will not be expandable through the trigger mechanism.
|
||||||
|
|
||||||
** =# name:= snippet name
|
** =# name:= snippet name
|
||||||
@ -89,8 +89,8 @@ This is a one-line description of the snippet. It will be displayed in
|
|||||||
the menu. It's a good idea to select a descriptive name for a snippet --
|
the menu. It's a good idea to select a descriptive name for a snippet --
|
||||||
especially distinguishable among similar snippets.
|
especially distinguishable among similar snippets.
|
||||||
|
|
||||||
If you omit this name it will default to the file name the snippet was
|
If you omit this name, it will default to the file name the snippet
|
||||||
loaded from.
|
was loaded from.
|
||||||
|
|
||||||
** =# condition:= snippet condition
|
** =# condition:= snippet condition
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ like this:
|
|||||||
${N:default value}
|
${N:default value}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
They acts as the default value for a tab stop. But when you firstly
|
They act as the default value for a tab stop. But when you firstly
|
||||||
type at a tab stop, the default value will be replaced by your typing.
|
type at a tab stop, the default value will be replaced by your typing.
|
||||||
The number can be omitted if you don't want to create [[mirrors-fields][mirrors]] or
|
The number can be omitted if you don't want to create [[mirrors-fields][mirrors]] or
|
||||||
[[mirror-transformations][transformations]] for this field.
|
[[mirror-transformations][transformations]] for this field.
|
||||||
@ -365,9 +365,9 @@ is not. Here's an snippet for rst title:
|
|||||||
** Fields with transformations
|
** Fields with transformations
|
||||||
|
|
||||||
From version 0.6 on, you can also have lisp transformation inside
|
From version 0.6 on, you can also have lisp transformation inside
|
||||||
fields. These work mostly mirror transformations but are evaluated when
|
fields. These work mostly like mirror transformations. However, they
|
||||||
you first enter the field, after each change you make to the field and
|
are evaluated when you first enter the field, after each change you
|
||||||
also just before you exit the field.
|
make to the field and also just before you exit the field.
|
||||||
|
|
||||||
The syntax is also a tiny bit different, so that the parser can
|
The syntax is also a tiny bit different, so that the parser can
|
||||||
distinguish between fields and mirrors. In the following example
|
distinguish between fields and mirrors. In the following example
|
||||||
@ -431,7 +431,7 @@ From version 0.6 on, you can also have nested placeholders of the type:
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
This allows you to choose if you want to give this =div= an =id=
|
This allows you to choose if you want to give this =div= an =id=
|
||||||
attribute. If you tab forward after expanding it will let you change
|
attribute. If you tab forward after expanding, it will let you change
|
||||||
"some\_id" to whatever you like. Alternatively, you can just press =C-d=
|
"some\_id" to whatever you like. Alternatively, you can just press =C-d=
|
||||||
(which executes [[sym:yas-skip-and-clear-or-delete-char][=yas-skip-and-clear-or-delete-char=]]) and go straight to
|
(which executes [[sym:yas-skip-and-clear-or-delete-char][=yas-skip-and-clear-or-delete-char=]]) and go straight to
|
||||||
the exit marker.
|
the exit marker.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user