Add some subheadings for Snippets section.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5275 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
75a366c1e3
commit
b4f33106b1
10
ChangeLog
10
ChangeLog
@ -1,11 +1,3 @@
|
||||
2010-10-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
* src/templates.c:
|
||||
Strip the output of {command: } templates (closes #3079063).
|
||||
* doc/geany.txt, doc/geany.html:
|
||||
Document hidden msgwin_*_visible preferences.
|
||||
|
||||
|
||||
2010-10-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/tools.c, doc/geany.txt, doc/geany.html:
|
||||
@ -14,6 +6,8 @@
|
||||
* src/editor.c:
|
||||
Add snippet keybinding support for keys in user snippets.conf (based
|
||||
on patch by Eugene Arshinov, thanks). No docs yet.
|
||||
* doc/geany.txt, doc/geany.html:
|
||||
Add some subheadings for Snippets section.
|
||||
|
||||
|
||||
2010-09-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
1808
doc/geany.html
1808
doc/geany.html
File diff suppressed because it is too large
Load Diff
@ -994,6 +994,8 @@ with "Enrico Tröger". The key to start autocompletion can be changed
|
||||
in the preferences dialog, by default it is TAB. The corresponding keybinding
|
||||
is called ``Complete snippet``.
|
||||
|
||||
**Paths**
|
||||
|
||||
The system-wide configuration file can be found in
|
||||
``$prefix/share/geany``, where ``$prefix`` is the path where Geany is
|
||||
installed (see `Installation prefix`_). It is not recommended to edit the
|
||||
@ -1013,6 +1015,8 @@ configuration directory. Alternatively, you can create a file
|
||||
to change. All missing settings will be read from the global snippets
|
||||
file in ``$prefix/share/geany``.
|
||||
|
||||
**Snippet groups**
|
||||
|
||||
The file ``snippets.conf`` contains sections defining snippets that
|
||||
are available for particular filetypes and in general.
|
||||
|
||||
@ -1029,11 +1033,11 @@ filetype. Snippets in filetype sections will hide snippets with the
|
||||
same name in the "Default" section when used in a file of that
|
||||
filetype.
|
||||
|
||||
**Substitution sequences for snippets**
|
||||
|
||||
To define snippets you can use several special character sequences which
|
||||
will be replaced when using the snippet:
|
||||
|
||||
**Substitution Sequences for snippets**
|
||||
|
||||
================ =========================================================
|
||||
\\n or %newline% Insert a new line (it will be replaced by the used EOL
|
||||
char(s): LF, CR/LF, or CR).
|
||||
@ -1061,6 +1065,8 @@ string as a snippet and use it later in Geany. It is not limited
|
||||
to existing contructs of certain programming languages(like ``if``,
|
||||
``for``, ``switch``). Define whatever you need.
|
||||
|
||||
**Template wildcards**
|
||||
|
||||
Since Geany 0.15 you can also use most of the available templates wildcards
|
||||
listed in `Template wildcards`_. All wildcards which are listed as
|
||||
`available in snippets` can be used. For instance to improve the above example::
|
||||
@ -1072,6 +1078,8 @@ listed in `Template wildcards`_. All wildcards which are listed as
|
||||
this will replace ``myname`` with "My name is " and the value of the template
|
||||
preference ``developer``.
|
||||
|
||||
**Word characters**
|
||||
|
||||
You can change the way Geany recognizes the word to complete,
|
||||
that is how the start and end of a word is recognised when the
|
||||
snippet completion is requested. The section "Special" may
|
||||
|
Loading…
x
Reference in New Issue
Block a user