mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 05:03:04 +00:00
Fix some doc formatting
* doc/snippet-development.org (Template Syntax): (Placeholder fields, Mirrors): Text inside dedicated target <<angle brackets>> does not show up in output, so duplicate it. Add descriptions to avoid getting numbers instead of names in links.
This commit is contained in:
parent
78fe979b7b
commit
df229b9ab8
@ -194,7 +194,7 @@ previous snippet.
|
||||
This is optional and has no effect whatsoever on snippet functionality,
|
||||
but it looks nice.
|
||||
|
||||
* <<Template syntax>>
|
||||
* Template Syntax
|
||||
|
||||
The syntax of the snippet template is simple but powerful, very similar
|
||||
to TextMate's.
|
||||
@ -262,10 +262,10 @@ like this:
|
||||
|
||||
They acts 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.
|
||||
The number can be omitted if you don't want to create [[mirrors]] or
|
||||
[[transformations]] for this field.
|
||||
The number can be omitted if you don't want to create [[mirrors-fields][mirrors]] or
|
||||
[[mirror-transformations][transformations]] for this field.
|
||||
|
||||
** <<Mirrors>>
|
||||
** Mirrors <<mirrors-fields>>
|
||||
|
||||
We refer the tab stops with placeholders as a /field/. A field can have
|
||||
mirrors. Its mirrors will get updated when you change the text of a
|
||||
@ -285,7 +285,7 @@ The tab stops with the same number to the field act as its mirrors. If
|
||||
none of the tab stops has an initial value, the first one is selected as
|
||||
the field and others mirrors.
|
||||
|
||||
** Mirrors with <<transformations>>
|
||||
** Mirrors with transformations <<mirror-transformations>>
|
||||
|
||||
If the value of an =${n:=-construct starts with and contains =$(=,
|
||||
then it is interpreted as a mirror for field =n= with a
|
||||
|
Loading…
x
Reference in New Issue
Block a user