Fix warnings
[geany-mirror.git] / doc / geany.html
blob8136bf9f86611a2023d6b3cff487817e8a2ecb75
1 <?xml version="1.0" encoding="utf-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <meta name="generator" content="Docutils 0.9: http://docutils.sourceforge.net/" />
8 <title>Geany</title>
9 <meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz Colomban Wendling" />
10 <meta name="date" content="2011-10-02" />
12 <style type="text/css">
15 :Author: Enrico Troeger
16 :Contact: enrico(dot)troeger(at)uvena(dot)de
17 :Copyright: This stylesheet has been placed in the public domain.
19 Stylesheet for Geany's documentation based on a version of John Gabriele.
22 @media screen {
24 body {
25 background-color: #f2f2f2;
26 color: #404040;
27 margin-left: 0.4em;
28 max-width: 60em;
29 font-size: 90%;
32 a {
33 color: #990000;
36 a:visited {
37 color: #7E558E;
40 a:hover {
41 text-decoration: none;
44 h1 {
45 border-top: 1px dotted;
46 margin-top: 2em;
49 h1, h2, h3 {
50 font-family: sans-serif;
51 color: #5D0606;
54 h1.title {
55 text-align: left }
57 h2 {
58 margin-top: 30px;
61 h2.subtitle {
62 text-align: left }
64 h3 {
65 padding-left: 3px;
68 blockquote, pre {
69 border: 1px solid;
70 padding: 0.4em;
73 blockquote {
74 font-family: sans-serif;
75 background-color: #DBEDD5;
76 border: 1px dotted;
77 border-left: 4px solid;
78 border-color: #9FD98C;
81 pre {
82 background-color: #ECDFCE;
83 border: 1px dotted;
84 border-left: 4px solid;
85 border-color: #D9BE9A;
88 tt, pre, code {
89 color: #6D4212;
92 table {
93 border: 1px solid #D9BE9A;
96 th {
97 background-color: #ECDFCE;
98 border: 1px dotted #D9BE9A;
101 td {
102 border: 1px dotted #D9BE9A;
105 .docinfo-name {
106 color: #5D0606;
109 p.admonition-title {
110 color: #990000;
111 font-weight: bold;
114 div.note {
115 margin: 1em 3em;
116 padding: 0em;
119 dt {
120 font-style: italic;
125 @media print {
129 </style>
131 </head>
132 <body>
133 <div class="document" id="geany">
135 <h1 class="title">Geany</h1>
136 <h2 class="subtitle" id="a-fast-light-gtk-ide">A fast, light, GTK+ IDE</h2>
138 <table class="docinfo" frame="void" rules="none">
139 <col class="docinfo-name" />
140 <col class="docinfo-content" />
141 <tbody valign="top">
142 <tr><th class="docinfo-name">Authors:</th>
143 <td>Enrico Tröger
144 <br />Nick Treleaven
145 <br />Frank Lanitz
146 <br />Colomban Wendling</td></tr>
147 <tr><th class="docinfo-name">Date:</th>
148 <td>2011-10-02</td></tr>
149 <tr><th class="docinfo-name">Version:</th>
150 <td>1.22</td></tr>
151 </tbody>
152 </table>
154 <p>Copyright © 2005-2011</p>
155 <p>This document is distributed under the terms of the GNU General Public
156 License as published by the Free Software Foundation; either version 2
157 of the License, or (at your option) any later version. A copy of this
158 license can be found in the file COPYING included with the source code
159 of this program, and also in the chapter <a class="reference internal" href="#gnu-general-public-license">GNU General Public License</a>.</p>
160 <div class="contents topic" id="contents">
161 <p class="topic-title first">Contents</p>
162 <ul class="simple">
163 <li><a class="reference internal" href="#introduction" id="id7">Introduction</a><ul>
164 <li><a class="reference internal" href="#about-geany" id="id8">About Geany</a></li>
165 <li><a class="reference internal" href="#where-to-get-it" id="id9">Where to get it</a></li>
166 <li><a class="reference internal" href="#license" id="id10">License</a></li>
167 <li><a class="reference internal" href="#about-this-document" id="id11">About this document</a></li>
168 </ul>
169 </li>
170 <li><a class="reference internal" href="#installation" id="id12">Installation</a><ul>
171 <li><a class="reference internal" href="#requirements" id="id13">Requirements</a></li>
172 <li><a class="reference internal" href="#binary-packages" id="id14">Binary packages</a></li>
173 <li><a class="reference internal" href="#source-compilation" id="id15">Source compilation</a><ul>
174 <li><a class="reference internal" href="#autotools-based-build-system" id="id16">Autotools based build system</a></li>
175 <li><a class="reference internal" href="#waf-based-build-system" id="id17">Waf based build system</a><ul>
176 <li><a class="reference internal" href="#waf-cache" id="id18">Waf cache</a><ul>
177 <li><a class="reference internal" href="#cleaning-the-cache" id="id19">Cleaning the cache</a></li>
178 </ul>
179 </li>
180 </ul>
181 </li>
182 <li><a class="reference internal" href="#custom-installation" id="id20">Custom installation</a></li>
183 <li><a class="reference internal" href="#dynamic-linking-loader-support-and-vte" id="id21">Dynamic linking loader support and VTE</a></li>
184 <li><a class="reference internal" href="#build-problems" id="id22">Build problems</a></li>
185 </ul>
186 </li>
187 <li><a class="reference internal" href="#installation-prefix" id="id23">Installation prefix</a></li>
188 </ul>
189 </li>
190 <li><a class="reference internal" href="#usage" id="id24">Usage</a><ul>
191 <li><a class="reference internal" href="#getting-started" id="id25">Getting started</a></li>
192 <li><a class="reference internal" href="#the-geany-workspace" id="id26">The Geany workspace</a></li>
193 <li><a class="reference internal" href="#command-line-options" id="id27">Command line options</a></li>
194 <li><a class="reference internal" href="#general" id="id28">General</a><ul>
195 <li><a class="reference internal" href="#startup" id="id29">Startup</a></li>
196 <li><a class="reference internal" href="#opening-files-from-the-command-line-in-a-running-instance" id="id30">Opening files from the command-line in a running instance</a></li>
197 <li><a class="reference internal" href="#virtual-terminal-emulator-widget-vte" id="id31">Virtual terminal emulator widget (VTE)</a></li>
198 <li><a class="reference internal" href="#defining-own-widget-styles-using-gtkrc-2-0" id="id32">Defining own widget styles using .gtkrc-2.0</a></li>
199 </ul>
200 </li>
201 <li><a class="reference internal" href="#documents" id="id33">Documents</a><ul>
202 <li><a class="reference internal" href="#switching-between-documents" id="id34">Switching between documents</a></li>
203 </ul>
204 </li>
205 <li><a class="reference internal" href="#character-sets-and-unicode-byte-order-mark-bom" id="id35">Character sets and Unicode Byte-Order-Mark (BOM)</a><ul>
206 <li><a class="reference internal" href="#using-character-sets" id="id36">Using character sets</a></li>
207 <li><a class="reference internal" href="#in-file-encoding-specification" id="id37">In-file encoding specification</a></li>
208 <li><a class="reference internal" href="#special-encoding-none" id="id38">Special encoding &quot;None&quot;</a></li>
209 <li><a class="reference internal" href="#unicode-byte-order-mark-bom" id="id39">Unicode Byte-Order-Mark (BOM)</a></li>
210 </ul>
211 </li>
212 <li><a class="reference internal" href="#editing" id="id40">Editing</a><ul>
213 <li><a class="reference internal" href="#folding" id="id41">Folding</a></li>
214 <li><a class="reference internal" href="#column-mode-editing-rectangular-selections" id="id42">Column mode editing (rectangular selections)</a></li>
215 <li><a class="reference internal" href="#drag-and-drop-of-text" id="id43">Drag and drop of text</a></li>
216 <li><a class="reference internal" href="#indentation" id="id44">Indentation</a><ul>
217 <li><a class="reference internal" href="#applying-new-indentation-settings" id="id45">Applying new indentation settings</a></li>
218 <li><a class="reference internal" href="#detecting-indent-type" id="id46">Detecting indent type</a></li>
219 </ul>
220 </li>
221 <li><a class="reference internal" href="#auto-indentation" id="id47">Auto-indentation</a></li>
222 <li><a class="reference internal" href="#bookmarks" id="id48">Bookmarks</a></li>
223 <li><a class="reference internal" href="#code-navigation-history" id="id49">Code navigation history</a></li>
224 <li><a class="reference internal" href="#sending-text-through-custom-commands" id="id50">Sending text through custom commands</a></li>
225 <li><a class="reference internal" href="#context-actions" id="id51">Context actions</a></li>
226 <li><a class="reference internal" href="#autocompletion" id="id52">Autocompletion</a><ul>
227 <li><a class="reference internal" href="#word-part-completion" id="id53">Word part completion</a></li>
228 <li><a class="reference internal" href="#scope-autocompletion" id="id54">Scope autocompletion</a></li>
229 </ul>
230 </li>
231 <li><a class="reference internal" href="#user-definable-snippets" id="id55">User-definable snippets</a><ul>
232 <li><a class="reference internal" href="#snippet-keybindings" id="id56">Snippet keybindings</a></li>
233 </ul>
234 </li>
235 <li><a class="reference internal" href="#inserting-unicode-characters" id="id57">Inserting Unicode characters</a></li>
236 </ul>
237 </li>
238 <li><a class="reference internal" href="#search-replace-and-go-to" id="id58">Search, replace and go to</a><ul>
239 <li><a class="reference internal" href="#toolbar-entries" id="id59">Toolbar entries</a><ul>
240 <li><a class="reference internal" href="#search-bar" id="id60">Search bar</a></li>
241 </ul>
242 </li>
243 <li><a class="reference internal" href="#find" id="id61">Find</a><ul>
244 <li><a class="reference internal" href="#matching-options" id="id62">Matching options</a></li>
245 <li><a class="reference internal" href="#find-all" id="id63">Find all</a></li>
246 <li><a class="reference internal" href="#change-font-in-search-dialog-text-fields" id="id64">Change font in search dialog text fields</a></li>
247 </ul>
248 </li>
249 <li><a class="reference internal" href="#find-selection" id="id65">Find selection</a></li>
250 <li><a class="reference internal" href="#find-usage" id="id66">Find usage</a></li>
251 <li><a class="reference internal" href="#find-in-files" id="id67">Find in files</a><ul>
252 <li><a class="reference internal" href="#filtering-out-version-control-files" id="id68">Filtering out version control files</a></li>
253 </ul>
254 </li>
255 <li><a class="reference internal" href="#replace" id="id69">Replace</a><ul>
256 <li><a class="reference internal" href="#replace-all" id="id70">Replace all</a></li>
257 </ul>
258 </li>
259 <li><a class="reference internal" href="#go-to-tag-definition" id="id71">Go to tag definition</a></li>
260 <li><a class="reference internal" href="#go-to-tag-declaration" id="id72">Go to tag declaration</a></li>
261 <li><a class="reference internal" href="#go-to-line" id="id73">Go to line</a></li>
262 <li><a class="reference internal" href="#regular-expressions" id="id74">Regular expressions</a></li>
263 </ul>
264 </li>
265 <li><a class="reference internal" href="#view-menu" id="id75">View menu</a><ul>
266 <li><a class="reference internal" href="#color-schemes-menu" id="id76">Color schemes menu</a></li>
267 </ul>
268 </li>
269 <li><a class="reference internal" href="#tags" id="id77">Tags</a><ul>
270 <li><a class="reference internal" href="#workspace-tags" id="id78">Workspace tags</a></li>
271 <li><a class="reference internal" href="#global-tags" id="id79">Global tags</a><ul>
272 <li><a class="reference internal" href="#default-global-tags-files" id="id80">Default global tags files</a></li>
273 <li><a class="reference internal" href="#global-tags-file-format" id="id81">Global tags file format</a></li>
274 <li><a class="reference internal" href="#generating-a-global-tags-file" id="id82">Generating a global tags file</a></li>
275 </ul>
276 </li>
277 <li><a class="reference internal" href="#c-ignore-tags" id="id83">C ignore.tags</a></li>
278 </ul>
279 </li>
280 <li><a class="reference internal" href="#preferences" id="id84">Preferences</a><ul>
281 <li><a class="reference internal" href="#general-startup-preferences" id="id85">General Startup preferences</a><ul>
282 <li><a class="reference internal" href="#id1" id="id86">Startup</a></li>
283 <li><a class="reference internal" href="#shutdown" id="id87">Shutdown</a></li>
284 <li><a class="reference internal" href="#paths" id="id88">Paths</a></li>
285 </ul>
286 </li>
287 <li><a class="reference internal" href="#general-miscellaneous-preferences" id="id89">General Miscellaneous preferences</a><ul>
288 <li><a class="reference internal" href="#miscellaneous" id="id90">Miscellaneous</a></li>
289 <li><a class="reference internal" href="#search" id="id91">Search</a></li>
290 <li><a class="reference internal" href="#projects" id="id92">Projects</a></li>
291 </ul>
292 </li>
293 <li><a class="reference internal" href="#interface-preferences" id="id93">Interface preferences</a><ul>
294 <li><a class="reference internal" href="#sidebar" id="id94">Sidebar</a></li>
295 <li><a class="reference internal" href="#fonts" id="id95">Fonts</a></li>
296 <li><a class="reference internal" href="#id2" id="id96">Miscellaneous</a></li>
297 </ul>
298 </li>
299 <li><a class="reference internal" href="#interface-notebook-tab-preferences" id="id97">Interface Notebook tab preferences</a><ul>
300 <li><a class="reference internal" href="#editor-tabs" id="id98">Editor tabs</a></li>
301 <li><a class="reference internal" href="#tab-positions" id="id99">Tab positions</a></li>
302 </ul>
303 </li>
304 <li><a class="reference internal" href="#interface-toolbar-preferences" id="id100">Interface Toolbar preferences</a><ul>
305 <li><a class="reference internal" href="#toolbar" id="id101">Toolbar</a></li>
306 <li><a class="reference internal" href="#appearance" id="id102">Appearance</a></li>
307 </ul>
308 </li>
309 <li><a class="reference internal" href="#editor-features-preferences" id="id103">Editor Features preferences</a><ul>
310 <li><a class="reference internal" href="#features" id="id104">Features</a></li>
311 </ul>
312 </li>
313 <li><a class="reference internal" href="#editor-indentation-preferences" id="id105">Editor Indentation preferences</a><ul>
314 <li><a class="reference internal" href="#indentation-group" id="id106">Indentation group</a></li>
315 </ul>
316 </li>
317 <li><a class="reference internal" href="#editor-completions-preferences" id="id107">Editor Completions preferences</a><ul>
318 <li><a class="reference internal" href="#completions" id="id108">Completions</a></li>
319 <li><a class="reference internal" href="#auto-close-quotes-and-brackets" id="id109">Auto-close quotes and brackets</a></li>
320 </ul>
321 </li>
322 <li><a class="reference internal" href="#editor-display-preferences" id="id110">Editor Display preferences</a><ul>
323 <li><a class="reference internal" href="#display" id="id111">Display</a></li>
324 <li><a class="reference internal" href="#long-line-marker" id="id112">Long line marker</a></li>
325 <li><a class="reference internal" href="#virtual-spaces" id="id113">Virtual spaces</a></li>
326 </ul>
327 </li>
328 <li><a class="reference internal" href="#files-preferences" id="id114">Files preferences</a><ul>
329 <li><a class="reference internal" href="#new-files" id="id115">New files</a></li>
330 <li><a class="reference internal" href="#saving-files" id="id116">Saving files</a></li>
331 <li><a class="reference internal" href="#id3" id="id117">Miscellaneous</a></li>
332 </ul>
333 </li>
334 <li><a class="reference internal" href="#tools-preferences" id="id118">Tools preferences</a><ul>
335 <li><a class="reference internal" href="#tool-paths" id="id119">Tool paths</a></li>
336 <li><a class="reference internal" href="#commands" id="id120">Commands</a></li>
337 </ul>
338 </li>
339 <li><a class="reference internal" href="#template-preferences" id="id121">Template preferences</a><ul>
340 <li><a class="reference internal" href="#template-data" id="id122">Template data</a></li>
341 </ul>
342 </li>
343 <li><a class="reference internal" href="#keybinding-preferences" id="id123">Keybinding preferences</a></li>
344 <li><a class="reference internal" href="#printing-preferences" id="id124">Printing preferences</a></li>
345 <li><a class="reference internal" href="#various-preferences" id="id125">Various preferences</a></li>
346 <li><a class="reference internal" href="#terminal-vte-preferences" id="id126">Terminal (VTE) preferences</a><ul>
347 <li><a class="reference internal" href="#terminal-widget" id="id127">Terminal widget</a></li>
348 </ul>
349 </li>
350 </ul>
351 </li>
352 <li><a class="reference internal" href="#project-management" id="id128">Project management</a><ul>
353 <li><a class="reference internal" href="#new-project" id="id129">New project</a></li>
354 <li><a class="reference internal" href="#project-properties" id="id130">Project properties</a></li>
355 <li><a class="reference internal" href="#open-project" id="id131">Open project</a></li>
356 <li><a class="reference internal" href="#close-project" id="id132">Close project</a></li>
357 </ul>
358 </li>
359 <li><a class="reference internal" href="#build-menu" id="id133">Build menu</a><ul>
360 <li><a class="reference internal" href="#indicators" id="id134">Indicators</a></li>
361 <li><a class="reference internal" href="#default-build-menu-items" id="id135">Default build menu items</a><ul>
362 <li><a class="reference internal" href="#compile" id="id136">Compile</a></li>
363 <li><a class="reference internal" href="#build" id="id137">Build</a></li>
364 <li><a class="reference internal" href="#make" id="id138">Make</a></li>
365 <li><a class="reference internal" href="#make-custom-target" id="id139">Make custom target</a></li>
366 <li><a class="reference internal" href="#make-object" id="id140">Make object</a></li>
367 <li><a class="reference internal" href="#next-error" id="id141">Next error</a></li>
368 <li><a class="reference internal" href="#previous-error" id="id142">Previous error</a></li>
369 <li><a class="reference internal" href="#execute" id="id143">Execute</a></li>
370 <li><a class="reference internal" href="#stopping-running-processes" id="id144">Stopping running processes</a><ul>
371 <li><a class="reference internal" href="#terminal-emulators" id="id145">Terminal emulators</a></li>
372 </ul>
373 </li>
374 <li><a class="reference internal" href="#set-build-commands" id="id146">Set build commands</a></li>
375 </ul>
376 </li>
377 <li><a class="reference internal" href="#build-menu-configuration" id="id147">Build menu configuration</a></li>
378 <li><a class="reference internal" href="#build-menu-commands-dialog" id="id148">Build menu commands dialog</a><ul>
379 <li><a class="reference internal" href="#substitutions-in-commands-and-working-directories" id="id149">Substitutions in commands and working directories</a></li>
380 <li><a class="reference internal" href="#build-menu-keyboard-shortcuts" id="id150">Build menu keyboard shortcuts</a></li>
381 <li><a class="reference internal" href="#old-settings" id="id151">Old settings</a></li>
382 </ul>
383 </li>
384 </ul>
385 </li>
386 <li><a class="reference internal" href="#printing-support" id="id152">Printing support</a></li>
387 <li><a class="reference internal" href="#plugins" id="id153">Plugins</a><ul>
388 <li><a class="reference internal" href="#plugin-manager" id="id154">Plugin manager</a></li>
389 </ul>
390 </li>
391 <li><a class="reference internal" href="#keybindings" id="id155">Keybindings</a><ul>
392 <li><a class="reference internal" href="#switching-documents" id="id156">Switching documents</a></li>
393 <li><a class="reference internal" href="#configurable-keybindings" id="id157">Configurable keybindings</a><ul>
394 <li><a class="reference internal" href="#file-keybindings" id="id158">File keybindings</a></li>
395 <li><a class="reference internal" href="#editor-keybindings" id="id159">Editor keybindings</a></li>
396 <li><a class="reference internal" href="#clipboard-keybindings" id="id160">Clipboard keybindings</a></li>
397 <li><a class="reference internal" href="#select-keybindings" id="id161">Select keybindings</a></li>
398 <li><a class="reference internal" href="#insert-keybindings" id="id162">Insert keybindings</a></li>
399 <li><a class="reference internal" href="#format-keybindings" id="id163">Format keybindings</a></li>
400 <li><a class="reference internal" href="#settings-keybindings" id="id164">Settings keybindings</a></li>
401 <li><a class="reference internal" href="#search-keybindings" id="id165">Search keybindings</a></li>
402 <li><a class="reference internal" href="#go-to-keybindings" id="id166">Go to keybindings</a></li>
403 <li><a class="reference internal" href="#view-keybindings" id="id167">View keybindings</a></li>
404 <li><a class="reference internal" href="#focus-keybindings" id="id168">Focus keybindings</a></li>
405 <li><a class="reference internal" href="#notebook-tab-keybindings" id="id169">Notebook tab keybindings</a></li>
406 <li><a class="reference internal" href="#document-keybindings" id="id170">Document keybindings</a></li>
407 <li><a class="reference internal" href="#build-keybindings" id="id171">Build keybindings</a></li>
408 <li><a class="reference internal" href="#tools-keybindings" id="id172">Tools keybindings</a></li>
409 <li><a class="reference internal" href="#help-keybindings" id="id173">Help keybindings</a></li>
410 </ul>
411 </li>
412 </ul>
413 </li>
414 </ul>
415 </li>
416 <li><a class="reference internal" href="#configuration-files" id="id174">Configuration files</a><ul>
417 <li><a class="reference internal" href="#configuration-file-paths" id="id175">Configuration file paths</a><ul>
418 <li><a class="reference internal" href="#paths-on-unix-like-systems" id="id176">Paths on Unix-like systems</a></li>
419 </ul>
420 </li>
421 <li><a class="reference internal" href="#tools-menu-items" id="id177">Tools menu items</a></li>
422 <li><a class="reference internal" href="#global-configuration-file" id="id178">Global configuration file</a></li>
423 <li><a class="reference internal" href="#filetype-definition-files" id="id179">Filetype definition files</a><ul>
424 <li><a class="reference internal" href="#filenames" id="id180">Filenames</a></li>
425 <li><a class="reference internal" href="#system-files" id="id181">System files</a></li>
426 <li><a class="reference internal" href="#user-files" id="id182">User files</a></li>
427 <li><a class="reference internal" href="#custom-filetypes" id="id183">Custom filetypes</a><ul>
428 <li><a class="reference internal" href="#creating-a-custom-filetype-from-an-existing-filetype" id="id184">Creating a custom filetype from an existing filetype</a></li>
429 </ul>
430 </li>
431 <li><a class="reference internal" href="#filetype-configuration" id="id185">Filetype configuration</a><ul>
432 <li><a class="reference internal" href="#styling-section" id="id186">[styling] section</a><ul>
433 <li><a class="reference internal" href="#using-a-named-style" id="id187">Using a named style</a></li>
434 <li><a class="reference internal" href="#reading-styles-from-another-filetype" id="id188">Reading styles from another filetype</a></li>
435 </ul>
436 </li>
437 <li><a class="reference internal" href="#keywords-section" id="id189">[keywords] section</a></li>
438 <li><a class="reference internal" href="#lexer-properties-section" id="id190">[lexer_properties] section</a></li>
439 <li><a class="reference internal" href="#settings-section" id="id191">[settings] section</a></li>
440 <li><a class="reference internal" href="#indentation-section" id="id192">[indentation] section</a></li>
441 <li><a class="reference internal" href="#build-settings-section" id="id193">[build_settings] section</a></li>
442 </ul>
443 </li>
444 <li><a class="reference internal" href="#special-file-filetypes-common" id="id194">Special file filetypes.common</a><ul>
445 <li><a class="reference internal" href="#named-styles-section" id="id195">[named_styles] section</a></li>
446 <li><a class="reference internal" href="#id4" id="id196">[styling] section</a></li>
447 <li><a class="reference internal" href="#id5" id="id197">[settings] section</a></li>
448 </ul>
449 </li>
450 </ul>
451 </li>
452 <li><a class="reference internal" href="#filetype-extensions" id="id198">Filetype extensions</a></li>
453 <li><a class="reference internal" href="#filetype-group-membership" id="id199">Filetype group membership</a></li>
454 <li><a class="reference internal" href="#preferences-file-format" id="id200">Preferences file format</a><ul>
455 <li><a class="reference internal" href="#build-menu-section" id="id201">[build-menu] section</a></li>
456 </ul>
457 </li>
458 <li><a class="reference internal" href="#project-file-format" id="id202">Project file format</a><ul>
459 <li><a class="reference internal" href="#build-menu-additions" id="id203">[build-menu] additions</a></li>
460 </ul>
461 </li>
462 <li><a class="reference internal" href="#templates" id="id204">Templates</a><ul>
463 <li><a class="reference internal" href="#template-meta-data" id="id205">Template meta data</a></li>
464 <li><a class="reference internal" href="#file-templates" id="id206">File templates</a><ul>
465 <li><a class="reference internal" href="#adding-file-templates" id="id207">Adding file templates</a></li>
466 </ul>
467 </li>
468 <li><a class="reference internal" href="#customizing-templates" id="id208">Customizing templates</a><ul>
469 <li><a class="reference internal" href="#template-wildcards" id="id209">Template wildcards</a><ul>
470 <li><a class="reference internal" href="#special-command-wildcard" id="id210">Special {command:} wildcard</a></li>
471 </ul>
472 </li>
473 </ul>
474 </li>
475 </ul>
476 </li>
477 <li><a class="reference internal" href="#customizing-the-toolbar" id="id211">Customizing the toolbar</a><ul>
478 <li><a class="reference internal" href="#manually-editing-the-toolbar-layout" id="id212">Manually editing the toolbar layout</a></li>
479 <li><a class="reference internal" href="#available-toolbar-elements" id="id213">Available toolbar elements</a></li>
480 </ul>
481 </li>
482 </ul>
483 </li>
484 <li><a class="reference internal" href="#plugin-documentation" id="id214">Plugin documentation</a><ul>
485 <li><a class="reference internal" href="#html-characters" id="id215">HTML Characters</a><ul>
486 <li><a class="reference internal" href="#insert-entity-dialog" id="id216">Insert entity dialog</a></li>
487 <li><a class="reference internal" href="#replace-special-chars-by-its-entity" id="id217">Replace special chars by its entity</a><ul>
488 <li><a class="reference internal" href="#at-typing-time" id="id218">At typing time</a></li>
489 <li><a class="reference internal" href="#bulk-replacement" id="id219">Bulk replacement</a></li>
490 </ul>
491 </li>
492 </ul>
493 </li>
494 <li><a class="reference internal" href="#save-actions" id="id220">Save Actions</a><ul>
495 <li><a class="reference internal" href="#instant-save" id="id221">Instant Save</a></li>
496 <li><a class="reference internal" href="#backup-copy" id="id222">Backup Copy</a></li>
497 </ul>
498 </li>
499 </ul>
500 </li>
501 <li><a class="reference internal" href="#contributing-to-this-document" id="id223">Contributing to this document</a></li>
502 <li><a class="reference internal" href="#scintilla-keyboard-commands" id="id224">Scintilla keyboard commands</a><ul>
503 <li><a class="reference internal" href="#keyboard-commands" id="id225">Keyboard commands</a></li>
504 </ul>
505 </li>
506 <li><a class="reference internal" href="#tips-and-tricks" id="id226">Tips and tricks</a><ul>
507 <li><a class="reference internal" href="#document-notebook" id="id227">Document notebook</a></li>
508 <li><a class="reference internal" href="#editor" id="id228">Editor</a></li>
509 <li><a class="reference internal" href="#interface" id="id229">Interface</a></li>
510 <li><a class="reference internal" href="#gtk-related" id="id230">GTK-related</a></li>
511 </ul>
512 </li>
513 <li><a class="reference internal" href="#compile-time-options" id="id231">Compile-time options</a><ul>
514 <li><a class="reference internal" href="#src-geany-h" id="id232">src/geany.h</a></li>
515 <li><a class="reference internal" href="#project-h" id="id233">project.h</a></li>
516 <li><a class="reference internal" href="#filetypes-c" id="id234">filetypes.c</a></li>
517 <li><a class="reference internal" href="#editor-h" id="id235">editor.h</a></li>
518 <li><a class="reference internal" href="#keyfile-c" id="id236">keyfile.c</a></li>
519 <li><a class="reference internal" href="#build-c" id="id237">build.c</a></li>
520 </ul>
521 </li>
522 <li><a class="reference internal" href="#gnu-general-public-license" id="id238">GNU General Public License</a></li>
523 <li><a class="reference internal" href="#license-for-scintilla-and-scite" id="id239">License for Scintilla and SciTE</a></li>
524 </ul>
525 </div>
526 <div class="section" id="introduction">
527 <h1><a class="toc-backref" href="#id7">Introduction</a></h1>
528 <div class="section" id="about-geany">
529 <h2><a class="toc-backref" href="#id8">About Geany</a></h2>
530 <p>Geany is a small and lightweight Integrated Development Environment. It
531 was developed to provide a small and fast IDE, which has only a few
532 dependencies on other packages. Another goal was to be as independent
533 as possible from a particular Desktop Environment like KDE or GNOME -
534 Geany only requires the GTK2 runtime libraries.</p>
535 <p>Some basic features of Geany:</p>
536 <ul class="simple">
537 <li>Syntax highlighting</li>
538 <li>Code folding</li>
539 <li>Autocompletion of symbols/words</li>
540 <li>Construct completion/snippets</li>
541 <li>Auto-closing of XML and HTML tags</li>
542 <li>Calltips</li>
543 <li>Many supported filetypes including C, Java, PHP, HTML, Python, Perl,
544 Pascal, and others</li>
545 <li>Symbol lists</li>
546 <li>Code navigation</li>
547 <li>Build system to compile and execute your code</li>
548 <li>Simple project management</li>
549 <li>Plugin interface</li>
550 </ul>
551 </div>
552 <div class="section" id="where-to-get-it">
553 <h2><a class="toc-backref" href="#id9">Where to get it</a></h2>
554 <p>You can obtain Geany from <a class="reference external" href="http://www.geany.org/">http://www.geany.org/</a> or perhaps also from
555 your distribution. For a list of available packages, please see
556 <a class="reference external" href="http://www.geany.org/Download/ThirdPartyPackages">http://www.geany.org/Download/ThirdPartyPackages</a>.</p>
557 </div>
558 <div class="section" id="license">
559 <h2><a class="toc-backref" href="#id10">License</a></h2>
560 <p>Geany is distributed under the terms of the GNU General Public License
561 as published by the Free Software Foundation; either version 2 of
562 the License, or (at your option) any later version. A copy of this
563 license can be found in the file COPYING included with the source
564 code of this program and in the chapter, <a class="reference internal" href="#gnu-general-public-license">GNU General Public License</a>.</p>
565 <p>The included Scintilla library (found in the subdirectory
566 <tt class="docutils literal">scintilla/</tt>) has its own license, which can be found in the chapter,
567 <a class="reference internal" href="#license-for-scintilla-and-scite">License for Scintilla and SciTE</a>.</p>
568 </div>
569 <div class="section" id="about-this-document">
570 <h2><a class="toc-backref" href="#id11">About this document</a></h2>
571 <p>This documentation is available in HTML and text formats.
572 The latest version can always be found at <a class="reference external" href="http://www.geany.org/">http://www.geany.org/</a>.</p>
573 <p>If you want to contribute to it, see <a class="reference internal" href="#contributing-to-this-document">Contributing to this document</a>.</p>
574 </div>
575 </div>
576 <div class="section" id="installation">
577 <h1><a class="toc-backref" href="#id12">Installation</a></h1>
578 <div class="section" id="requirements">
579 <h2><a class="toc-backref" href="#id13">Requirements</a></h2>
580 <p>You will need the GTK (&gt;= 2.16.0) libraries and their dependencies
581 (Pango, GLib and ATK). Your distro should provide packages for these,
582 usually installed by default. For Windows, you can download an installer
583 from the website which bundles these libraries.</p>
584 </div>
585 <div class="section" id="binary-packages">
586 <h2><a class="toc-backref" href="#id14">Binary packages</a></h2>
587 <p>There are many binary packages available. For an up-to-date but maybe
588 incomplete list see <a class="reference external" href="http://www.geany.org/Download/ThirdPartyPackages">http://www.geany.org/Download/ThirdPartyPackages</a>.</p>
589 </div>
590 <div class="section" id="source-compilation">
591 <h2><a class="toc-backref" href="#id15">Source compilation</a></h2>
592 <p>Compiling Geany is quite easy.
593 To do so, you need the GTK (&gt;= 2.16.0) libraries and header files.
594 You also need the Pango, GLib and ATK libraries and header files.
595 All these files are available at <a class="reference external" href="http://www.gtk.org">http://www.gtk.org</a>, but very often
596 your distro will provide development packages to save the trouble of
597 building these yourself.</p>
598 <p>Furthermore you need, of course, a C and C++ compiler. The GNU versions
599 of these tools are recommended.</p>
600 <div class="section" id="autotools-based-build-system">
601 <h3><a class="toc-backref" href="#id16">Autotools based build system</a></h3>
602 <p>The Autotools based build system is very mature and has been well tested.
603 To use it, you just need the Make tool, preferably GNU Make.</p>
604 <p>Then run the following commands:</p>
605 <pre class="literal-block">
606 $ ./configure
607 $ make
608 </pre>
609 <p>Then as root:</p>
610 <pre class="literal-block">
611 % make install
612 </pre>
613 </div>
614 <div class="section" id="waf-based-build-system">
615 <h3><a class="toc-backref" href="#id17">Waf based build system</a></h3>
616 <p>The Waf build system is still quite young and under heavy development but already in a
617 usable state. In contrast to the Autotools system, Waf needs Python. So before using Waf, you need
618 to install Python on your system.
619 The advantage of the Waf build system over the Autotools based build system is that the whole
620 build process might be a bit faster. Especially when you use the Waf
621 cache feature for repetitive builds (e.g. when changing only a few source files
622 to test something) will become much faster since Waf will cache and re-use the
623 unchanged built files and only compile the changed code again. See <a class="reference internal" href="#waf-cache">Waf Cache</a> for details.
624 To build Geany with Waf as run:</p>
625 <pre class="literal-block">
626 $ ./waf configure
627 $ ./waf build
628 </pre>
629 <p>Then as root:</p>
630 <pre class="literal-block">
631 % ./waf install
632 </pre>
633 <div class="section" id="waf-cache">
634 <h4><a class="toc-backref" href="#id18">Waf cache</a></h4>
635 <p>The Waf build system has a nice and interesting feature which can help to avoid
636 a lot of unnecessary rebuilding of unchanged code. This often happens when developing new features
637 or trying to debug something in Geany.
638 Waf is able to store and retrieve the object files from a cache. This cache is declared
639 using the environment variable <tt class="docutils literal">WAFCACHE</tt>.
640 A possible location of the cache directory could be <tt class="docutils literal"><span class="pre">~/.cache/waf</span></tt>. In order to make use of
641 this, you first need to create this directory:</p>
642 <pre class="literal-block">
643 $ mkdir -p ~/.cache/waf
644 </pre>
645 <p>then add the environment variable to your shell configuration (the following example is for
646 Bash and should be adjusted to your used shell):</p>
647 <pre class="literal-block">
648 export WAFCACHE=/home/username/.cache/waf
649 </pre>
650 <p>Remember to replace <tt class="docutils literal">username</tt> with your actual username.</p>
651 <p>More information about the Waf cache feature are available at
652 <a class="reference external" href="http://code.google.com/p/waf/wiki/CacheObjectFiles">http://code.google.com/p/waf/wiki/CacheObjectFiles</a>.</p>
653 <div class="section" id="cleaning-the-cache">
654 <h5><a class="toc-backref" href="#id19">Cleaning the cache</a></h5>
655 <p>You should be careful about the size of the cache directory as it may
656 grow rapidly over time.
657 Waf doesn't do any cleaning or other house-keeping of the cache yet, so you need to keep it
658 clean by yourself.
659 An easy way to keep it clean is to run the following command regularly to remove old
660 cached files:</p>
661 <pre class="literal-block">
662 $ find /home/username/.cache/waf -mtime +14 -exec rm {} \;
663 </pre>
664 <p>This will delete all files in the cache directory which are older than 14 days.</p>
665 <p>For details about the <tt class="docutils literal">find</tt> command and its options, check its manual page.</p>
666 </div>
667 </div>
668 </div>
669 <div class="section" id="custom-installation">
670 <h3><a class="toc-backref" href="#id20">Custom installation</a></h3>
671 <p>The configure script supports several common options, for a detailed
672 list, type:</p>
673 <pre class="literal-block">
674 $ ./configure --help
675 </pre>
676 <dl class="docutils">
677 <dt>or::</dt>
678 <dd>$ ./waf --help</dd>
679 </dl>
680 <p>(depending on which build system you use).</p>
681 <p>You may also want to read the INSTALL file for advanced installation
682 options.</p>
683 <ul class="simple">
684 <li>See also <a class="reference internal" href="#compile-time-options">Compile-time options</a>.</li>
685 </ul>
686 </div>
687 <div class="section" id="dynamic-linking-loader-support-and-vte">
688 <h3><a class="toc-backref" href="#id21">Dynamic linking loader support and VTE</a></h3>
689 <p>In the case that your system lacks dynamic linking loader support, you
690 probably want to pass the option <tt class="docutils literal"><span class="pre">--disable-vte</span></tt> to the <tt class="docutils literal">configure</tt>
691 script. This prevents compiling Geany with dynamic linking loader
692 support for automatically loading <tt class="docutils literal">libvte.so.4</tt> if available.</p>
693 </div>
694 <div class="section" id="build-problems">
695 <h3><a class="toc-backref" href="#id22">Build problems</a></h3>
696 <p>If there are any errors during compilation, check your build
697 environment and try to find the error, otherwise contact the mailing
698 list or one the authors. Sometimes you might need to ask for specific
699 help from your distribution.</p>
700 </div>
701 </div>
702 <div class="section" id="installation-prefix">
703 <h2><a class="toc-backref" href="#id23">Installation prefix</a></h2>
704 <p>If you want to find Geany's system files after installation you may
705 want to know the installation prefix.</p>
706 <p>Pass the <tt class="docutils literal"><span class="pre">--print-prefix</span></tt> option to Geany to check this - see
707 <a class="reference internal" href="#command-line-options">Command line options</a>. The first path is the prefix.</p>
708 <p>On Unix-like systems this is commonly <tt class="docutils literal">/usr</tt> if you installed from
709 a binary package, or <tt class="docutils literal">/usr/local</tt> if you build from source.</p>
710 <div class="note">
711 <p class="first admonition-title">Note</p>
712 <p class="last">Editing system files is not necessary as you can use the
713 per-user configuration files instead, which don't need root
714 permissions. See <a class="reference internal" href="#configuration-files">Configuration files</a>.</p>
715 </div>
716 </div>
717 </div>
718 <div class="section" id="usage">
719 <h1><a class="toc-backref" href="#id24">Usage</a></h1>
720 <div class="section" id="getting-started">
721 <h2><a class="toc-backref" href="#id25">Getting started</a></h2>
722 <p>You can start Geany in the following ways:</p>
723 <ul>
724 <li><p class="first">From the Desktop Environment menu:</p>
725 <p>Choose in your application menu of your used Desktop Environment:
726 Development --&gt; Geany.</p>
727 </li>
728 <li><p class="first">From the command line:</p>
729 <p>To start Geany from a command line, type the following and press
730 Return:</p>
731 <pre class="literal-block">
732 % geany
733 </pre>
734 </li>
735 </ul>
736 </div>
737 <div class="section" id="the-geany-workspace">
738 <h2><a class="toc-backref" href="#id26">The Geany workspace</a></h2>
739 <p>The Geany window is shown in the following figure:</p>
740 <img alt="./images/main_window.png" src="./images/main_window.png" />
741 <p>The workspace has the following parts:</p>
742 <ul class="simple">
743 <li>The menu.</li>
744 <li>An optional toolbar.</li>
745 <li>An optional sidebar that can show the following tabs:<ul>
746 <li>Documents - A document list, and</li>
747 <li>Symbols - A list of symbols in your code.</li>
748 </ul>
749 </li>
750 <li>The main editor window.</li>
751 <li>An optional message window which can show the following tabs:<ul>
752 <li>Status - A list of status messages.</li>
753 <li>Compiler - The output of compiling or building programs.</li>
754 <li>Messages - Results of 'Find Usage', 'Find Usage' 'Find in Files' and other actions</li>
755 <li>Scribble - A text scratchpad for any use.</li>
756 <li>Terminal - An optional terminal window.</li>
757 </ul>
758 </li>
759 <li>A status bar</li>
760 </ul>
761 <p>Most of these can be configured in the <a class="reference internal" href="#interface-preferences">Interface preferences</a>, the
762 <a class="reference internal" href="#view-menu">View menu</a>, or the popup menu for the relevant area.</p>
763 <p>Additional tabs may be added to the sidebar and message window by plugins.</p>
764 <p>The position of the tabs can be selected in the interface preferences.</p>
765 <p>The sizes of the sidebar and message window can be adjusted by
766 dragging the dividers.</p>
767 </div>
768 <div class="section" id="command-line-options">
769 <h2><a class="toc-backref" href="#id27">Command line options</a></h2>
770 <table border="1" class="docutils">
771 <colgroup>
772 <col width="9%" />
773 <col width="18%" />
774 <col width="72%" />
775 </colgroup>
776 <thead valign="bottom">
777 <tr><th class="head">Short option</th>
778 <th class="head">Long option</th>
779 <th class="head">Function</th>
780 </tr>
781 </thead>
782 <tbody valign="top">
783 <tr><td><em>none</em></td>
784 <td>+number</td>
785 <td>Set initial line number for the first opened file
786 (same as --line, do not put a space between the + sign
787 and the number). E.g. &quot;geany +7 foo.bar&quot; will open the
788 file foo.bar and place the cursor in line 7.</td>
789 </tr>
790 <tr><td><em>none</em></td>
791 <td>--column</td>
792 <td>Set initial column number for the first opened file.</td>
793 </tr>
794 <tr><td>-c dir_name</td>
795 <td>--config=directory_name</td>
796 <td>Use an alternate configuration directory. The default
797 configuration directory is <tt class="docutils literal"><span class="pre">~/.config/geany/</span></tt> and that
798 is where <tt class="docutils literal">geany.conf</tt> and other configuration files
799 reside.</td>
800 </tr>
801 <tr><td><em>none</em></td>
802 <td>--ft-names</td>
803 <td>Print a list of Geany's internal filetype names (useful
804 for snippets configuration).</td>
805 </tr>
806 <tr><td>-g</td>
807 <td>--generate-tags</td>
808 <td>Generate a global tags file (see
809 <a class="reference internal" href="#generating-a-global-tags-file">Generating a global tags file</a>).</td>
810 </tr>
811 <tr><td>-P</td>
812 <td>--no-preprocessing</td>
813 <td>Don't preprocess C/C++ files when generating tags.</td>
814 </tr>
815 <tr><td>-i</td>
816 <td>--new-instance</td>
817 <td>Do not open files in a running instance, force opening
818 a new instance. Only available if Geany was compiled
819 with support for Sockets.</td>
820 </tr>
821 <tr><td>-l</td>
822 <td>--line</td>
823 <td>Set initial line number for the first opened file.</td>
824 </tr>
825 <tr><td><em>none</em></td>
826 <td>--list-documents</td>
827 <td>Return a list of open documents in a running Geany
828 instance.
829 This can be used to read the currently opened documents in
830 Geany from an external script or tool. The returned list
831 is separated by newlines (LF) and consists of the full,
832 UTF-8 encoded filenames of the documents.
833 Only available if Geany was compiled with support for
834 Sockets.</td>
835 </tr>
836 <tr><td>-m</td>
837 <td>--no-msgwin</td>
838 <td>Do not show the message window. Use this option if you
839 do not need compiler messages or VTE support.</td>
840 </tr>
841 <tr><td>-n</td>
842 <td>--no-ctags</td>
843 <td>Do not load symbol completion and call tip data. Use this
844 option if you do not want to use them.</td>
845 </tr>
846 <tr><td>-p</td>
847 <td>--no-plugins</td>
848 <td>Do not load plugins or plugin support.</td>
849 </tr>
850 <tr><td><em>none</em></td>
851 <td>--print-prefix</td>
852 <td>Print installation prefix, the data directory, the lib
853 directory and the locale directory (in that order) to
854 stdout, one line each. This is mainly intended for plugin
855 authors to detect installation paths.</td>
856 </tr>
857 <tr><td>-s</td>
858 <td>--no-session</td>
859 <td>Do not load the previous session's files.</td>
860 </tr>
861 <tr><td>-t</td>
862 <td>--no-terminal</td>
863 <td>Do not load terminal support. Use this option if you do
864 not want to load the virtual terminal emulator widget
865 at startup. If you do not have <tt class="docutils literal">libvte.so.4</tt> installed,
866 then terminal-support is automatically disabled. Only
867 available if Geany was compiled with support for VTE.</td>
868 </tr>
869 <tr><td><em>none</em></td>
870 <td>--socket-file</td>
871 <td><p class="first">Use this socket filename for communication with a
872 running Geany instance. This can be used with the following
873 command to execute Geany on the current workspace:</p>
874 <pre class="last literal-block">
875 geany --socket-file=/tmp/geany-sock-$(xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}')
876 </pre>
877 </td>
878 </tr>
879 <tr><td><em>none</em></td>
880 <td>--vte-lib</td>
881 <td>Specify explicitly the path including filename or only
882 the filename to the VTE library, e.g.
883 <tt class="docutils literal">/usr/lib/libvte.so</tt> or <tt class="docutils literal">libvte.so</tt>. This option is
884 only needed when the auto-detection does not work. Only
885 available if Geany was compiled with support for VTE.</td>
886 </tr>
887 <tr><td>-v</td>
888 <td>--verbose</td>
889 <td>Be verbose (print useful status messages).</td>
890 </tr>
891 <tr><td>-V</td>
892 <td>--version</td>
893 <td>Show version information and exit.</td>
894 </tr>
895 <tr><td>-?</td>
896 <td>--help</td>
897 <td>Show help information and exit.</td>
898 </tr>
899 <tr><td><em>none</em></td>
900 <td>[files ...]</td>
901 <td><p class="first">Open all given files at startup. This option causes
902 Geany to ignore loading stored files from the last
903 session (if enabled).
904 Geany also recognizes line and column information when
905 appended to the filename with colons, e.g.
906 &quot;geany foo.bar:10:5&quot; will open the file foo.bar and
907 place the cursor in line 10 at column 5.</p>
908 <p class="last">Projects can also be opened but a project file (*.geany)
909 must be the first non-option argument. All additionally
910 given files are ignored.</p>
911 </td>
912 </tr>
913 </tbody>
914 </table>
915 <p>You can also pass line number and column number information, e.g.:</p>
916 <pre class="literal-block">
917 geany some_file.foo:55:4
918 </pre>
919 <p>Geany supports all generic GTK options, a list is available on the
920 help screen.</p>
921 </div>
922 <div class="section" id="general">
923 <h2><a class="toc-backref" href="#id28">General</a></h2>
924 <div class="section" id="startup">
925 <h3><a class="toc-backref" href="#id29">Startup</a></h3>
926 <p>At startup, Geany loads all files from the last time Geany was
927 launched. You can disable this feature in the preferences dialog
928 (see <a class="reference internal" href="#general-startup-preferences">General Startup preferences</a>). If you specify some
929 files on the command line, only these files will be opened, but you
930 can find the files from the last session in the file menu under the
931 &quot;Recent files&quot; item. By default this contains the last 10 recently
932 opened files. You can change the number of recently opened files in
933 the preferences dialog.</p>
934 <p>You can start several instances of Geany, but only the first will
935 load files from the last session. To run a second instance of Geany,
936 do not specify any filenames on the command-line, or disable opening
937 files in a running instance using the appropriate command line option.</p>
938 </div>
939 <div class="section" id="opening-files-from-the-command-line-in-a-running-instance">
940 <h3><a class="toc-backref" href="#id30">Opening files from the command-line in a running instance</a></h3>
941 <p>Geany detects if there is an an instance of itself already running and opens files
942 from the command-line in that instance. So, Geany can
943 be used to view and edit files by opening them from other programs
944 such as a file manager.</p>
945 <p>You can also pass line number and column number information, e.g.:</p>
946 <pre class="literal-block">
947 geany some_file.foo:55:4
948 </pre>
949 <p>This would open the file <tt class="docutils literal">some_file.foo</tt> with the cursor on line 55,
950 column 4.</p>
951 <p>If you do not like this for some reason, you can disable using the first
952 instance by using the appropriate command line option -- see the section
953 called <a class="reference internal" href="#command-line-options">Command line options</a>.</p>
954 </div>
955 <div class="section" id="virtual-terminal-emulator-widget-vte">
956 <h3><a class="toc-backref" href="#id31">Virtual terminal emulator widget (VTE)</a></h3>
957 <p>If you have installed <tt class="docutils literal">libvte.so</tt> on your system, it is loaded
958 automatically by Geany, and you will have a terminal widget in the
959 notebook at the bottom.</p>
960 <p>If Geany cannot find any <tt class="docutils literal">libvte.so</tt> at startup, the terminal widget
961 will not be loaded. So there is no need to install the package containing
962 this file in order to run Geany. Additionally, you can disable the use
963 of the terminal widget by command line option, for more information
964 see the section called <a class="reference internal" href="#command-line-options">Command line options</a>.</p>
965 <p>You can use this terminal (from now on called VTE) much as you would
966 a terminal program like xterm. There is basic clipboard support. You
967 can paste the contents of the clipboard by pressing the right mouse
968 button to open the popup menu, and choosing Paste. To copy text from
969 the VTE, just select the desired text and then press the right mouse
970 button and choose Copy from the popup menu. On systems running the
971 X Window System you can paste the last selected text by pressing the
972 middle mouse button in the VTE (on 2-button mice, the middle button
973 can often be simulated by pressing both mouse buttons together).</p>
974 <p>In the preferences dialog you can specify a shell which should be
975 started in the VTE. To make the specified shell a login shell just
976 use the appropriate command line options for the shell. These options
977 should be found in the manual page of the shell. For zsh and bash
978 you can use the argument <tt class="docutils literal"><span class="pre">--login</span></tt>.</p>
979 <div class="note">
980 <p class="first admonition-title">Note</p>
981 <p class="last">Geany tries to load <tt class="docutils literal">libvte.so</tt>. If this fails, it tries to load
982 some other filenames. If this fails too, you should check whether you
983 installed libvte correctly. Again note, Geany will run without this
984 library.</p>
985 </div>
986 <p>It could be, that the library is called something else than
987 <tt class="docutils literal">libvte.so</tt> (e.g. on FreeBSD 6.0 it is called <tt class="docutils literal">libvte.so.8</tt>). If so
988 please set a link to the correct file (as root):</p>
989 <pre class="literal-block">
990 # ln -s /usr/lib/libvte.so.X /usr/lib/libvte.so
991 </pre>
992 <p>Obviously, you have to adjust the paths and set X to the number of your
993 <tt class="docutils literal">libvte.so</tt>.</p>
994 <p>You can also specify the filename of the VTE library to use on the command
995 line (see the section called <a class="reference internal" href="#command-line-options">Command line options</a>) or at compile time
996 by specifying the command line option <tt class="docutils literal"><span class="pre">--with-vte-module-path</span></tt> to
997 ./configure.</p>
998 </div>
999 <div class="section" id="defining-own-widget-styles-using-gtkrc-2-0">
1000 <h3><a class="toc-backref" href="#id32">Defining own widget styles using .gtkrc-2.0</a></h3>
1001 <p>You can define your widget style for many of Geany's GUI parts. To
1002 do this, just edit your <tt class="docutils literal"><span class="pre">.gtkrc-2.0</span></tt> (usually found in your home
1003 directory on UNIX-like systems and in the etc subdirectory of your
1004 Geany installation on Windows).</p>
1005 <p>To have a defined style used by Geany you must assign it to
1006 at least one of Geany's widgets. For example use the following line:</p>
1007 <pre class="literal-block">
1008 widget &quot;Geany*&quot; style &quot;geanyStyle&quot;
1009 </pre>
1010 <p>This would assign your style &quot;geany_style&quot; to all Geany
1011 widgets. You can also assign styles only to specific widgets. At the
1012 moment you can use the following widgets:</p>
1013 <ul class="simple">
1014 <li>GeanyMainWindow</li>
1015 <li>GeanyEditMenu</li>
1016 <li>GeanyToolbarMenu</li>
1017 <li>GeanyDialog</li>
1018 <li>GeanyDialogPrefs</li>
1019 <li>GeanyDialogProject</li>
1020 <li>GeanyDialogSearch</li>
1021 <li>GeanyMenubar</li>
1022 <li>GeanyToolbar</li>
1023 </ul>
1024 <p>An example of a simple <tt class="docutils literal"><span class="pre">.gtkrc-2.0</span></tt>:</p>
1025 <pre class="literal-block">
1026 style &quot;geanyStyle&quot;
1028 font_name=&quot;Sans 12&quot;
1030 widget &quot;GeanyMainWindow&quot; style &quot;geanyStyle&quot;
1032 style &quot;geanyStyle&quot;
1034 font_name=&quot;Sans 10&quot;
1036 widget &quot;GeanyPrefsDialog&quot; style &quot;geanyStyle&quot;
1037 </pre>
1038 </div>
1039 </div>
1040 <div class="section" id="documents">
1041 <h2><a class="toc-backref" href="#id33">Documents</a></h2>
1042 <div class="section" id="switching-between-documents">
1043 <h3><a class="toc-backref" href="#id34">Switching between documents</a></h3>
1044 <p>The documents list and the editor tabs are two different ways
1045 to switch between documents using the mouse. When you hit the key
1046 combination to move between tabs, the order is determined by the tab
1047 order. It is not alphabetical as shown in the documents list
1048 (regardless of whether or not editor tabs are visible).</p>
1049 <p>See the <a class="reference internal" href="#notebook-tab-keybindings">Notebook tab keybindings</a> section for useful
1050 shortcuts including for Most-Recently-Used document switching.</p>
1051 </div>
1052 </div>
1053 <div class="section" id="character-sets-and-unicode-byte-order-mark-bom">
1054 <h2><a class="toc-backref" href="#id35">Character sets and Unicode Byte-Order-Mark (BOM)</a></h2>
1055 <div class="section" id="using-character-sets">
1056 <h3><a class="toc-backref" href="#id36">Using character sets</a></h3>
1057 <p>Geany provides support for detecting and converting character sets. So
1058 you can open and save files in different character sets, and even
1059 convert a file from one character set to another. To do this,
1060 Geany uses the character conversion capabilities of the GLib library.</p>
1061 <p>Only text files are supported, i.e. opening files which contain
1062 NULL-bytes may fail. Geany will try to open the file anyway but it is
1063 likely that the file will be truncated because it can only be read up
1064 to the first occurrence of a NULL-byte. All characters after this
1065 position are lost and are not written when you save the file.</p>
1066 <p>Geany tries to detect the encoding of a file while opening it, but
1067 auto-detecting the encoding of a file is not easy and sometimes an
1068 encoding might not be detected correctly. In this case you have to
1069 set the encoding of the file manually in order to display it
1070 correctly. You can this in the file open dialog by selecting an
1071 encoding in the drop down box or by reloading the file with the
1072 file menu item &quot;Reload as&quot;. The auto-detection works well for most
1073 encodings but there are also some encodings where it is known that
1074 auto-detection has problems.</p>
1075 <p>There are different ways to set different encodings in Geany:</p>
1076 <ul>
1077 <li><p class="first">Using the file open dialog</p>
1078 <p>This opens the file with the encoding specified in the encoding drop
1079 down box. If the encoding is set to &quot;Detect from file&quot; auto-detection
1080 will be used. If the encoding is set to &quot;Without encoding (None)&quot; the
1081 file will be opened without any character conversion and Geany will
1082 not try to auto-detect the encoding (see below for more information).</p>
1083 </li>
1084 <li><p class="first">Using the &quot;Reload as&quot; menu item</p>
1085 <p>This item reloads the current file with the specified encoding. It can
1086 help if you opened a file and found out that the wrong encoding was used.</p>
1087 </li>
1088 <li><p class="first">Using the &quot;Set encoding&quot; menu item</p>
1089 <p>Contrary to the above two options, this will not change or reload
1090 the current file unless you save it. It is useful when you want to
1091 change the encoding of the file.</p>
1092 </li>
1093 <li><p class="first">Specifying the encoding in the file itself</p>
1094 <p>As mentioned above, auto-detecting the encoding of a file may fail on
1095 some encodings. If you know that Geany doesn't open a certain file,
1096 you can add the specification line, described in the next section,
1097 to the beginning of the file to force Geany to use a specific
1098 encoding when opening the file.</p>
1099 </li>
1100 </ul>
1101 </div>
1102 <div class="section" id="in-file-encoding-specification">
1103 <h3><a class="toc-backref" href="#id37">In-file encoding specification</a></h3>
1104 <p>Geany detects meta tags of HTML files which contain charset information
1105 like:</p>
1106 <pre class="literal-block">
1107 &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=ISO-8859-15&quot; /&gt;
1108 </pre>
1109 <p>and the specified charset is used when opening the file. This is useful if the
1110 encoding of the file cannot be detected properly.
1111 For non-HTML files you can also define a line like:</p>
1112 <pre class="literal-block">
1113 /* geany_encoding=ISO-8859-15 */
1114 </pre>
1115 <p>or:</p>
1116 <pre class="literal-block">
1117 # geany_encoding=ISO-8859-15 #
1118 </pre>
1119 <p>to force an encoding to be used. The #, /* and */ are examples
1120 of filetype-specific comment characters. It doesn't matter which
1121 characters are around the string &quot; geany_encoding=ISO-8859-15 &quot; as long
1122 as there is at least one whitespace character before and after this
1123 string. Whitespace characters are in this case a space or tab character.
1124 An example to use this could be you have a file with ISO-8859-15
1125 encoding but Geany constantly detects the file encoding as ISO-8859-1.
1126 Then you simply add such a line to the file and Geany will open it
1127 correctly the next time.</p>
1128 <p>Since Geany 0.15 you can also use lines which match the
1129 regular expression used to find the encoding string:
1130 <tt class="docutils literal"><span class="pre">coding[\t</span> <span class="pre">]*[:=][\t</span> <span class="pre">]*([a-z0-9-]+)[\t</span> ]*</tt></p>
1131 <div class="note">
1132 <p class="first admonition-title">Note</p>
1133 <p class="last">These specifications must be in the first 512 bytes of the file.
1134 Anything after the first 512 bytes will not be recognized.</p>
1135 </div>
1136 <p>Some examples are:</p>
1137 <pre class="literal-block">
1138 # encoding = ISO-8859-15
1139 </pre>
1140 <p>or:</p>
1141 <pre class="literal-block">
1142 # coding: ISO-8859-15
1143 </pre>
1144 </div>
1145 <div class="section" id="special-encoding-none">
1146 <h3><a class="toc-backref" href="#id38">Special encoding &quot;None&quot;</a></h3>
1147 <p>There is a special encoding &quot;None&quot; which uses no
1148 encoding. It is useful when you know that Geany cannot auto-detect
1149 the encoding of a file and it is not displayed correctly. Especially
1150 when the file contains NULL-bytes this can be useful to skip auto
1151 detection and open the file properly at least until the occurrence
1152 of the first NULL-byte. Using this encoding opens the file as it is
1153 without any character conversion.</p>
1154 </div>
1155 <div class="section" id="unicode-byte-order-mark-bom">
1156 <h3><a class="toc-backref" href="#id39">Unicode Byte-Order-Mark (BOM)</a></h3>
1157 <p>Furthermore, Geany detects a Unicode Byte Order Mark (see
1158 <a class="reference external" href="http://en.wikipedia.org/wiki/Byte_Order_Mark">http://en.wikipedia.org/wiki/Byte_Order_Mark</a> for details). Of course,
1159 this feature is only available if the opened file is in a Unicode
1160 encoding. The Byte Order Mark helps to detect the encoding of a file,
1161 e.g. whether it is UTF-16LE or UTF-16BE and so on. On Unix-like systems
1162 using a Byte Order Mark could cause some problems for programs not
1163 expecting it, e.g. the compiler gcc stops
1164 with stray errors, PHP does not parse a script containing a BOM and
1165 script files starting with a she-bang maybe cannot be started. In the
1166 status bar you can easily see whether the file starts with a BOM or
1167 not.</p>
1168 <p>If you want to set a BOM for a file or if you want to remove it
1169 from a file, just use the document menu and toggle the checkbox.</p>
1170 <div class="note">
1171 <p class="first admonition-title">Note</p>
1172 <p class="last">If you are unsure what a BOM is or if you do not understand where
1173 to use it, then it is probably not important for you and you can
1174 safely ignore it.</p>
1175 </div>
1176 </div>
1177 </div>
1178 <div class="section" id="editing">
1179 <h2><a class="toc-backref" href="#id40">Editing</a></h2>
1180 <div class="section" id="folding">
1181 <h3><a class="toc-backref" href="#id41">Folding</a></h3>
1182 <p>Geany provides basic code folding support. Folding means the ability to
1183 show and hide parts of the text in the current file. You can hide
1184 unimportant code sections and concentrate on the parts you are working on
1185 and later you can show hidden sections again. In the editor window there is
1186 a small grey margin on the left side with [+] and [-] symbols which
1187 show hidden parts and hide parts of the file respectively. By
1188 clicking on these icons you can simply show and hide sections which are
1189 marked by vertical lines within this margin. For many filetypes nested
1190 folding is supported, so there may be several fold points within other
1191 fold points.</p>
1192 <div class="note">
1193 <p class="first admonition-title">Note</p>
1194 <p class="last">You can customize the folding icon and line styles - see the
1195 filetypes.common <a class="reference internal" href="#folding-settings">Folding Settings</a>.</p>
1196 </div>
1197 <p>If you don't like it or don't need it at all, you can simply disable
1198 folding support completely in the preferences dialog.</p>
1199 <p>The folding behaviour can be changed with the &quot;Fold/Unfold all children of
1200 a fold point&quot; option in the preference dialog. If activated, Geany will
1201 unfold all nested fold points below the current one if they are already
1202 folded (when clicking on a [+] symbol).
1203 When clicking on a [-] symbol, Geany will fold all nested fold points
1204 below the current one if they are unfolded.</p>
1205 <p>This option can be inverted by pressing the Shift
1206 key while clicking on a fold symbol. That means, if the &quot;Fold/Unfold all
1207 children of a fold point&quot; option is enabled, pressing Shift will disable
1208 it for this click and vice versa.</p>
1209 </div>
1210 <div class="section" id="column-mode-editing-rectangular-selections">
1211 <h3><a class="toc-backref" href="#id42">Column mode editing (rectangular selections)</a></h3>
1212 <p>There is basic support for column mode editing. To use it, create a
1213 rectangular selection by holding down the Control and Shift keys
1214 (or Control and Alt if it doesn't work) while
1215 selecting some text. It is also possible to create a zero-column selection.
1216 Once a rectangular selection exists you can start editing the text within
1217 this selection and the modifications will be done for every line in the
1218 selection.</p>
1219 </div>
1220 <div class="section" id="drag-and-drop-of-text">
1221 <h3><a class="toc-backref" href="#id43">Drag and drop of text</a></h3>
1222 <p>If you drag selected text in the editor widget of Geany the text is
1223 moved to the position where the mouse pointer is when releasing the
1224 mouse button. Holding Control when releasing the mouse button will
1225 copy the text instead. This behaviour was changed in Geany 0.11 -
1226 before the selected text was copied to the new position.</p>
1227 </div>
1228 <div class="section" id="indentation">
1229 <h3><a class="toc-backref" href="#id44">Indentation</a></h3>
1230 <p>Geany allows each document to indent either with a tab character,
1231 multiple spaces or a combination of both. The default indent
1232 settings are set in <a class="reference internal" href="#editor-indentation-preferences">Editor Indentation preferences</a> (see the link
1233 for more information).</p>
1234 <p>The default settings can be overridden per-document using the
1235 Document menu. They can also be overridden by projects - see
1236 <a class="reference internal" href="#project-management">Project management</a>.</p>
1237 <p>The indent mode for the current document is shown on the status bar
1238 as follows:</p>
1239 <dl class="docutils">
1240 <dt>TAB</dt>
1241 <dd>Indent with Tab characters.</dd>
1242 <dt>SP</dt>
1243 <dd>Indent with spaces.</dd>
1244 <dt>T/S</dt>
1245 <dd>Indent with tabs and spaces, depending on how much indentation is
1246 on a line.</dd>
1247 </dl>
1248 <div class="section" id="applying-new-indentation-settings">
1249 <h4><a class="toc-backref" href="#id45">Applying new indentation settings</a></h4>
1250 <p>After changing the default settings you may wish to apply the new
1251 settings to every document in the current session. To do this use the
1252 <em>Project-&gt;Apply Default Indentation</em> menu item.</p>
1253 </div>
1254 <div class="section" id="detecting-indent-type">
1255 <h4><a class="toc-backref" href="#id46">Detecting indent type</a></h4>
1256 <p>The <em>Detect from file</em> indentation preference can be used to
1257 scan each file as it's opened and set the indent type based on
1258 how many lines start with a tab vs. 2 or more spaces.</p>
1259 </div>
1260 </div>
1261 <div class="section" id="auto-indentation">
1262 <h3><a class="toc-backref" href="#id47">Auto-indentation</a></h3>
1263 <p>When enabled, auto-indentation happens when pressing <em>Enter</em> in the
1264 Editor. It adds a certain amount of indentation to the new line so the
1265 user doesn't always have to indent each line manually.</p>
1266 <p>Geany has four types of auto-indentation:</p>
1267 <dl class="docutils">
1268 <dt>None</dt>
1269 <dd>Disables auto-indentation completely.</dd>
1270 <dt>Basic</dt>
1271 <dd>Adds the same amount of whitespace on a new line as on the last line.</dd>
1272 <dt>Current chars</dt>
1273 <dd>Does the same as <em>Basic</em> but also indents a new line after an opening
1274 brace '{', and de-indents when typing a closing brace '}'. For Python,
1275 a new line will be indented after typing ':' at the end of the
1276 previous line.</dd>
1277 <dt>Match braces</dt>
1278 <dd>Similar to <em>Current chars</em> but the closing brace will be aligned to
1279 match the indentation of the line with the opening brace.</dd>
1280 </dl>
1281 <p>There is also XML-tag auto-indentation. This is enabled when the
1282 mode is more than just Basic, and is also controlled by a filetype
1283 setting - see <a class="reference internal" href="#xml-indent-tags">xml_indent_tags</a>.</p>
1284 </div>
1285 <div class="section" id="bookmarks">
1286 <h3><a class="toc-backref" href="#id48">Bookmarks</a></h3>
1287 <p>Geany provides a handy bookmarking feature that lets you mark one
1288 or more lines in a document, and return the cursor to them using a
1289 key combination.</p>
1290 <p>To place a mark on a line, either left-mouse-click in the left margin
1291 of the editor window, or else use Ctrl-m. This will
1292 produce a small green plus symbol in the margin. You can have as many
1293 marks in a document as you like. Click again (or use Ctrl-m again)
1294 to remove the bookmark. To remove all the marks in a given document,
1295 use &quot;Remove Markers&quot; in the Document menu.</p>
1296 <p>To navigate down your document, jumping from one mark to the next,
1297 use Ctrl-. (control period). To go in the opposite direction on
1298 the page, use Ctrl-, (control comma). Using the bookmarking feature
1299 together with the commands to switch from one editor tab to another
1300 (Ctrl-PgUp/PgDn and Ctrl-Tab) provides a particularly fast way to
1301 navigate around multiple files.</p>
1302 </div>
1303 <div class="section" id="code-navigation-history">
1304 <h3><a class="toc-backref" href="#id49">Code navigation history</a></h3>
1305 <p>To ease navigation in source files and especially between
1306 different files, Geany lets you jump between different navigation
1307 points. Currently, this works for the following:</p>
1308 <ul class="simple">
1309 <li><a class="reference internal" href="#go-to-tag-declaration">Go to tag declaration</a></li>
1310 <li><a class="reference internal" href="#go-to-tag-definition">Go to tag definition</a></li>
1311 <li>Symbol list items</li>
1312 <li>Build errors</li>
1313 <li>Message items</li>
1314 </ul>
1315 <p>When using one of these actions, Geany remembers your current position
1316 and jumps to the new one. If you decide to go back to your previous
1317 position in the file, just use &quot;Navigate back a location&quot;. To
1318 get back to the new position again, just use &quot;Navigate forward a
1319 location&quot;. This makes it easier to navigate in e.g. foreign code
1320 and between different files.</p>
1321 </div>
1322 <div class="section" id="sending-text-through-custom-commands">
1323 <h3><a class="toc-backref" href="#id50">Sending text through custom commands</a></h3>
1324 <p>You can define several custom commands in Geany and send the current
1325 selection to one of these commands using the <em>Edit-&gt;Format-&gt;Send
1326 Selection to</em> menu or keybindings. The output of the command will be
1327 used to replace the current selection. This makes it possible to use
1328 text formatting tools with Geany in a general way.</p>
1329 <p>The selected text will be sent to the standard input of the executed
1330 command, so the command should be able to read from it and it should
1331 print all results to its standard output which will be read by
1332 Geany. To help finding errors in executing the command, the output
1333 of the program's standard error will be printed on Geany's standard
1334 output.</p>
1335 <p>If there is no selection, the whole current line is used instead.</p>
1336 <p>To add a custom command, use the <em>Send Selection to-&gt;Set Custom
1337 Commands</em> menu item. Click on <em>Add</em> to get a new item and type the
1338 command. You can also specify some command line options. Empty
1339 commands are not saved.</p>
1340 <p>Normal shell quoting is supported, so you can do things like:</p>
1341 <ul class="simple">
1342 <li><tt class="docutils literal">sed <span class="pre">'s/\./(dot)/g'</span></tt></li>
1343 </ul>
1344 <p>The above example would normally be done with the <a class="reference internal" href="#replace-all">Replace all</a>
1345 function, but it can be handy to have common commands already set up.</p>
1346 </div>
1347 <div class="section" id="context-actions">
1348 <h3><a class="toc-backref" href="#id51">Context actions</a></h3>
1349 <p>You can execute the context action command on the current word at the
1350 cursor position or the available selection. This word or selection
1351 can be used as an argument to the command.
1352 The context action is invoked by a menu entry in the popup menu of the
1353 editor and also a keyboard shortcut (see the section called
1354 <a class="reference internal" href="#keybindings">Keybindings</a>).</p>
1355 <p>The command can be specified in the preferences dialog and also for
1356 each filetype (see &quot;context_action_cmd&quot; in the section called
1357 <a class="reference internal" href="#filetype-configuration">Filetype configuration</a>). When the context action is invoked, the filetype
1358 specific command is used if available, otherwise the command
1359 specified in the preferences dialog is executed.</p>
1360 <p>The current word or selection can be referred with the wildcard &quot;%s&quot;
1361 in the command, it will be replaced by the current word or
1362 selection before the command is executed.</p>
1363 <p>For example a context action can be used to open API documentation
1364 in a browser window, the command to open the PHP API documentation
1365 would be:</p>
1366 <pre class="literal-block">
1367 firefox &quot;http://www.php.net/%s&quot;
1368 </pre>
1369 <p>when executing the command, the %s is substituted by the word near
1370 the cursor position or by the current selection. If the cursor is at
1371 the word &quot;echo&quot;, a browser window will open(assumed your browser is
1372 called firefox) and it will open the address: <a class="reference external" href="http://www.php.net/echo">http://www.php.net/echo</a>.</p>
1373 </div>
1374 <div class="section" id="autocompletion">
1375 <h3><a class="toc-backref" href="#id52">Autocompletion</a></h3>
1376 <p>Geany can offer a list of possible completions for symbols defined in the
1377 tags and for all words in a document.</p>
1378 <p>The autocompletion list for symbols is presented when the first few
1379 characters of the symbol are typed (configurable, see <a class="reference internal" href="#editor-completions-preferences">Editor Completions
1380 preferences</a>, default 4) or when the <em>Complete word</em>
1381 keybinding is pressed (configurable, see <a class="reference internal" href="#editor-keybindings">Editor keybindings</a>,
1382 default Ctrl-Space).</p>
1383 <p>When the defined keybinding is typed and the <em>Autocomplete all words in
1384 document</em> preference (in <a class="reference internal" href="#editor-completions-preferences">Editor Completions preferences</a>)
1385 is selected then the autocompletion list will show all matching words
1386 in the document, if there are no matching symbols.</p>
1387 <p>If you don't want to use autocompletion it can be dismissed until
1388 the next symbol by pressing Escape. The autocompletion list is updated
1389 as more characters are typed so that it only shows completions that start
1390 with the characters typed so far. If no symbols begin with the sequence,
1391 the autocompletion window is closed.</p>
1392 <p>The up and down arrows will move the selected item. The highlighted
1393 item on the autocompletion list can be chosen from the list by pressing
1394 Enter/Return. You can also double-click to select an item. The sequence
1395 will be completed to match the chosen item, and if the <em>Drop rest of
1396 word on completion</em> preference is set (in <a class="reference internal" href="#editor-completions-preferences">Editor Completions
1397 preferences</a>) then any characters after the cursor that match
1398 a symbol or word are deleted.</p>
1399 <div class="section" id="word-part-completion">
1400 <h4><a class="toc-backref" href="#id53">Word part completion</a></h4>
1401 <p>By default, pressing Tab will complete the selected item by word part;
1402 useful e.g. for adding the prefix <tt class="docutils literal">gtk_combo_box_entry_</tt> without typing it
1403 manually:</p>
1404 <ul class="simple">
1405 <li>gtk_com&lt;TAB&gt;</li>
1406 <li>gtk_combo_&lt;TAB&gt;</li>
1407 <li>gtk_combo_box_&lt;e&gt;&lt;TAB&gt;</li>
1408 <li>gtk_combo_box_entry_&lt;s&gt;&lt;ENTER&gt;</li>
1409 <li>gtk_combo_box_entry_set_text_column</li>
1410 </ul>
1411 <p>The key combination can be changed from Tab - See <a class="reference internal" href="#editor-keybindings">Editor keybindings</a>.
1412 If you clear/change the key combination for word part completion, Tab
1413 will complete the whole word instead, like Enter.</p>
1414 </div>
1415 <div class="section" id="scope-autocompletion">
1416 <h4><a class="toc-backref" href="#id54">Scope autocompletion</a></h4>
1417 <p>E.g.:</p>
1418 <pre class="literal-block">
1419 struct
1421 int i;
1422 char c;
1423 } foo;
1424 </pre>
1425 <p>When you type <tt class="docutils literal">foo.</tt> it will show an autocompletion list with 'i' and
1426 'c' symbols.</p>
1427 <p>It only works for languages that set parent scope names for e.g. struct
1428 members. Currently this means C-like languages. The C tag parser only
1429 parses global scopes, so this won't work for structs or objects declared
1430 in local scope.</p>
1431 </div>
1432 </div>
1433 <div class="section" id="user-definable-snippets">
1434 <h3><a class="toc-backref" href="#id55">User-definable snippets</a></h3>
1435 <p>Snippets are small strings or code constructs which can be replaced or
1436 completed to a more complex string. So you can save a lot of time when
1437 typing common strings and letting Geany do the work for you.
1438 To know what to complete or replace Geany reads a configuration file
1439 called <tt class="docutils literal">snippets.conf</tt> at startup.</p>
1440 <p>Maybe you need to often type your name, so define a snippet like this:</p>
1441 <pre class="literal-block">
1442 [Default]
1443 myname=Enrico Tröger
1444 </pre>
1445 <p>Every time you write <tt class="docutils literal">myname</tt> &lt;TAB&gt; in Geany, it will replace &quot;myname&quot;
1446 with &quot;Enrico Tröger&quot;. The key to start autocompletion can be changed
1447 in the preferences dialog, by default it is TAB. The corresponding keybinding
1448 is called <cite>Complete snippet</cite>.</p>
1449 <p><strong>Paths</strong></p>
1450 <p>You can override the default snippets using the user
1451 <tt class="docutils literal">snippets.conf</tt> file. Use the <em>Tools-&gt;Configuration
1452 Files-&gt;snippets.conf</em> menu item. See also <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a>.</p>
1453 <p>This adds the default settings to the user file if the file doesn't
1454 exist. Alternatively the file can be created manually, adding only
1455 the settings you want to change. All missing settings will be read
1456 from the system snippets file.</p>
1457 <p><strong>Snippet groups</strong></p>
1458 <p>The file <tt class="docutils literal">snippets.conf</tt> contains sections defining snippets that
1459 are available for particular filetypes and in general.</p>
1460 <p>The two sections &quot;Default&quot; and &quot;Special&quot; apply to all filetypes.
1461 &quot;Default&quot; contains all snippets which are available for every
1462 filetype and &quot;Special&quot; contains snippets which can only be used in
1463 other snippets. So you can define often used parts of snippets and
1464 just use the special snippet as a placeholder (see the
1465 <tt class="docutils literal">snippets.conf</tt> for details).</p>
1466 <p>You can define sections with the name of a filetype eg &quot;C++&quot;. The
1467 snippets in that section are only available for use in files with that
1468 filetype. Snippets in filetype sections will hide snippets with the
1469 same name in the &quot;Default&quot; section when used in a file of that
1470 filetype.</p>
1471 <p><strong>Substitution sequences for snippets</strong></p>
1472 <p>To define snippets you can use several special character sequences which
1473 will be replaced when using the snippet:</p>
1474 <table border="1" class="docutils">
1475 <colgroup>
1476 <col width="22%" />
1477 <col width="78%" />
1478 </colgroup>
1479 <tbody valign="top">
1480 <tr><td>\n or %newline%</td>
1481 <td>Insert a new line (it will be replaced by the used EOL
1482 char(s): LF, CR/LF, or CR).</td>
1483 </tr>
1484 <tr><td>\t or %ws%</td>
1485 <td>Insert an indentation step, it will be replaced according
1486 to the current document's indent mode.</td>
1487 </tr>
1488 <tr><td>\s</td>
1489 <td>\s to force whitespace at beginning or end of a value
1490 ('key= value' won't work, use 'key=\svalue')</td>
1491 </tr>
1492 <tr><td>%cursor%</td>
1493 <td>Place the cursor at this position after completion has
1494 been done. You can define multiple %cursor% wildcards
1495 and use the keybinding <cite>Move cursor in snippet</cite> to jump
1496 to the next defined cursor position in the completed
1497 snippet.</td>
1498 </tr>
1499 <tr><td>%...%</td>
1500 <td>&quot;...&quot; means the name of a key in the &quot;Special&quot; section.
1501 If you have defined a key &quot;brace_open&quot; in the &quot;Special&quot;
1502 section you can use %brace_open% in any other snippet.</td>
1503 </tr>
1504 </tbody>
1505 </table>
1506 <p>Snippet names must not contain spaces otherwise they won't
1507 work correctly. But beside that you can define almost any
1508 string as a snippet and use it later in Geany. It is not limited
1509 to existing contructs of certain programming languages(like <tt class="docutils literal">if</tt>,
1510 <tt class="docutils literal">for</tt>, <tt class="docutils literal">switch</tt>). Define whatever you need.</p>
1511 <p><strong>Template wildcards</strong></p>
1512 <p>Since Geany 0.15 you can also use most of the available templates wildcards
1513 listed in <a class="reference internal" href="#template-wildcards">Template wildcards</a>. All wildcards which are listed as
1514 <cite>available in snippets</cite> can be used. For instance to improve the above example:</p>
1515 <pre class="literal-block">
1516 [Default]
1517 myname=My name is {developer}
1518 mysystem=My system: {command:uname -a}
1519 </pre>
1520 <p>this will replace <tt class="docutils literal">myname</tt> with &quot;My name is &quot; and the value of the template
1521 preference <tt class="docutils literal">developer</tt>.</p>
1522 <p><strong>Word characters</strong></p>
1523 <p>You can change the way Geany recognizes the word to complete,
1524 that is how the start and end of a word is recognised when the
1525 snippet completion is requested. The section &quot;Special&quot; may
1526 contain a key &quot;wordchars&quot; which lists all characters a string may contain
1527 to be recognized as a word for completion. Leave it commented to use
1528 default characters or define it to add or remove characters to fit your
1529 needs.</p>
1530 <div class="section" id="snippet-keybindings">
1531 <h4><a class="toc-backref" href="#id56">Snippet keybindings</a></h4>
1532 <p>Normally you would type the snippet name and press Tab. However, you
1533 can define keybindings for snippets under the <em>Keybindings</em> group in
1534 <tt class="docutils literal">snippets.conf</tt>:</p>
1535 <pre class="literal-block">
1536 [Keybindings]
1537 for=&lt;Ctrl&gt;7
1538 block_cursor=&lt;Ctrl&gt;8
1539 </pre>
1540 <div class="note">
1541 <p class="first admonition-title">Note</p>
1542 <p class="last">Snippet keybindings may be overridden by Geany's configurable
1543 keybindings.</p>
1544 </div>
1545 </div>
1546 </div>
1547 <div class="section" id="inserting-unicode-characters">
1548 <h3><a class="toc-backref" href="#id57">Inserting Unicode characters</a></h3>
1549 <p>You can insert Unicode code points by hitting Ctrl-Shift-u, then still holding
1550 Ctrl-Shift, type some hex digits representing the code point for the character
1551 you want and hit Enter or Return (still holding Ctrl-Shift). If you release
1552 Ctrl-Shift before hitting Enter or Return (or any other character), the code
1553 insertion is completed, but the typed character is also entered. In the case
1554 of Enter/Return, it is a newline, as you might expect.</p>
1555 <p>In some earlier versions of Geany, you might need to first unbind Ctrl-Shift-u
1556 in the <a class="reference internal" href="#keybinding-preferences">keybinding preferences</a>, then select <em>Tools-&gt;Reload Configuration</em>
1557 or restart Geany. Note that it works slightly differently from other GTK
1558 applications, in that you'll need to continue to hold down the Ctrl and Shift
1559 keys while typing the code point hex digits (and the Enter or Return to finish the code point).</p>
1560 </div>
1561 </div>
1562 <div class="section" id="search-replace-and-go-to">
1563 <h2><a class="toc-backref" href="#id58">Search, replace and go to</a></h2>
1564 <p>This section describes search-related commands from the Search menu
1565 and the editor window's popup menu:</p>
1566 <ul class="simple">
1567 <li>Find</li>
1568 <li>Find selection</li>
1569 <li>Find usage</li>
1570 <li>Find in files</li>
1571 <li>Replace</li>
1572 <li>Go to tag definition</li>
1573 <li>Go to tag declaration</li>
1574 <li>Go to line</li>
1575 </ul>
1576 <div class="section" id="toolbar-entries">
1577 <h3><a class="toc-backref" href="#id59">Toolbar entries</a></h3>
1578 <p>There are also two toolbar entries:</p>
1579 <ul class="simple">
1580 <li>Search bar</li>
1581 <li>Go to line entry</li>
1582 </ul>
1583 <p>There are keybindings to focus each of these - see <a class="reference internal" href="#focus-keybindings">Focus
1584 keybindings</a>. Pressing Escape will then focus the editor.</p>
1585 <div class="section" id="search-bar">
1586 <h4><a class="toc-backref" href="#id60">Search bar</a></h4>
1587 <p>The quickest way to find some text is to use the search bar entry in
1588 the toolbar. This performs a case-insensitive search in the current
1589 document whilst you type. Pressing Enter will search again, and pressing
1590 Shift-Enter will search backwards.</p>
1591 </div>
1592 </div>
1593 <div class="section" id="find">
1594 <h3><a class="toc-backref" href="#id61">Find</a></h3>
1595 <p>The Find dialog is used for finding text in one or more open documents.</p>
1596 <img alt="./images/find_dialog.png" src="./images/find_dialog.png" />
1597 <div class="section" id="matching-options">
1598 <h4><a class="toc-backref" href="#id62">Matching options</a></h4>
1599 <p>The syntax for the <em>Use regular expressions</em> option is shown in
1600 <a class="reference internal" href="#regular-expressions">Regular expressions</a>.</p>
1601 <div class="note">
1602 <p class="first admonition-title">Note</p>
1603 <p class="last"><em>Use escape sequences</em> is implied for regular expressions.</p>
1604 </div>
1605 <p>The <em>Use escape sequences</em> option will transform any escaped characters
1606 into their UTF-8 equivalent. For example, \t will be transformed into
1607 a tab character. Other recognized symbols are: \\, \n, \r, \uXXXX
1608 (Unicode characters).</p>
1609 </div>
1610 <div class="section" id="find-all">
1611 <h4><a class="toc-backref" href="#id63">Find all</a></h4>
1612 <p>To find all matches, click on the Find All expander. This will reveal
1613 several options:</p>
1614 <ul class="simple">
1615 <li>In Document</li>
1616 <li>In Session</li>
1617 <li>Mark</li>
1618 </ul>
1619 <p>Find All In Document will show a list of matching lines in the
1620 current document in the Messages tab of the Message Window. <em>Find All
1621 In Session</em> does the same for all open documents.</p>
1622 <p>Mark will highlight all matches in the current document with a
1623 colored box. These markers can be removed by selecting the
1624 Remove Markers command from the Document menu.</p>
1625 </div>
1626 <div class="section" id="change-font-in-search-dialog-text-fields">
1627 <h4><a class="toc-backref" href="#id64">Change font in search dialog text fields</a></h4>
1628 <p>All search related dialogs use a Monospace for the text input fields to
1629 increase the readability of input text. This is useful when you are
1630 typing input such as regular expressions with spaces, periods and commas which
1631 might it hard to read with a proportional font.</p>
1632 <p>If you want to change the font, you can do this easily
1633 by inserting the following style into your <tt class="docutils literal"><span class="pre">.gtkrc-2.0</span></tt>
1634 (usually found in your home directory on UNIX-like systems and in the
1635 etc subdirectory of your Geany installation on Windows):</p>
1636 <pre class="literal-block">
1637 style &quot;search_style&quot;
1639 font_name=&quot;Monospace 8&quot;
1641 widget &quot;GeanyDialogSearch.*.GtkEntry&quot; style:highest &quot;search_style&quot;
1642 </pre>
1643 <p>Please note the addition of &quot;:highest&quot; in the last line which sets the priority
1644 of this style to the highest available. Otherwise, the style is ignored
1645 for the search dialogs.</p>
1646 </div>
1647 </div>
1648 <div class="section" id="find-selection">
1649 <h3><a class="toc-backref" href="#id65">Find selection</a></h3>
1650 <p>The <em>Find Next/Previous Selection</em> commands perform a search for the
1651 current selected text. If nothing is selected, by default the current
1652 word is used instead. This can be customized by the
1653 <em>find_selection_type</em> preference - see <a class="reference internal" href="#various-preferences">Various preferences</a>.</p>
1654 <table border="1" class="docutils">
1655 <colgroup>
1656 <col width="10%" />
1657 <col width="90%" />
1658 </colgroup>
1659 <thead valign="bottom">
1660 <tr><th class="head">Value</th>
1661 <th class="head"><em>find_selection_type</em> behaviour</th>
1662 </tr>
1663 </thead>
1664 <tbody valign="top">
1665 <tr><td>0</td>
1666 <td>Use the current word (default).</td>
1667 </tr>
1668 <tr><td>1</td>
1669 <td>Try the X selection first, then current word.</td>
1670 </tr>
1671 <tr><td>2</td>
1672 <td>Repeat last search.</td>
1673 </tr>
1674 </tbody>
1675 </table>
1676 </div>
1677 <div class="section" id="find-usage">
1678 <h3><a class="toc-backref" href="#id66">Find usage</a></h3>
1679 <p>Find usage searches all open files. It is similar to the Find All In
1680 Session option in the Find dialog.</p>
1681 <p>If there is a selection, then it is used as the search text; otherwise
1682 the current word is used. The current word is either taken from the
1683 word nearest the edit cursor, or the word underneath the popup menu
1684 click position when the popup menu is used. The search results are
1685 shown in the Messages tab of the Message Window.</p>
1686 </div>
1687 <div class="section" id="find-in-files">
1688 <h3><a class="toc-backref" href="#id67">Find in files</a></h3>
1689 <p>Find in files is a more powerful version of Find usage that searches
1690 all files in a certain directory using the Grep tool. The Grep tool
1691 must be correctly set in Preferences to the path of the system's Grep
1692 utility. GNU Grep is recommended (see note below).</p>
1693 <img alt="./images/find_in_files_dialog.png" src="./images/find_in_files_dialog.png" />
1694 <p>The <em>Files</em> setting allows to choose which files are included in the
1695 search, depending on the mode:</p>
1696 <dl class="docutils">
1697 <dt>All</dt>
1698 <dd>Search in all files;</dd>
1699 <dt>Project</dt>
1700 <dd>Use the current project's patterns, see <a class="reference internal" href="#project-properties">Project properties</a>;</dd>
1701 <dt>Custom</dt>
1702 <dd>Use custom patterns.</dd>
1703 </dl>
1704 <p>Both project and custom patterns use a glob-style syntax, each
1705 pattern separated by a space. To search all <tt class="docutils literal">.c</tt> and <tt class="docutils literal">.h</tt> files,
1706 use: <tt class="docutils literal">*.c *.h</tt>.
1707 Note that an empty pattern list searches in all files rather
1708 than none.</p>
1709 <p>The <em>Encoding</em> field can be used to define the encoding of the files
1710 to be searched. The entered search text is converted to the chosen encoding
1711 and the search results are converted back to UTF-8.</p>
1712 <p>The <em>Extra options</em> field is used to pass any additional arguments to
1713 the grep tool.</p>
1714 <div class="note">
1715 <p class="first admonition-title">Note</p>
1716 <p class="last">The <em>Files</em> setting uses <tt class="docutils literal"><span class="pre">--include=</span></tt> when searching recursively,
1717 <em>Recurse in subfolders</em> uses <tt class="docutils literal"><span class="pre">-r</span></tt>; both are GNU Grep options and may
1718 not work with other Grep implementations.</p>
1719 </div>
1720 <div class="section" id="filtering-out-version-control-files">
1721 <h4><a class="toc-backref" href="#id68">Filtering out version control files</a></h4>
1722 <p>When using the <em>Recurse in subfolders</em> option with a directory that's
1723 under version control, you can set the <em>Extra options</em> field to filter
1724 out version control files.</p>
1725 <p>If you have GNU Grep &gt;= 2.5.2 you can use the <tt class="docutils literal"><span class="pre">--exclude-dir</span></tt>
1726 argument to filter out CVS and hidden directories like <tt class="docutils literal">.svn</tt>.</p>
1727 <p>Example: <tt class="docutils literal"><span class="pre">--exclude-dir=.svn</span> <span class="pre">--exclude-dir=CVS</span></tt></p>
1728 <p>If you have an older Grep, you can try using the <tt class="docutils literal"><span class="pre">--exclude</span></tt> flag
1729 to filter out filenames.</p>
1730 <p>SVN Example: <tt class="docutils literal"><span class="pre">--exclude=*.svn-base</span></tt></p>
1731 <p>The --exclude argument only matches the file name part, not the path.</p>
1732 </div>
1733 </div>
1734 <div class="section" id="replace">
1735 <h3><a class="toc-backref" href="#id69">Replace</a></h3>
1736 <p>The Replace dialog is used for replacing text in one or more open
1737 documents.</p>
1738 <img alt="./images/replace_dialog.png" src="./images/replace_dialog.png" />
1739 <p>The Replace dialog has the same options for matching text as the Find
1740 dialog. See the section <a class="reference internal" href="#matching-options">Matching options</a>.</p>
1741 <p>The <em>Use regular expressions</em> option allows regular expressions to
1742 be used in the search string and back references in the replacement
1743 text -- see the entry for '\n' in <a class="reference internal" href="#regular-expressions">Regular expressions</a>.</p>
1744 <div class="section" id="replace-all">
1745 <h4><a class="toc-backref" href="#id70">Replace all</a></h4>
1746 <p>To replace several matches, click on the <em>Replace All</em> expander. This
1747 will reveal several options:</p>
1748 <ul class="simple">
1749 <li>In Document</li>
1750 <li>In Session</li>
1751 <li>In Selection</li>
1752 </ul>
1753 <p><em>Replace All In Document</em> will replace all matching text in the
1754 current document. <em>Replace All In Session</em> does the same for all open
1755 documents. <em>Replace All In Selection</em> will replace all matching text
1756 in the current selection of the current document.</p>
1757 </div>
1758 </div>
1759 <div class="section" id="go-to-tag-definition">
1760 <h3><a class="toc-backref" href="#id71">Go to tag definition</a></h3>
1761 <p>If the current word is the name of a tag definition (like a function
1762 body) and the file containing the tag definition is open, this command
1763 will switch to that file and go to the corresponding line number. The
1764 current word is either the word nearest the edit cursor,
1765 or the word underneath the popup menu click position when the popup
1766 menu is used.</p>
1767 <div class="note">
1768 <p class="first admonition-title">Note</p>
1769 <p class="last">If the current word's tag is on the current line, Geany will try
1770 to look for a tag declaration instead, as this is more useful.
1771 Likewise 'Go to tag declaration' will search for a tag definition
1772 in this case also.</p>
1773 </div>
1774 </div>
1775 <div class="section" id="go-to-tag-declaration">
1776 <h3><a class="toc-backref" href="#id72">Go to tag declaration</a></h3>
1777 <p>Like Go to tag definition, but for a forward declaration such as a
1778 C function prototype or <tt class="docutils literal">extern</tt> declaration instead of a function
1779 body.</p>
1780 </div>
1781 <div class="section" id="go-to-line">
1782 <h3><a class="toc-backref" href="#id73">Go to line</a></h3>
1783 <p>Go to a particular line number in the current file.</p>
1784 </div>
1785 <div class="section" id="regular-expressions">
1786 <h3><a class="toc-backref" href="#id74">Regular expressions</a></h3>
1787 <p>You can use regular expressions in the Find and Replace dialogs
1788 by selecting the <em>Use regular expressions</em> check box (see <a class="reference internal" href="#matching-options">Matching
1789 options</a>). The syntax is POSIX compatible, as described in the table
1790 below.</p>
1791 <div class="note">
1792 <p class="first admonition-title">Note</p>
1793 <ol class="last arabic simple">
1794 <li>The <em>Use escape sequences</em> dialog option always applies for regular
1795 expressions.</li>
1796 <li>Searching backwards with regular expressions is not supported.</li>
1797 <li>\b, \d, \s, \w are GNU extensions and may not be available
1798 on non-GNU POSIX systems unless you built Geany with the
1799 <tt class="docutils literal"><span class="pre">--enable-gnu-regex</span></tt> option (this is always used on Windows).</li>
1800 </ol>
1801 </div>
1802 <p><strong>In a regular expression, the following characters are interpreted:</strong></p>
1803 <table border="1" class="docutils">
1804 <colgroup>
1805 <col width="10%" />
1806 <col width="90%" />
1807 </colgroup>
1808 <tbody valign="top">
1809 <tr><td>.</td>
1810 <td>Matches any character.</td>
1811 </tr>
1812 <tr><td>(</td>
1813 <td>This marks the start of a region for tagging a match.</td>
1814 </tr>
1815 <tr><td>)</td>
1816 <td>This marks the end of a tagged region.</td>
1817 </tr>
1818 <tr><td>\n</td>
1819 <td><p class="first">Where n is 1 through 9 refers to the first through ninth tagged
1820 region when searching or replacing.</p>
1821 <p>Searching for (Wiki)\1 matches WikiWiki.</p>
1822 <p class="last">If the search string was Fred([1-9])XXX and the
1823 replace string was Sam\1YYY, when applied to Fred2XXX this
1824 would generate Sam2YYY.</p>
1825 </td>
1826 </tr>
1827 <tr><td>\0</td>
1828 <td>When replacing, the whole matching text.</td>
1829 </tr>
1830 <tr><td>\b</td>
1831 <td>This matches a word boundary.</td>
1832 </tr>
1833 <tr><td>\c</td>
1834 <td><p class="first">A backslash followed by d, D, s, S, w or W, becomes a
1835 character class (both inside and outside sets []).</p>
1836 <ul class="last simple">
1837 <li>d: decimal digits</li>
1838 <li>D: any char except decimal digits</li>
1839 <li>s: whitespace (space, \t \n \r \f \v)</li>
1840 <li>S: any char except whitespace (see above)</li>
1841 <li>w: alphanumeric &amp; underscore</li>
1842 <li>W: any char except alphanumeric &amp; underscore</li>
1843 </ul>
1844 </td>
1845 </tr>
1846 <tr><td>\x</td>
1847 <td>This allows you to use a character x that would otherwise have
1848 a special meaning. For example, \[ would be interpreted as [
1849 and not as the start of a character set. Use \\ for a literal
1850 backslash.</td>
1851 </tr>
1852 <tr><td>[...]</td>
1853 <td><p class="first">Matches one of the characters in the set. If the first
1854 character in the set is ^, it matches the characters NOT in
1855 the set, i.e. complements the set. A shorthand S-E (start
1856 dash end) is used to specify a set of characters S up to E,
1857 inclusive.</p>
1858 <p>The special characters ] and - have no special
1859 meaning if they appear first in the set. - can also be last
1860 in the set. To include both, put ] first: []A-Z-].</p>
1861 <p>Examples:</p>
1862 <pre class="last literal-block">
1863 []|-] matches these 3 chars
1864 []-|] matches from ] to | chars
1865 [a-z] any lowercase alpha
1866 [^]-] any char except - and ]
1867 [^A-Z] any char except uppercase alpha
1868 [a-zA-Z] any alpha
1869 </pre>
1870 </td>
1871 </tr>
1872 <tr><td>^</td>
1873 <td>This matches the start of a line (unless used inside a set, see
1874 above).</td>
1875 </tr>
1876 <tr><td>$</td>
1877 <td>This matches the end of a line.</td>
1878 </tr>
1879 <tr><td>*</td>
1880 <td>This matches 0 or more times. For example, Sa*m matches Sm, Sam,
1881 Saam, Saaam and so on.</td>
1882 </tr>
1883 <tr><td>+</td>
1884 <td>This matches 1 or more times. For example, Sa+m matches Sam,
1885 Saam, Saaam and so on.</td>
1886 </tr>
1887 <tr><td>?</td>
1888 <td>This matches 0 or 1 time(s). For example, Joh?n matches John, Jon.</td>
1889 </tr>
1890 </tbody>
1891 </table>
1892 <div class="note">
1893 <p class="first admonition-title">Note</p>
1894 <p class="last">This table is adapted from Scintilla and SciTE documentation,
1895 distributed under the <a class="reference internal" href="#license-for-scintilla-and-scite">License for Scintilla and SciTE</a>.</p>
1896 </div>
1897 </div>
1898 </div>
1899 <div class="section" id="view-menu">
1900 <h2><a class="toc-backref" href="#id75">View menu</a></h2>
1901 <p>The View menu allows various elements of the main window to be shown
1902 or hidden, and also provides various display-related editor options.</p>
1903 <div class="section" id="color-schemes-menu">
1904 <h3><a class="toc-backref" href="#id76">Color schemes menu</a></h3>
1905 <p>The Color schemes menu is available under the <em>View-&gt;Editor</em> submenu.
1906 It lists various color schemes for editor highlighting styles,
1907 including the default scheme first. Other items are available based
1908 on what color scheme files Geany found at startup.</p>
1909 <p>Color scheme files are read from the <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a> under
1910 the <tt class="docutils literal">colorschemes</tt> subdirectory. They should have the extension
1911 <tt class="docutils literal">.conf</tt>. The default color scheme
1912 is read from <tt class="docutils literal">filetypes.common</tt>.</p>
1913 <p>The <a class="reference internal" href="#named-styles-section">[named_styles] section</a> is the same as for <tt class="docutils literal">filetypes.common</tt>.</p>
1914 <div class="note">
1915 <p class="first admonition-title">Note</p>
1916 <p class="last">Some filetypes do not yet support named styles so will ignore
1917 any chosen color scheme.</p>
1918 </div>
1919 <p>The <tt class="docutils literal">[theme_info]</tt> section can contain information about the
1920 theme. The <tt class="docutils literal">name</tt> and <tt class="docutils literal">description</tt> keys are read to set the
1921 menu item text and tooltip, respectively. These keys can have
1922 translations, e.g.:</p>
1923 <pre class="literal-block">
1924 key=Hello
1925 key[de]=Hallo
1926 key[fr_FR]=Bonjour
1927 </pre>
1928 </div>
1929 </div>
1930 <div class="section" id="tags">
1931 <h2><a class="toc-backref" href="#id77">Tags</a></h2>
1932 <p>Tags are information that relates symbols in a program with the
1933 source file location of the declaration and definition.</p>
1934 <p>Geany has built-in functionality for generating tag information (aka
1935 &quot;workspace tags&quot;) for supported filetypes when you open a file. You
1936 can also have Geany automatically load external tag files (aka &quot;global
1937 tags files&quot;) upon startup, or manually using <em>Tools --&gt; Load Tags</em>.</p>
1938 <p>Geany uses its own tag file format, similar to what <tt class="docutils literal">ctags</tt> uses
1939 (but is incompatible with ctags). You use Geany to generate global
1940 tags files, as described below.</p>
1941 <div class="section" id="workspace-tags">
1942 <h3><a class="toc-backref" href="#id78">Workspace tags</a></h3>
1943 <p>Tags for each document are parsed whenever a file is loaded, saved or
1944 modified (see <em>Symbol list update frequency</em> preference in the <a class="reference internal" href="#editor-completions-preferences">Editor
1945 Completions preferences</a>). These are shown in the Symbol list in the
1946 Sidebar. These tags are also used for autocompletion of symbols and calltips
1947 for all documents open in the current session that have the same filetype.</p>
1948 <p>The <em>Go to Tag</em> commands can be used with all workspace tags. See
1949 <a class="reference internal" href="#go-to-tag-definition">Go to tag definition</a>.</p>
1950 </div>
1951 <div class="section" id="global-tags">
1952 <h3><a class="toc-backref" href="#id79">Global tags</a></h3>
1953 <p>Global tags are used to provide autocompletion of symbols and calltips
1954 without having to open the corresponding source files. This is intended
1955 for library APIs, as the tags file only has to be updated when you upgrade
1956 the library.</p>
1957 <p>You can load a custom global tags file in two ways:</p>
1958 <ul class="simple">
1959 <li>Using the <em>Load Tags</em> command in the Tools menu.</li>
1960 <li>By moving or symlinking tags files to the <tt class="docutils literal">tags</tt> subdirectory of
1961 one of the <a class="reference internal" href="#configuration-file-paths">configuration file paths</a> before starting Geany.</li>
1962 </ul>
1963 <p>You can either download these files or generate your own. They have
1964 the format:</p>
1965 <pre class="literal-block">
1966 name.lang_ext.tags
1967 </pre>
1968 <p><em>lang_ext</em> is one of the extensions set for the filetype associated
1969 with the tags. See the section called <a class="reference internal" href="#filetype-extensions">Filetype extensions</a> for
1970 more information.</p>
1971 <div class="section" id="default-global-tags-files">
1972 <h4><a class="toc-backref" href="#id80">Default global tags files</a></h4>
1973 <p>For some languages, a list of global tags is loaded when the
1974 corresponding filetype is first used. Currently these are for:</p>
1975 <ul class="simple">
1976 <li>C -- GTK+ and GLib</li>
1977 <li>Pascal</li>
1978 <li>PHP</li>
1979 <li>HTML -- &amp;symbol; completion, e.g. for ampersand, copyright, etc.</li>
1980 <li>LaTeX</li>
1981 <li>Python</li>
1982 </ul>
1983 </div>
1984 <div class="section" id="global-tags-file-format">
1985 <h4><a class="toc-backref" href="#id81">Global tags file format</a></h4>
1986 <p>Global tags files can have two different formats:</p>
1987 <ul class="simple">
1988 <li>Tagmanager format</li>
1989 <li>Pipe-separated format</li>
1990 </ul>
1991 <p>The first line of global tags files should be a comment, introduced
1992 by <tt class="docutils literal">#</tt> followed by a space and a string like <tt class="docutils literal">format=pipe</tt>
1993 or <tt class="docutils literal">format=tagmanager</tt> respectively, these are case-sensitive.
1994 This helps Geany to read the file properly. If this line
1995 is missing, Geany tries to auto-detect the used format but this
1996 might fail.</p>
1997 <p>The Tagmanager format is a bit more complex and is used for files
1998 created by the <tt class="docutils literal">geany <span class="pre">-g</span></tt> command. There is one tag per line.
1999 Different tag attributes like the return value or the argument list
2000 are separated with different characters indicating the type of the
2001 following argument.</p>
2002 <p>The Pipe-separated format is easier to read and write.
2003 There is one tag per line and different tag attributes are separated
2004 by the pipe character (<tt class="docutils literal">|</tt>). A line looks like:</p>
2005 <pre class="literal-block">
2006 basename|string|(string path [, string suffix])|
2007 </pre>
2008 <div class="line-block">
2009 <div class="line">The first field is the tag name (usually a function name).</div>
2010 <div class="line">The second field is the type of the return value.</div>
2011 <div class="line">The third field is the argument list for this tag.</div>
2012 <div class="line">The fourth field is the description for this tag but
2013 currently unused and should be left empty.</div>
2014 </div>
2015 <p>Except for the first field (tag name), all other field can be left
2016 empty but the pipe separator must appear for them.</p>
2017 <p>You can easily write your own global tag files using this format.
2018 Just save them in your tags directory, as described earlier in the
2019 section <a class="reference internal" href="#global-tags">Global tags</a>.</p>
2020 </div>
2021 <div class="section" id="generating-a-global-tags-file">
2022 <h4><a class="toc-backref" href="#id82">Generating a global tags file</a></h4>
2023 <p>You can generate your own global tags files by parsing a list of
2024 source files. The command is:</p>
2025 <pre class="literal-block">
2026 geany -g [-P] &lt;Tag File&gt; &lt;File list&gt;
2027 </pre>
2028 <ul class="simple">
2029 <li>Tag File filename should be in the format described earlier --
2030 see the section called <a class="reference internal" href="#global-tags">Global tags</a>.</li>
2031 <li>File list is a list of filenames, each with a full path (unless
2032 you are generating C/C++ tags and have set the CFLAGS environment
2033 variable appropriately).</li>
2034 <li><tt class="docutils literal"><span class="pre">-P</span></tt> or <tt class="docutils literal"><span class="pre">--no-preprocessing</span></tt> disables using the C pre-processor
2035 to process <tt class="docutils literal">#include</tt> directives for C/C++ source files. Use this
2036 option if you want to specify each source file on the command-line
2037 instead of using a 'master' header file. Also can be useful if you
2038 don't want to specify the CFLAGS environment variable.</li>
2039 </ul>
2040 <p>Example for the wxD library for the D programming language:</p>
2041 <pre class="literal-block">
2042 geany -g wxd.d.tags /home/username/wxd/wx/*.d
2043 </pre>
2044 <p><em>Generating C/C++ tag files:</em></p>
2045 <p>For C/C++ tag files, gcc and grep are required, so that header files
2046 can be preprocessed to include any other headers they depend upon.</p>
2047 <p>For C/C++ files, the environment variable CFLAGS should be set with
2048 appropriate <tt class="docutils literal"><span class="pre">-I/path</span></tt> include paths. The following example works with
2049 the bash shell, generating tags for the GnomeUI library:</p>
2050 <pre class="literal-block">
2051 CFLAGS=`pkg-config --cflags libgnomeui-2.0` geany -g gnomeui.c.tags \
2052 /usr/include/libgnomeui-2.0/gnome.h
2053 </pre>
2054 <p>You can adapt this command to use CFLAGS and header files appropriate
2055 for whichever libraries you want.</p>
2056 <p><em>Replacing the default C/C++ tags file:</em></p>
2057 <p>Geany currently uses a default global tags file c99.tags for
2058 C and C++, commonly installed in /usr/share/geany. This file can
2059 be replaced with one containing tags parsed from a different set
2060 of header files. When Geany is next started, your custom tags file
2061 will be loaded instead of the default c99.tags. You should keep a
2062 copy of the generated tags file because it will get overwritten when
2063 upgrading Geany.</p>
2064 <p><em>Generating tag files on Windows:</em></p>
2065 <p>This works basically the same as on other platforms but you need to make
2066 sure you have grep installed and Geany can find it, i.e. it must be
2067 in the PATH environment variable. To test this, open a console window
2068 and type <tt class="docutils literal">grep</tt> and see whether it is executed.
2069 If it is, then you can create a tags file like the following:</p>
2070 <pre class="literal-block">
2071 &quot;c:\program files\geany\bin\geany&quot; -g c:\mytags.php.tags c:\code\somefile.php
2072 </pre>
2073 </div>
2074 </div>
2075 <div class="section" id="c-ignore-tags">
2076 <h3><a class="toc-backref" href="#id83">C ignore.tags</a></h3>
2077 <p>You can ignore certain tags for C-based languages if they would lead
2078 to wrong parsing of the code. Use the <em>Tools-&gt;Configuration
2079 Files-&gt;ignore.tags</em> menu item to open the user <tt class="docutils literal">ignore.tags</tt> file.
2080 See also <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a>.</p>
2081 <p>List all tag names you want to ignore in this file, separated by spaces
2082 and/or newlines.</p>
2083 <p>Example:</p>
2084 <pre class="literal-block">
2085 G_GNUC_NULL_TERMINATED
2086 G_GNUC_PRINTF
2087 G_GNUC_WARN_UNUSED_RESULT
2088 </pre>
2089 <p>This will parse code like:</p>
2090 <p><tt class="docutils literal">gchar **utils_strv_new(const gchar *first, <span class="pre">...)</span>
2091 G_GNUC_NULL_TERMINATED;</tt></p>
2092 <p>More detailed information about ignore tags usage from the Exuberant Ctags
2093 manual page:</p>
2094 <blockquote>
2095 Specifies a list of identifiers which are to be specially handled
2096 while parsing C and C++ source files. This option is specifically
2097 provided to handle special cases arising through the use of
2098 pre-processor macros. When the identifiers listed are simple identifiers,
2099 these identifiers will be ignored during parsing of the source files.
2100 If an identifier is suffixed with a '+' character, ctags will also
2101 ignore any parenthesis-enclosed argument list which may immediately
2102 follow the identifier in the source files.
2103 If two identifiers are separated with the '=' character, the first
2104 identifiers is replaced by the second identifiers for parsing purposes.</blockquote>
2105 <p>For even more detailed information please read the manual page of
2106 Exuberant Ctags.</p>
2107 </div>
2108 </div>
2109 <div class="section" id="preferences">
2110 <h2><a class="toc-backref" href="#id84">Preferences</a></h2>
2111 <p>You may adjust Geany's settings using the Edit --&gt; Preferences
2112 dialog. Any changes you make there can be applied by hitting either
2113 the Apply or the OK button. These settings will persist between Geany
2114 sessions. Note that most settings here have descriptive popup bubble
2115 help -- just hover the mouse over the item in question to get help
2116 on it.</p>
2117 <p>You may also adjust some View settings (under the View menu) that
2118 persist between Geany sessions. The settings under the Document menu,
2119 however, are only for the current document and revert to defaults
2120 when restarting Geany.</p>
2121 <div class="note">
2122 <p class="first admonition-title">Note</p>
2123 <p class="last">In the paragraphs that follow, the text describing a dialog tab
2124 comes after the screenshot of that tab.</p>
2125 </div>
2126 <div class="section" id="general-startup-preferences">
2127 <h3><a class="toc-backref" href="#id85">General Startup preferences</a></h3>
2128 <img alt="./images/pref_dialog_gen_startup.png" src="./images/pref_dialog_gen_startup.png" />
2129 <div class="section" id="id1">
2130 <h4><a class="toc-backref" href="#id86">Startup</a></h4>
2131 <dl class="docutils">
2132 <dt>Load files from the last session</dt>
2133 <dd>On startup, load the same files you had open the last time you
2134 used Geany.</dd>
2135 <dt>Load virtual terminal support</dt>
2136 <dd>Load the library for running a terminal in the message window area.</dd>
2137 <dt>Enable plugin support</dt>
2138 <dd>Allow plugins to be used in Geany.</dd>
2139 </dl>
2140 </div>
2141 <div class="section" id="shutdown">
2142 <h4><a class="toc-backref" href="#id87">Shutdown</a></h4>
2143 <dl class="docutils">
2144 <dt>Save window position and geometry</dt>
2145 <dd>Save the current position and size of the main window so next time
2146 you open Geany it's in the same location.</dd>
2147 <dt>Confirm Exit</dt>
2148 <dd>Have a dialog pop up to confirm that you really want to quit Geany.</dd>
2149 </dl>
2150 </div>
2151 <div class="section" id="paths">
2152 <h4><a class="toc-backref" href="#id88">Paths</a></h4>
2153 <dl class="docutils">
2154 <dt>Startup path</dt>
2155 <dd>Path to start in when opening or saving files.
2156 It must be an absolute path.
2157 Leave it blank to use the current working directory.</dd>
2158 <dt>Project files</dt>
2159 <dd>Path to start in when opening project files.</dd>
2160 <dt>Extra plugin path</dt>
2161 <dd>By default Geany looks in the global installation path and in the
2162 configuration directory. In addition the path entered here will be searched
2163 for plugins. Usually you do not need to set an additional path to search for
2164 plugins. It might be useful when Geany is installed on a multi-user machine
2165 and additional plugins are available in a common location for all users.
2166 Leave blank to not set an additional lookup path.</dd>
2167 </dl>
2168 </div>
2169 </div>
2170 <div class="section" id="general-miscellaneous-preferences">
2171 <h3><a class="toc-backref" href="#id89">General Miscellaneous preferences</a></h3>
2172 <img alt="./images/pref_dialog_gen_misc.png" src="./images/pref_dialog_gen_misc.png" />
2173 <div class="section" id="miscellaneous">
2174 <h4><a class="toc-backref" href="#id90">Miscellaneous</a></h4>
2175 <dl class="docutils">
2176 <dt>Beep on errors when compilation has finished</dt>
2177 <dd>Have the computer make a beeping sound when compilation of your program
2178 has completed or any errors occurred.</dd>
2179 <dt>Switch status message list at new message</dt>
2180 <dd>Switch to the status message tab (in the notebook window at the bottom)
2181 once a new status message arrives.</dd>
2182 <dt>Suppress status messages in the status bar</dt>
2183 <dd><p class="first">Remove all messages from the status bar. The messages are still displayed
2184 in the status messages window.</p>
2185 <div class="tip last">
2186 <p class="first admonition-title">Tip</p>
2187 <p class="last">Another option is to use the <em>Switch to Editor</em> keybinding - it
2188 reshows the document statistics on the status bar. See <a class="reference internal" href="#focus-keybindings">Focus
2189 keybindings</a>.</p>
2190 </div>
2191 </dd>
2192 <dt>Use Windows File Open/Save dialogs</dt>
2193 <dd>Defines whether to use the native Windows File Open/Save dialogs or
2194 whether to use the GTK default dialogs.</dd>
2195 <dt>Auto-focus widgets (focus follows mouse)</dt>
2196 <dd>Give the focus automatically to widgets below the mouse cursor.
2197 This works for the main editor widget, the scribble, the toolbar search field
2198 goto line fields and the VTE.</dd>
2199 </dl>
2200 </div>
2201 <div class="section" id="search">
2202 <h4><a class="toc-backref" href="#id91">Search</a></h4>
2203 <dl class="docutils">
2204 <dt>Always wrap search and hide the Find dialog</dt>
2205 <dd>Always wrap search around the document and hide the Find dialog after clicking
2206 Find Next/Previous.</dd>
2207 <dt>Use the current word under the cursor for Find dialogs</dt>
2208 <dd>Use current word under the cursor when opening the Find, Find in Files or Replace dialog and
2209 there is no selection. When this option is disabled, the search term last used in the
2210 appropriate Find dialog is used.</dd>
2211 <dt>Use the current file's directory for Find in Files</dt>
2212 <dd>When opening the Find in Files dialog, set the directory to search to the directory of the current
2213 active file. When this option is disabled, the directory of the last use of the Find in Files
2214 dialog is used.</dd>
2215 </dl>
2216 </div>
2217 <div class="section" id="projects">
2218 <h4><a class="toc-backref" href="#id92">Projects</a></h4>
2219 <dl class="docutils">
2220 <dt>Use project-based session files</dt>
2221 <dd>Save your current session when closing projects. You will be able to
2222 resume different project sessions, automatically opening the files
2223 you had open previously.</dd>
2224 <dt>Store project file inside the project base directory</dt>
2225 <dd>When creating new projects, the default path for the project file contains
2226 the project base path. Without this option enabled, the default project file
2227 path is one level above the project base path.
2228 In either case, you can easily set the final project file path in the
2229 <em>New Project</em> dialog. This option provides the more common
2230 defaults automatically for convenience.</dd>
2231 </dl>
2232 </div>
2233 </div>
2234 <div class="section" id="interface-preferences">
2235 <h3><a class="toc-backref" href="#id93">Interface preferences</a></h3>
2236 <img alt="./images/pref_dialog_interface_interface.png" src="./images/pref_dialog_interface_interface.png" />
2237 <div class="section" id="sidebar">
2238 <h4><a class="toc-backref" href="#id94">Sidebar</a></h4>
2239 <dl class="docutils">
2240 <dt>Show sidebar</dt>
2241 <dd>Whether to show the sidebar at all.</dd>
2242 <dt>Show symbol list</dt>
2243 <dd>Show the list of functions, variables, and other information in the
2244 current document you are editing.</dd>
2245 <dt>Show documents list</dt>
2246 <dd>Show all the documents you have open currently. This can be used to
2247 change between documents (see <a class="reference internal" href="#switching-between-documents">Switching between documents</a>) and
2248 to perform some common operations such as saving, closing and reloading.</dd>
2249 <dt>Position</dt>
2250 <dd>Whether to place the sidebar on the left or right of the editor window.</dd>
2251 </dl>
2252 </div>
2253 <div class="section" id="fonts">
2254 <h4><a class="toc-backref" href="#id95">Fonts</a></h4>
2255 <dl class="docutils">
2256 <dt>Editor</dt>
2257 <dd>Change the font used to display documents.</dd>
2258 <dt>Symbol list</dt>
2259 <dd>Change the font used for the Symbols sidebar tab.</dd>
2260 <dt>Message window</dt>
2261 <dd>Change the font used for the message window area.</dd>
2262 </dl>
2263 </div>
2264 <div class="section" id="id2">
2265 <h4><a class="toc-backref" href="#id96">Miscellaneous</a></h4>
2266 <dl class="docutils">
2267 <dt>Show status bar</dt>
2268 <dd>Show the status bar at the bottom of the main window. It gives information about
2269 the file you are editing like the line and column you are on, whether any
2270 modifications were done, the file encoding, the filetype and other information.</dd>
2271 </dl>
2272 </div>
2273 </div>
2274 <div class="section" id="interface-notebook-tab-preferences">
2275 <h3><a class="toc-backref" href="#id97">Interface Notebook tab preferences</a></h3>
2276 <img alt="./images/pref_dialog_interface_notebook.png" src="./images/pref_dialog_interface_notebook.png" />
2277 <div class="section" id="editor-tabs">
2278 <h4><a class="toc-backref" href="#id98">Editor tabs</a></h4>
2279 <dl class="docutils">
2280 <dt>Show editor tabs</dt>
2281 <dd>Show a notebook tab for all documents so you can switch between them
2282 using the mouse (instead of using the Documents window).</dd>
2283 <dt>Show close buttons</dt>
2284 <dd>Make each tab show a close button so you can easily close open
2285 documents.</dd>
2286 <dt>Placement of new file tabs</dt>
2287 <dd>Whether to create a document with its notebook tab to the left or
2288 right of all existing tabs.</dd>
2289 <dt>Next to current</dt>
2290 <dd>Whether to place file tabs next to the current tab
2291 rather than at the edges of the notebook.</dd>
2292 <dt>Double-clicking hides all additional widgets</dt>
2293 <dd>Whether to call the View-&gt;Toggle All Additional Widgets command
2294 when double-clicking on a notebook tab.</dd>
2295 </dl>
2296 </div>
2297 <div class="section" id="tab-positions">
2298 <h4><a class="toc-backref" href="#id99">Tab positions</a></h4>
2299 <dl class="docutils">
2300 <dt>Editor</dt>
2301 <dd>Set the positioning of the editor's notebook tabs to the right,
2302 left, top, or bottom of the editing window.</dd>
2303 <dt>Sidebar</dt>
2304 <dd>Set the positioning of the sidebar's notebook tabs to the right,
2305 left, top, or bottom of the sidebar window.</dd>
2306 <dt>Message window</dt>
2307 <dd>Set the positioning of the message window's notebook tabs to the
2308 right, left, top, or bottom of the message window.</dd>
2309 </dl>
2310 </div>
2311 </div>
2312 <div class="section" id="interface-toolbar-preferences">
2313 <h3><a class="toc-backref" href="#id100">Interface Toolbar preferences</a></h3>
2314 <p>Affects the main toolbar underneath the menu bar.</p>
2315 <img alt="./images/pref_dialog_interface_toolbar.png" src="./images/pref_dialog_interface_toolbar.png" />
2316 <div class="section" id="toolbar">
2317 <h4><a class="toc-backref" href="#id101">Toolbar</a></h4>
2318 <dl class="docutils">
2319 <dt>Show Toolbar</dt>
2320 <dd>Whether to show the toolbar.</dd>
2321 <dt>Append Toolbar to the Menu</dt>
2322 <dd>Allows to append the toolbar to the main menu bar instead of placing it below.
2323 This is useful to save vertical space.</dd>
2324 <dt>Customize Toolbar</dt>
2325 <dd>See <a class="reference internal" href="#customizing-the-toolbar">Customizing the toolbar</a>.</dd>
2326 </dl>
2327 </div>
2328 <div class="section" id="appearance">
2329 <h4><a class="toc-backref" href="#id102">Appearance</a></h4>
2330 <dl class="docutils">
2331 <dt>Icon Style</dt>
2332 <dd>Select the toolbar icon style to use - either icons and text, just
2333 icons or just text.
2334 The choice System default uses whatever icon style is set by GTK.</dd>
2335 <dt>Icon size</dt>
2336 <dd>Select the size of the icons you see (large, small or very small).
2337 The choice System default uses whatever icon size is set by GTK.</dd>
2338 </dl>
2339 </div>
2340 </div>
2341 <div class="section" id="editor-features-preferences">
2342 <h3><a class="toc-backref" href="#id103">Editor Features preferences</a></h3>
2343 <img alt="./images/pref_dialog_edit_features.png" src="./images/pref_dialog_edit_features.png" />
2344 <div class="section" id="features">
2345 <h4><a class="toc-backref" href="#id104">Features</a></h4>
2346 <dl class="docutils">
2347 <dt>Line wrapping</dt>
2348 <dd>Show long lines wrapped around to new display lines.</dd>
2349 <dt>&quot;Smart&quot; home key</dt>
2350 <dd>Whether to move the cursor to the first non-whitespace character
2351 on the line when you hit the home key on your keyboard. Pressing it
2352 again will go to the very start of the line.</dd>
2353 <dt>Disable Drag and Drop</dt>
2354 <dd>Do not allow the dragging and dropping of selected text in documents.</dd>
2355 <dt>Code folding</dt>
2356 <dd>Allow groups of lines in a document to be collapsed for easier
2357 navigation/editing.</dd>
2358 <dt>Fold/Unfold all children of a fold point</dt>
2359 <dd>Whether to fold/unfold all child fold points when a parent line
2360 is folded.</dd>
2361 <dt>Use indicators to show compile errors</dt>
2362 <dd>Underline lines with compile errors using red squiggles to indicate
2363 them in the editor area.</dd>
2364 <dt>Newline strip trailing spaces</dt>
2365 <dd>Remove any white space at the end of the line when you hit the
2366 Enter/Return key.</dd>
2367 <dt>Line breaking column</dt>
2368 <dd>The editor column number to insert a newline at when Line Breaking
2369 is enabled for the current document.</dd>
2370 <dt>Comment toggle marker</dt>
2371 <dd>A string which is added when toggling a line comment in a source file.
2372 It is used to mark the comment as toggled.</dd>
2373 </dl>
2374 </div>
2375 </div>
2376 <div class="section" id="editor-indentation-preferences">
2377 <h3><a class="toc-backref" href="#id105">Editor Indentation preferences</a></h3>
2378 <img alt="./images/pref_dialog_edit_indentation.png" src="./images/pref_dialog_edit_indentation.png" />
2379 <div class="section" id="indentation-group">
2380 <h4><a class="toc-backref" href="#id106">Indentation group</a></h4>
2381 <p>See <a class="reference internal" href="#indentation">Indentation</a> for more information.</p>
2382 <dl class="docutils">
2383 <dt>Width</dt>
2384 <dd>The width of a single indent size in spaces. By default the indent
2385 size is equivalent to 4 spaces.</dd>
2386 <dt>Detect width from file</dt>
2387 <dd>Try to detect and set the indent width based on file content, when
2388 a file is opened.</dd>
2389 <dt>Type</dt>
2390 <dd><p class="first">When Geany inserts indentation, whether to use:</p>
2391 <ul class="simple">
2392 <li>Just Tabs</li>
2393 <li>Just Spaces</li>
2394 <li>Tabs and Spaces, depending on how much indentation is on a line</li>
2395 </ul>
2396 <p class="last">The <em>Tabs and Spaces</em> indent type is also known as <em>Soft tab
2397 support</em> in some other editors.</p>
2398 </dd>
2399 <dt>Detect type from file</dt>
2400 <dd>Try to detect and set the indent type based on file content, when
2401 a file is opened.</dd>
2402 <dt>Auto-indent mode</dt>
2403 <dd><p class="first">The type of auto-indentation you wish to use after pressing Enter,
2404 if any.</p>
2405 <dl class="last docutils">
2406 <dt>Basic</dt>
2407 <dd>Just add the indentation of the previous line.</dd>
2408 <dt>Current chars</dt>
2409 <dd>Add indentation based on the current filetype and any characters at
2410 the end of the line such as <tt class="docutils literal">{</tt>, <tt class="docutils literal">}</tt> for C, <tt class="docutils literal">:</tt> for Python.</dd>
2411 <dt>Match braces</dt>
2412 <dd>Like <em>Current chars</em> but for C-like languages, make a closing
2413 <tt class="docutils literal">}</tt> brace line up with the matching opening brace.</dd>
2414 </dl>
2415 </dd>
2416 <dt>Tab key indents</dt>
2417 <dd><p class="first">If set, pressing tab will indent the current line or selection, and
2418 unindent when pressing Shift-tab. Otherwise, the tab key will
2419 insert a tab character into the document (which can be different
2420 from indentation, depending on the indent type).</p>
2421 <div class="note last">
2422 <p class="first admonition-title">Note</p>
2423 <p class="last">There are also separate configurable keybindings for indent &amp;
2424 unindent, but this preference allows the tab key to have different
2425 meanings in different contexts - e.g. for snippet completion.</p>
2426 </div>
2427 </dd>
2428 </dl>
2429 </div>
2430 </div>
2431 <div class="section" id="editor-completions-preferences">
2432 <h3><a class="toc-backref" href="#id107">Editor Completions preferences</a></h3>
2433 <img alt="./images/pref_dialog_edit_completions.png" src="./images/pref_dialog_edit_completions.png" />
2434 <div class="section" id="completions">
2435 <h4><a class="toc-backref" href="#id108">Completions</a></h4>
2436 <dl class="docutils">
2437 <dt>Snippet Completion</dt>
2438 <dd>Whether to replace special keywords after typing Tab into a
2439 pre-defined text snippet.
2440 See <a class="reference internal" href="#user-definable-snippets">User-definable snippets</a>.</dd>
2441 <dt>XML/HTML tag auto-closing</dt>
2442 <dd>When you open an XML/HTML tag automatically generate its
2443 completion tag.</dd>
2444 <dt>Automatic continuation multi-line comments</dt>
2445 <dd><p class="first">Continue automatically multi-line comments in languages like C, C++
2446 and Java when a new line is entered inside such a comment.
2447 With this option enabled, Geany will insert a <tt class="docutils literal">*</tt> on every new line
2448 inside a multi-line comment, for example when you press return in the
2449 following C code:</p>
2450 <pre class="literal-block">
2452 * This is a C multi-line comment, press &lt;Return&gt;
2453 </pre>
2454 <p>then Geany would insert:</p>
2455 <pre class="literal-block">
2457 </pre>
2458 <p class="last">on the next line with the correct indentation based on the previous line,
2459 as long as the multi-line is not closed by <tt class="docutils literal">*/</tt>.</p>
2460 </dd>
2461 <dt>Autocomplete symbols</dt>
2462 <dd>When you start to type a symbol name, look for the full string to
2463 allow it to be completed for you.</dd>
2464 <dt>Autocomplete all words in document</dt>
2465 <dd>When you start to type a word, Geany will search the whole document for
2466 words starting with the typed part to complete it, assuming there
2467 are no tag names to show.</dd>
2468 <dt>Drop rest of word on completion</dt>
2469 <dd>Remove any word part to the right of the cursor when choosing a
2470 completion list item.</dd>
2471 <dt>Characters to type for autocompletion</dt>
2472 <dd>Number of characters of a word to type before autocompletion is
2473 displayed.</dd>
2474 <dt>Completion list height</dt>
2475 <dd>The number of rows to display for the autocompletion window.</dd>
2476 <dt>Max. symbol name suggestions</dt>
2477 <dd>The maximum number of items in the autocompletion list.</dd>
2478 <dt>Symbol list update frequency</dt>
2479 <dd><p class="first">The minimum delay (in milliseconds) between two symbol list updates.</p>
2480 <p>This option determines how frequently the tag list is updated for the
2481 current document. The smaller the delay, the more up-to-date the symbol
2482 list (and then the completions); but rebuilding the symbol list has a
2483 cost in performance, especially with large files.</p>
2484 <p>The default value is 250ms, which means the symbol list will be updated
2485 at most four times per second, even if the document changes continuously.</p>
2486 <p class="last">A value of 0 disables automatic updates, so the symbol list will only be
2487 updated upon document saving.</p>
2488 </dd>
2489 </dl>
2490 </div>
2491 <div class="section" id="auto-close-quotes-and-brackets">
2492 <h4><a class="toc-backref" href="#id109">Auto-close quotes and brackets</a></h4>
2493 <p>Geany can automatically insert a closing bracket and quote characters when
2494 you open them. For instance, you type a <tt class="docutils literal">(</tt> and Geany will automatically
2495 insert <tt class="docutils literal">)</tt>. With the following options, you can define for which
2496 characters this should work.</p>
2497 <dl class="docutils">
2498 <dt>Parenthesis ( )</dt>
2499 <dd>Auto-close parenthesis when typing an opening one</dd>
2500 <dt>Curly brackets { }</dt>
2501 <dd>Auto-close curly brackets (braces) when typing an opening one</dd>
2502 <dt>Square brackets [ ]</dt>
2503 <dd>Auto-close square brackets when typing an opening one</dd>
2504 <dt>Single quotes ' '</dt>
2505 <dd>Auto-close single quotes when typing an opening one</dd>
2506 <dt>Double quotes &quot; &quot;</dt>
2507 <dd>Auto-close double quotes when typing an opening one</dd>
2508 </dl>
2509 </div>
2510 </div>
2511 <div class="section" id="editor-display-preferences">
2512 <h3><a class="toc-backref" href="#id110">Editor Display preferences</a></h3>
2513 <p>This is for visual elements displayed in the editor window.</p>
2514 <img alt="./images/pref_dialog_edit_display.png" src="./images/pref_dialog_edit_display.png" />
2515 <div class="section" id="display">
2516 <h4><a class="toc-backref" href="#id111">Display</a></h4>
2517 <dl class="docutils">
2518 <dt>Invert syntax highlighting colors</dt>
2519 <dd>Invert all colors, by default this makes white text on a black
2520 background.</dd>
2521 <dt>Show indendation guides</dt>
2522 <dd>Show vertical lines to help show how much leading indentation there
2523 is on each line.</dd>
2524 <dt>Show whitespaces</dt>
2525 <dd>Mark all tabs with an arrow &quot;--&gt;&quot; symbol and spaces with dots to
2526 show which kinds of whitespace are used.</dd>
2527 <dt>Show line endings</dt>
2528 <dd>Display a symbol everywhere that a carriage return or line feed
2529 is present.</dd>
2530 <dt>Show line numbers</dt>
2531 <dd>Show or hide the Line Number margin.</dd>
2532 <dt>Show markers margin</dt>
2533 <dd>Show or hide the small margin right of the line numbers, which is used
2534 to mark lines.</dd>
2535 <dt>Stop scrolling at last line</dt>
2536 <dd>When enabled Geany stops scrolling when at the last line of the document.
2537 Otherwise you can scroll one more page even if there are no real lines.</dd>
2538 </dl>
2539 </div>
2540 <div class="section" id="long-line-marker">
2541 <h4><a class="toc-backref" href="#id112">Long line marker</a></h4>
2542 <p>The long line marker helps to indicate overly-long lines, or as a hint
2543 to the user for when to break the line.</p>
2544 <dl class="docutils">
2545 <dt>Type</dt>
2546 <dd><dl class="first last docutils">
2547 <dt>Line</dt>
2548 <dd>Show a thin vertical line in the editor window at the given column
2549 position.</dd>
2550 <dt>Background</dt>
2551 <dd>Change the background color of characters after the given column
2552 position to the color set below. (This is recommended over the
2553 <em>Line</em> setting if you use proportional fonts).</dd>
2554 <dt>Disabled</dt>
2555 <dd>Don't mark long lines at all.</dd>
2556 </dl>
2557 </dd>
2558 <dt>Long line marker</dt>
2559 <dd>Set this value to a value greater than zero to specify the column
2560 where it should appear.</dd>
2561 <dt>Long line marker color</dt>
2562 <dd>Set the color of the long line marker.</dd>
2563 </dl>
2564 </div>
2565 <div class="section" id="virtual-spaces">
2566 <h4><a class="toc-backref" href="#id113">Virtual spaces</a></h4>
2567 <p>Virtual space is space beyond the end of each line.
2568 The cursor may be moved into virtual space but no real space will be
2569 added to the document until there is some text typed or some other
2570 text insertion command is used.</p>
2571 <dl class="docutils">
2572 <dt>Disabled</dt>
2573 <dd>Do not show virtual spaces</dd>
2574 <dt>Only for rectangular selections</dt>
2575 <dd>Only show virtual spaces beyond the end of lines when drawing a rectangular selection</dd>
2576 <dt>Always</dt>
2577 <dd>Always show virtual spaces beyond the end of lines</dd>
2578 </dl>
2579 </div>
2580 </div>
2581 <div class="section" id="files-preferences">
2582 <h3><a class="toc-backref" href="#id114">Files preferences</a></h3>
2583 <img alt="./images/pref_dialog_files.png" src="./images/pref_dialog_files.png" />
2584 <div class="section" id="new-files">
2585 <h4><a class="toc-backref" href="#id115">New files</a></h4>
2586 <dl class="docutils">
2587 <dt>Open new documents from the command-line</dt>
2588 <dd>Whether to create new documents when passing filenames that don't
2589 exist from the command-line.</dd>
2590 <dt>Default encoding (new files)</dt>
2591 <dd>The type of file encoding you wish to use when creating files.</dd>
2592 <dt>Used fixed encoding when opening files</dt>
2593 <dd>Assume all files you are opening are using the type of encoding specified below.</dd>
2594 <dt>Default encoding (existing files)</dt>
2595 <dd>Opens all files with the specified encoding instead of auto-detecting it.
2596 Use this option when it's not possible for Geany to detect the exact encoding.</dd>
2597 <dt>Default end of line characters</dt>
2598 <dd>The end of line characters to which should be used for new files.
2599 On Windows systems, you generally want to use CR/LF which are the common
2600 characters to mark line breaks.
2601 On Unix-like systems, LF is default and CR is used on MAC systems.</dd>
2602 </dl>
2603 </div>
2604 <div class="section" id="saving-files">
2605 <h4><a class="toc-backref" href="#id116">Saving files</a></h4>
2606 <p>Perform formatting operations when a document is saved. These
2607 can each be undone with the Undo command.</p>
2608 <dl class="docutils">
2609 <dt>Ensure newline at file end</dt>
2610 <dd>Add a newline at the end of the document if one is missing.</dd>
2611 <dt>Ensure consistent line endings</dt>
2612 <dd>Ensures that newline characters always get converted before
2613 saving, avoiding mixed line endings in the same file.</dd>
2614 <dt>Strip trailing spaces</dt>
2615 <dd>Remove the trailing spaces on each line of the document.</dd>
2616 <dt>Replace tabs by space</dt>
2617 <dd><p class="first">Replace all tabs in the document with the equivalent number of spaces.</p>
2618 <div class="note last">
2619 <p class="first admonition-title">Note</p>
2620 <p class="last">It is better to use spaces to indent than use this preference - see
2621 <a class="reference internal" href="#indentation">Indentation</a>.</p>
2622 </div>
2623 </dd>
2624 </dl>
2625 </div>
2626 <div class="section" id="id3">
2627 <h4><a class="toc-backref" href="#id117">Miscellaneous</a></h4>
2628 <dl class="docutils">
2629 <dt>Recent files list length</dt>
2630 <dd>The number of files to remember in the recently used files list.</dd>
2631 <dt>Disk check timeout</dt>
2632 <dd><p class="first">The number of seconds to periodically check the current document's
2633 file on disk in case it has changed. Setting it to 0 will disable
2634 this feature.</p>
2635 <div class="note last">
2636 <p class="first admonition-title">Note</p>
2637 <p class="last">These checks are only performed on local files. Remote files are
2638 not checked for changes due to performance issues
2639 (remote files are files in <tt class="docutils literal"><span class="pre">~/.gvfs/</span></tt>).</p>
2640 </div>
2641 </dd>
2642 </dl>
2643 </div>
2644 </div>
2645 <div class="section" id="tools-preferences">
2646 <h3><a class="toc-backref" href="#id118">Tools preferences</a></h3>
2647 <img alt="./images/pref_dialog_tools.png" src="./images/pref_dialog_tools.png" />
2648 <div class="section" id="tool-paths">
2649 <h4><a class="toc-backref" href="#id119">Tool paths</a></h4>
2650 <dl class="docutils">
2651 <dt>Terminal</dt>
2652 <dd>The location of your terminal executable.</dd>
2653 <dt>Browser</dt>
2654 <dd>The location of your web browser executable.</dd>
2655 <dt>Grep</dt>
2656 <dd>The location of the grep executable.</dd>
2657 </dl>
2658 <div class="note">
2659 <p class="first admonition-title">Note</p>
2660 <p class="last">For Windows users: at the time of writing it is recommended to use
2661 the grep.exe from the UnxUtils project
2662 (<a class="reference external" href="http://sourceforge.net/projects/unxutils">http://sourceforge.net/projects/unxutils</a>). The grep.exe from the
2663 Mingw project for instance might not work with Geany at the moment.</p>
2664 </div>
2665 </div>
2666 <div class="section" id="commands">
2667 <h4><a class="toc-backref" href="#id120">Commands</a></h4>
2668 <dl class="docutils">
2669 <dt>Context action</dt>
2670 <dd>Set this to a command to execute on the current word.
2671 You can use the &quot;%s&quot; wildcard to pass the current word below the cursor
2672 to the specified command.</dd>
2673 </dl>
2674 </div>
2675 </div>
2676 <div class="section" id="template-preferences">
2677 <h3><a class="toc-backref" href="#id121">Template preferences</a></h3>
2678 <p>This data is used as meta data for various template text to insert into
2679 a document, such as the file header. You only need to set fields that
2680 you want to use in your template files.</p>
2681 <img alt="./images/pref_dialog_templ.png" src="./images/pref_dialog_templ.png" />
2682 <div class="section" id="template-data">
2683 <h4><a class="toc-backref" href="#id122">Template data</a></h4>
2684 <dl class="docutils">
2685 <dt>Developer</dt>
2686 <dd>The name of the developer who will be creating files.</dd>
2687 <dt>Initials</dt>
2688 <dd>The initials of the developer.</dd>
2689 <dt>Mail address</dt>
2690 <dd><p class="first">The email address of the developer.</p>
2691 <div class="note last">
2692 <p class="first admonition-title">Note</p>
2693 <p class="last">You may wish to add anti-spam markup, e.g. <tt class="docutils literal">name&lt;at&gt;site&lt;dot&gt;ext</tt>.</p>
2694 </div>
2695 </dd>
2696 <dt>Company</dt>
2697 <dd>The company the developer is working for.</dd>
2698 <dt>Initial version</dt>
2699 <dd>The initial version of files you will be creating.</dd>
2700 <dt>Year</dt>
2701 <dd>Specify a format for the the {year} wildcard. You can use any conversion specifiers
2702 which can be used with the ANSI C strftime function. For details please see
2703 <a class="reference external" href="http://man.cx/strftime">http://man.cx/strftime</a>.</dd>
2704 <dt>Date</dt>
2705 <dd>Specify a format for the the {date} wildcard. You can use any conversion specifiers
2706 which can be used with the ANSI C strftime function. For details please see
2707 <a class="reference external" href="http://man.cx/strftime">http://man.cx/strftime</a>.</dd>
2708 <dt>Date &amp; Time</dt>
2709 <dd>Specify a format for the the {datetime} wildcard. You can use any conversion specifiers
2710 which can be used with the ANSI C strftime function. For details please see
2711 <a class="reference external" href="http://man.cx/strftime">http://man.cx/strftime</a>.</dd>
2712 </dl>
2713 </div>
2714 </div>
2715 <div class="section" id="keybinding-preferences">
2716 <h3><a class="toc-backref" href="#id123">Keybinding preferences</a></h3>
2717 <img alt="./images/pref_dialog_keys.png" src="./images/pref_dialog_keys.png" />
2718 <p>There are some commands listed in the keybinding dialog that are not, by default,
2719 bound to a key combination, and may not be available as a menu item.</p>
2720 <div class="note">
2721 <p class="first admonition-title">Note</p>
2722 <p class="last">For more information see the section <a class="reference internal" href="#keybindings">Keybindings</a>.</p>
2723 </div>
2724 </div>
2725 <div class="section" id="printing-preferences">
2726 <h3><a class="toc-backref" href="#id124">Printing preferences</a></h3>
2727 <img alt="./images/pref_dialog_printing.png" src="./images/pref_dialog_printing.png" />
2728 <dl class="docutils">
2729 <dt>Use external command for printing</dt>
2730 <dd>Use a system command to print your file out.</dd>
2731 <dt>Use native GTK printing</dt>
2732 <dd>Let the GTK GUI toolkit handle your print request.</dd>
2733 <dt>Print line numbers</dt>
2734 <dd>Print the line numbers on the left of your paper.</dd>
2735 <dt>Print page number</dt>
2736 <dd>Print the page number on the bottom right of your paper.</dd>
2737 <dt>Print page header</dt>
2738 <dd>Print a header on every page that is sent to the printer.</dd>
2739 <dt>Use base name of the printed file</dt>
2740 <dd>Don't use the entire path for the header, only the filename.</dd>
2741 <dt>Date format</dt>
2742 <dd>How the date should be printed. You can use the same format
2743 specifiers as in the ANSI C function strftime(). For details please
2744 see <a class="reference external" href="http://man.cx/strftime">http://man.cx/strftime</a>.</dd>
2745 </dl>
2746 </div>
2747 <div class="section" id="various-preferences">
2748 <h3><a class="toc-backref" href="#id125">Various preferences</a></h3>
2749 <img alt="./images/pref_dialog_various.png" src="./images/pref_dialog_various.png" />
2750 <p>Rarely used preferences, explained in the table below. A few of them require
2751 restart to take effect, and a few other will only affect newly opened or created
2752 documents before restart.</p>
2753 <table border="1" class="docutils">
2754 <colgroup>
2755 <col width="34%" />
2756 <col width="44%" />
2757 <col width="11%" />
2758 <col width="12%" />
2759 </colgroup>
2760 <thead valign="bottom">
2761 <tr><th class="head">Key</th>
2762 <th class="head">Description</th>
2763 <th class="head">Default</th>
2764 <th class="head">Applies</th>
2765 </tr>
2766 </thead>
2767 <tbody valign="top">
2768 <tr><td><strong>Editor related</strong></td>
2769 <td>&nbsp;</td>
2770 <td>&nbsp;</td>
2771 <td>&nbsp;</td>
2772 </tr>
2773 <tr><td>use_gtk_word_boundaries</td>
2774 <td>Whether to look for the end of a word
2775 when using word-boundary related
2776 Scintilla commands (see <a class="reference internal" href="#scintilla-keyboard-commands">Scintilla
2777 keyboard commands</a>).</td>
2778 <td>true</td>
2779 <td>to new
2780 documents</td>
2781 </tr>
2782 <tr><td>brace_match_ltgt</td>
2783 <td>Whether to highlight &lt;, &gt; angle brackets.</td>
2784 <td>false</td>
2785 <td>immediately</td>
2786 </tr>
2787 <tr><td>complete_snippets_whilst_editing</td>
2788 <td>Whether to allow completion of snippets
2789 when editing an existing line (i.e. there
2790 is some text after the current cursor
2791 position on the line). Only used when the
2792 keybinding <cite>Complete snippet</cite> is set to
2793 <tt class="docutils literal">Space</tt>.</td>
2794 <td>false</td>
2795 <td>immediately</td>
2796 </tr>
2797 <tr><td>show_editor_scrollbars</td>
2798 <td>Whether to display scrollbars. If set to
2799 false, the horizontal and vertical
2800 scrollbars are hidden completely.</td>
2801 <td>true</td>
2802 <td>immediately</td>
2803 </tr>
2804 <tr><td>indent_hard_tab_width</td>
2805 <td>The size of a tab character. Don't change
2806 it unless you really need to; use the
2807 indentation settings instead.</td>
2808 <td>8</td>
2809 <td>immediately</td>
2810 </tr>
2811 <tr><td><strong>Interface related</strong></td>
2812 <td>&nbsp;</td>
2813 <td>&nbsp;</td>
2814 <td>&nbsp;</td>
2815 </tr>
2816 <tr><td>show_symbol_list_expanders</td>
2817 <td>Whether to show or hide the small
2818 expander icons on the symbol list</td>
2819 <td>true</td>
2820 <td>to new
2821 documents</td>
2822 </tr>
2823 <tr><td>allow_always_save</td>
2824 <td>treeview. Whether files can be saved
2825 always, even if they don't have any
2826 changes. By default, the Save button and
2827 menu item are disabled when a file is
2828 unchanged. When setting this option to
2829 true, the Save button and menu item are
2830 always active and files can be saved.</td>
2831 <td>false</td>
2832 <td>immediately</td>
2833 </tr>
2834 <tr><td>compiler_tab_autoscroll</td>
2835 <td>Whether to automatically scroll to the
2836 last line of the output in the Compiler
2837 tab.</td>
2838 <td>true</td>
2839 <td>immediately</td>
2840 </tr>
2841 <tr><td>statusbar_template</td>
2842 <td>The status bar statistics line format.
2843 (Search in src/ui_utils.c for details).</td>
2844 <td>See below.</td>
2845 <td>immediately</td>
2846 </tr>
2847 <tr><td>new_document_after_close</td>
2848 <td>Whether to open a new document after all
2849 documents have been closed.</td>
2850 <td>false</td>
2851 <td>immediately</td>
2852 </tr>
2853 <tr><td>msgwin_status_visible</td>
2854 <td>Whether to show the Status tab in the
2855 Messages Window</td>
2856 <td>true</td>
2857 <td>immediately</td>
2858 </tr>
2859 <tr><td>msgwin_compiler_visible</td>
2860 <td>Whether to show the Compiler tab in the
2861 Messages Window</td>
2862 <td>true</td>
2863 <td>immediately</td>
2864 </tr>
2865 <tr><td>msgwin_messages_visible</td>
2866 <td>Whether to show the Messages tab in the
2867 Messages Window</td>
2868 <td>true</td>
2869 <td>immediately</td>
2870 </tr>
2871 <tr><td>msgwin_scribble_visible</td>
2872 <td>Whether to show the Scribble tab in the
2873 Messages Window</td>
2874 <td>true</td>
2875 <td>immediately</td>
2876 </tr>
2877 </tbody>
2878 </table>
2879 <p>By default, statusbar_template is empty. This tells Geany to use its
2880 internal default, which is currently:</p>
2881 <p><tt class="docutils literal">line: %l / %L\t col: %c\t sel: %s\t %w&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %mmode: %M&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; encoding: %e&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filetype: %f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scope: %S</tt></p>
2882 <p>Note that <tt class="docutils literal">\t</tt> = tab.</p>
2883 <table border="1" class="docutils">
2884 <colgroup>
2885 <col width="33%" />
2886 <col width="45%" />
2887 <col width="10%" />
2888 <col width="11%" />
2889 </colgroup>
2890 <thead valign="bottom">
2891 <tr><th class="head">Key</th>
2892 <th class="head">Description</th>
2893 <th class="head">Default</th>
2894 <th class="head">Applies</th>
2895 </tr>
2896 </thead>
2897 <tbody valign="top">
2898 <tr><td><strong>VTE related</strong></td>
2899 <td>&nbsp;</td>
2900 <td>&nbsp;</td>
2901 <td>&nbsp;</td>
2902 </tr>
2903 <tr><td>emulation</td>
2904 <td>Terminal emulation mode. Only change this
2905 if you have VTE termcap files other than
2906 <tt class="docutils literal">vte/termcap/xterm</tt>.</td>
2907 <td>xterm</td>
2908 <td>immediately</td>
2909 </tr>
2910 <tr><td>send_selection_unsafe</td>
2911 <td>By default, Geany strips any trailing
2912 newline characters from the current
2913 selection before sending it to the terminal
2914 to not execute arbitrary code. This is
2915 mainly a security feature.
2916 If, for whatever reasons, you really want
2917 it to be executed directly, set this option
2918 to true.</td>
2919 <td>false</td>
2920 <td>immediately</td>
2921 </tr>
2922 <tr><td><strong>File related</strong></td>
2923 <td>&nbsp;</td>
2924 <td>&nbsp;</td>
2925 <td>&nbsp;</td>
2926 </tr>
2927 <tr><td>use_atomic_file_saving</td>
2928 <td>Defines the mode how Geany saves files to
2929 disk. If disabled, Geany directly writes
2930 the content of the document to disk. This
2931 might cause loss of data when there is
2932 no more free space on disk to save the
2933 file. When set to true, Geany first saves
2934 the contents into a temporary file and if
2935 this succeeded, the temporary file is
2936 moved to the real file to save.
2937 This gives better error checking in case of
2938 no more free disk space. But it also
2939 destroys hard links of the original file
2940 and its permissions (e.g. executable flags
2941 are reset). Use this with care as it can
2942 break things seriously.
2943 The better approach would be to ensure your
2944 disk won't run out of free space.</td>
2945 <td>false</td>
2946 <td>immediately</td>
2947 </tr>
2948 <tr><td>use_gio_unsafe_file_saving</td>
2949 <td>Whether to use GIO as the unsafe file
2950 saving backend. It is better on most
2951 situations but is known not to work
2952 correctly on some complex setups.</td>
2953 <td>true</td>
2954 <td>immediately</td>
2955 </tr>
2956 <tr><td>gio_unsafe_save_backup</td>
2957 <td>Make a backup when using GIO unsafe file
2958 saving. Backup is named <cite>filename~</cite>.</td>
2959 <td>false</td>
2960 <td>immediately</td>
2961 </tr>
2962 <tr><td><strong>Filetype related</strong></td>
2963 <td>&nbsp;</td>
2964 <td>&nbsp;</td>
2965 <td>&nbsp;</td>
2966 </tr>
2967 <tr><td>extract_filetype_regex</td>
2968 <td>Regex to extract filetype name from file
2969 via capture group one.</td>
2970 <td>See below.</td>
2971 <td>immediately</td>
2972 </tr>
2973 <tr><td><strong>Search related</strong></td>
2974 <td>&nbsp;</td>
2975 <td>&nbsp;</td>
2976 <td>&nbsp;</td>
2977 </tr>
2978 <tr><td>find_selection_type</td>
2979 <td>See <a class="reference internal" href="#find-selection">Find selection</a>.</td>
2980 <td>0</td>
2981 <td>immediately</td>
2982 </tr>
2983 <tr><td><strong>Build Menu related</strong></td>
2984 <td>&nbsp;</td>
2985 <td>&nbsp;</td>
2986 <td>&nbsp;</td>
2987 </tr>
2988 <tr><td>number_ft_menu_items</td>
2989 <td>The maximum number of menu items in the
2990 filetype section of the Build menu.</td>
2991 <td>2</td>
2992 <td>on restart</td>
2993 </tr>
2994 <tr><td>number_non_ft_menu_items</td>
2995 <td>The maximum number of menu items in the
2996 independent section of the Build menu.</td>
2997 <td>3</td>
2998 <td>on restart</td>
2999 </tr>
3000 <tr><td>number_exec_menu_items</td>
3001 <td>The maximum number of menu items in the
3002 execute section of the Build menu.</td>
3003 <td>2</td>
3004 <td>on restart</td>
3005 </tr>
3006 </tbody>
3007 </table>
3008 <p>The extract_filetype_regex has the default value GEANY_DEFAULT_FILETYPE_REGEX.</p>
3009 </div>
3010 <div class="section" id="terminal-vte-preferences">
3011 <h3><a class="toc-backref" href="#id126">Terminal (VTE) preferences</a></h3>
3012 <p>See also: <a class="reference internal" href="#virtual-terminal-emulator-widget-vte">Virtual terminal emulator widget (VTE)</a>.</p>
3013 <img alt="./images/pref_dialog_vte.png" src="./images/pref_dialog_vte.png" />
3014 <div class="section" id="terminal-widget">
3015 <h4><a class="toc-backref" href="#id127">Terminal widget</a></h4>
3016 <dl class="docutils">
3017 <dt>Terminal font</dt>
3018 <dd>Select the font that will be used in the terminal emulation control.</dd>
3019 <dt>Foreground color</dt>
3020 <dd>Select the font color.</dd>
3021 <dt>Background color</dt>
3022 <dd>Select the background color of the terminal.</dd>
3023 <dt>Scrollback lines</dt>
3024 <dd>The number of lines buffered so that you can scroll though the history.</dd>
3025 <dt>Shell</dt>
3026 <dd>The location of the shell on your system.</dd>
3027 <dt>Scroll on keystroke</dt>
3028 <dd>Scroll the terminal to the prompt line when pressing a key.</dd>
3029 <dt>Scroll on output</dt>
3030 <dd>Scroll the output down.</dd>
3031 <dt>Cursor blinks</dt>
3032 <dd>Let the terminal cursor blink.</dd>
3033 <dt>Override Geany keybindings</dt>
3034 <dd>Allow the VTE to receive keyboard shortcuts (apart from focus commands).</dd>
3035 <dt>Disable menu shortcut key (F10 by default)</dt>
3036 <dd>Disable the menu shortcut when you are in the virtual terminal.</dd>
3037 <dt>Follow path of the current file</dt>
3038 <dd>Make the path of the terminal change according to the path of the
3039 current file.</dd>
3040 <dt>Execute programs in VTE</dt>
3041 <dd>Execute programs in the virtual terminal instead of using the external
3042 terminal tool. Note that if you run multiple execute commands at once
3043 the output may become mixed together in the VTE.</dd>
3044 <dt>Don't use run script</dt>
3045 <dd>Don't use the simple run script which is usually used to display
3046 the exit status of the executed program.
3047 This can be useful if you already have a program running in the VTE
3048 like a Python console (e.g. ipython). Use this with care.</dd>
3049 </dl>
3050 </div>
3051 </div>
3052 </div>
3053 <div class="section" id="project-management">
3054 <h2><a class="toc-backref" href="#id128">Project management</a></h2>
3055 <p>Project management is optional in Geany. Currently it can be used for:</p>
3056 <ul class="simple">
3057 <li>Storing and opening session files on a project basis.</li>
3058 <li>Overriding default settings with project equivalents.</li>
3059 <li>Configuring the Build menu on a project basis.</li>
3060 </ul>
3061 <p>A list of session files can be stored and opened with the project
3062 when the <em>Use project-based session files</em> preference is enabled,
3063 in the <em>Project</em> group of the <a class="reference internal" href="#preferences">Preferences</a> dialog.</p>
3064 <p>As long as a project is open, the Build menu will use
3065 the items defined in project's settings, instead of the defaults.
3066 See <a class="reference internal" href="#build-menu-configuration">Build Menu Configuration</a> for information on configuring the menu.</p>
3067 <p>The current project's settings are saved when it is closed, or when
3068 Geany is shutdown. When restarting Geany, the previously opened project
3069 file that was in use at the end of the last session will be reopened.</p>
3070 <p>The project menu items are detailed below.</p>
3071 <div class="section" id="new-project">
3072 <h3><a class="toc-backref" href="#id129">New project</a></h3>
3073 <p>To create a new project, fill in the <em>Name</em> field. By default this
3074 will setup a new project file <tt class="docutils literal">~/projects/name.geany</tt>. Usually it's
3075 best to store all your project files in the same directory (they are
3076 independent of any source directory trees).</p>
3077 <p>The Base path text field is setup to use <tt class="docutils literal">~/projects/name</tt>. This
3078 can safely be set to any existing path -- it will not touch the file
3079 structure contained in it.</p>
3080 </div>
3081 <div class="section" id="project-properties">
3082 <h3><a class="toc-backref" href="#id130">Project properties</a></h3>
3083 <p>You can set an optional description for the project. Currently it's
3084 only used for a template wildcard - see <a class="reference internal" href="#template-wildcards">Template wildcards</a>.</p>
3085 <p>The <em>Base path</em> field is used as the directory to run the Build menu commands.
3086 The specified path can be an absolute path or it is considered to be
3087 relative to the project's file name.</p>
3088 <p>The <em>File patterns</em> field allows to specify a list of file patterns for the
3089 project, which can be used in the <a class="reference internal" href="#find-in-files">Find in files</a> dialog.</p>
3090 <p>The <em>Indentation</em> tab allows you to override the default
3091 <a class="reference internal" href="#indentation">Indentation</a> settings.</p>
3092 </div>
3093 <div class="section" id="open-project">
3094 <h3><a class="toc-backref" href="#id131">Open project</a></h3>
3095 <p>The Open command displays a standard file chooser, starting in
3096 <tt class="docutils literal">~/projects</tt>. Choose a project file named with the <tt class="docutils literal">.geany</tt>
3097 extension.</p>
3098 <p>When project session support is enabled, Geany will close the currently
3099 open files and open the session files associated with the project.</p>
3100 </div>
3101 <div class="section" id="close-project">
3102 <h3><a class="toc-backref" href="#id132">Close project</a></h3>
3103 <p>Project file settings are saved when the project is closed.</p>
3104 <p>When project session support is enabled, Geany will close the project
3105 session files and open any previously closed default session files.</p>
3106 </div>
3107 </div>
3108 <div class="section" id="build-menu">
3109 <h2><a class="toc-backref" href="#id133">Build menu</a></h2>
3110 <p>After editing code with Geany, the next step is to compile, link, build,
3111 interpret, run etc. As Geany supports many languages each with a different
3112 approach to such operations, and as there are also many language independent
3113 software building systems, Geany does not have a built-in build system, nor
3114 does it limit which system you can use. Instead the build menu provides
3115 a configurable and flexible means of running any external commands to
3116 execute your preferred build system.</p>
3117 <p>This section provides a description of the default configuration of the
3118 build menu and then covers how to configure it, and where the defaults fit in.</p>
3119 <p>Running the commands from within Geany has two benefits:</p>
3120 <ul class="simple">
3121 <li>The current file is automatically saved before the command is run.</li>
3122 <li>The output is captured in the Compiler notebook tab and parsed for
3123 warnings or errors.</li>
3124 </ul>
3125 <p>Warnings and errors that can be parsed for line numbers will be shown in
3126 red in the Compiler tab and you can click on them to switch to the relevant
3127 source file (or open it) and mark the line number. Also lines with
3128 warnings or errors are marked in the source, see <a class="reference internal" href="#indicators">Indicators</a> below.</p>
3129 <div class="tip">
3130 <p class="first admonition-title">Tip</p>
3131 <p class="last">If Geany's default error message parsing does not parse errors for
3132 the tool you're using, you can set a custom regex in the Build Commands
3133 Dialog, see <a class="reference internal" href="#build-menu-configuration">Build Menu Configuration</a>.</p>
3134 </div>
3135 <div class="section" id="indicators">
3136 <h3><a class="toc-backref" href="#id134">Indicators</a></h3>
3137 <p>Indicators are red squiggly underlines which are used to highlight
3138 errors which occurred while compiling the current file. So you can
3139 easily see where your code failed to compile. You can remove them by
3140 selecting <em>Remove Error Indicators</em> in the Document menu.</p>
3141 <p>If you do not like this feature, you can disable it - see <a class="reference internal" href="#editor-features-preferences">Editor Features
3142 preferences</a>.</p>
3143 </div>
3144 <div class="section" id="default-build-menu-items">
3145 <h3><a class="toc-backref" href="#id135">Default build menu items</a></h3>
3146 <p>Depending on the current file's filetype, the default Build menu will contain
3147 the following items:</p>
3148 <ul class="simple">
3149 <li>Compile</li>
3150 <li>Build</li>
3151 <li>Make All</li>
3152 <li>Make Custom Target</li>
3153 <li>Make Object</li>
3154 <li>Next Error</li>
3155 <li>Previous Error</li>
3156 <li>Execute</li>
3157 <li>Set Build Menu Commands</li>
3158 </ul>
3159 <div class="section" id="compile">
3160 <h4><a class="toc-backref" href="#id136">Compile</a></h4>
3161 <p>The Compile command has different uses for different kinds of files.</p>
3162 <p>For compilable languages such as C and C++, the Compile command is
3163 set up to compile the current source file into a binary object file.</p>
3164 <p>Java source files will be compiled to class file bytecode.</p>
3165 <p>Interpreted languages such as Perl, Python, Ruby will compile to
3166 bytecode if the language supports it, or will run a syntax check,
3167 or if that is not available will run the file in its language interpreter.</p>
3168 </div>
3169 <div class="section" id="build">
3170 <h4><a class="toc-backref" href="#id137">Build</a></h4>
3171 <p>For compilable languages such as C and C++, the Build command will link
3172 the current source file's equivalent object file into an executable. If
3173 the object file does not exist, the source will be compiled and linked
3174 in one step, producing just the executable binary.</p>
3175 <p>Interpreted languages do not use the Build command.</p>
3176 <div class="note">
3177 <p class="first admonition-title">Note</p>
3178 <p class="last">If you need complex settings for your build system, or several
3179 different settings, then writing a Makefile and using the Make
3180 commands is recommended; this will also make it easier for users to
3181 build your software.</p>
3182 </div>
3183 </div>
3184 <div class="section" id="make">
3185 <h4><a class="toc-backref" href="#id138">Make</a></h4>
3186 <p>This runs &quot;make&quot; in the same directory as the
3187 current file.</p>
3188 </div>
3189 <div class="section" id="make-custom-target">
3190 <h4><a class="toc-backref" href="#id139">Make custom target</a></h4>
3191 <p>This is similar to running 'Make' but you will be prompted for
3192 the make target name to be passed to the Make tool. For example,
3193 typing 'clean' in the dialog prompt will run &quot;make clean&quot;.</p>
3194 </div>
3195 <div class="section" id="make-object">
3196 <h4><a class="toc-backref" href="#id140">Make object</a></h4>
3197 <p>Make object will run &quot;make current_file.o&quot; in the same directory as
3198 the current file, using the filename for 'current_file'. It is useful
3199 for building just the current file without building the whole project.</p>
3200 </div>
3201 <div class="section" id="next-error">
3202 <h4><a class="toc-backref" href="#id141">Next error</a></h4>
3203 <p>The next error item will move to the next detected error in the file.</p>
3204 </div>
3205 <div class="section" id="previous-error">
3206 <h4><a class="toc-backref" href="#id142">Previous error</a></h4>
3207 <p>The previous error item will move to the previous detected error in the file.</p>
3208 </div>
3209 <div class="section" id="execute">
3210 <h4><a class="toc-backref" href="#id143">Execute</a></h4>
3211 <p>Execute will run the corresponding executable file, shell script or
3212 interpreted script in a terminal window. Note that the Terminal tool
3213 path must be correctly set in the Tools tab of the Preferences dialog -
3214 you can use any terminal program that runs a Bourne compatible shell
3215 and accept the &quot;-e&quot; command line argument to start a command or can be
3216 selected to use the built-in VTE if it is available - see
3217 <a class="reference internal" href="#virtual-terminal-emulator-widget-vte">Virtual terminal emulator widget (VTE)</a>.</p>
3218 <p>After your program or script has finished executing, you will be
3219 prompted to press the return key. This allows you to review any text
3220 output from the program before the terminal window is closed.</p>
3221 <div class="note">
3222 <p class="first admonition-title">Note</p>
3223 <p class="last">The execute command output is not parsed for errors.</p>
3224 </div>
3225 </div>
3226 <div class="section" id="stopping-running-processes">
3227 <h4><a class="toc-backref" href="#id144">Stopping running processes</a></h4>
3228 <p>When there is a running program, the Execute menu item in the menu and
3229 the Run button in the toolbar
3230 each become a stop button so you can stop the current running program (and
3231 any child processes). This works by sending the SIGQUIT signal to the process.</p>
3232 <p>Depending on the process you started it is possible that the process
3233 cannot be stopped. For example this can happen when the process creates
3234 more than one child process.</p>
3235 <div class="section" id="terminal-emulators">
3236 <h5><a class="toc-backref" href="#id145">Terminal emulators</a></h5>
3237 <p>Xterm is known to work properly. If you are using &quot;Terminal&quot;
3238 (the terminal program of Xfce), you should add the command line
3239 option <tt class="docutils literal"><span class="pre">--disable-server</span></tt> otherwise the started process cannot be
3240 stopped. Just add this option in the preferences dialog on the Tools
3241 tab in the terminal field.</p>
3242 </div>
3243 </div>
3244 <div class="section" id="set-build-commands">
3245 <h4><a class="toc-backref" href="#id146">Set build commands</a></h4>
3246 <p>By default Compile, Build and Execute are fairly basic commands. You
3247 may wish to customise them using <em>Set Build Commands</em>.</p>
3248 <p>E.g. for C you can add any include paths and compile flags for the
3249 compiler, any library names and paths for the linker, and any
3250 arguments you want to use when running Execute.</p>
3251 </div>
3252 </div>
3253 <div class="section" id="build-menu-configuration">
3254 <h3><a class="toc-backref" href="#id147">Build menu configuration</a></h3>
3255 <p>The build menu has considerable flexibility and configurability, allowing
3256 both menu labels the commands they execute and the directory they execute
3257 in to be configured.</p>
3258 <p>For example, if you change one of the default make commands to run say 'waf'
3259 you can also change the label to match.</p>
3260 <p>These settings are saved automatically when Geany is shut down.</p>
3261 <p>The build menu is divided into four groups of items each with different
3262 behaviors:</p>
3263 <ul class="simple">
3264 <li>Filetype build commands - are configurable and depend on the filetype of the
3265 current document; they capture output in the compiler tab and parse it for
3266 errors.</li>
3267 <li>Independent build commands - are configurable and mostly don't depend on the
3268 filetype of the current document; they also capture output in the
3269 compiler tab and parse it for errors.</li>
3270 <li>Execute commands - are configurable and intended for executing your
3271 program or other long running programs. The output is not parsed for errors
3272 and is directed to the terminal selected in preferences.</li>
3273 <li>Fixed commands - these perform built-in actions:<ul>
3274 <li>Go to the next error.</li>
3275 <li>Go to the previous error.</li>
3276 <li>Show the build menu commands dialog.</li>
3277 </ul>
3278 </li>
3279 </ul>
3280 <p>The maximum numbers of items in each of the configurable groups can be
3281 configured in the <a class="reference internal" href="#various-preferences">Various preferences</a>. Even though the maximum number of
3282 items may have been increased, only those menu items that have values
3283 configured are shown in the menu.</p>
3284 <p>The groups of menu items obtain their configuration from four potential
3285 sources. The highest priority source that has the menu item defined will
3286 be used. The sources in decreasing priority are:</p>
3287 <ul class="simple">
3288 <li>A project file if open</li>
3289 <li>The user preferences</li>
3290 <li>The system filetype definitions</li>
3291 <li>The defaults</li>
3292 </ul>
3293 <p>The detailed relationships between sources and the configurable menu item groups
3294 is shown in the following table.</p>
3295 <table border="1" class="docutils">
3296 <colgroup>
3297 <col width="13%" />
3298 <col width="19%" />
3299 <col width="23%" />
3300 <col width="17%" />
3301 <col width="28%" />
3302 </colgroup>
3303 <thead valign="bottom">
3304 <tr><th class="head">Group</th>
3305 <th class="head">Project File</th>
3306 <th class="head">Preferences</th>
3307 <th class="head">System Filetype</th>
3308 <th class="head">Defaults</th>
3309 </tr>
3310 </thead>
3311 <tbody valign="top">
3312 <tr><td>Filetype</td>
3313 <td><p class="first">Loads From: project
3314 file</p>
3315 <p class="last">Saves To: project
3316 file</p>
3317 </td>
3318 <td><p class="first">Loads From:
3319 filetypes.xxx file in
3320 ~/.config/geany/filedefs</p>
3321 <p class="last">Saves to: as above,
3322 creating if needed.</p>
3323 </td>
3324 <td><p class="first">Loads From:
3325 filetypes.xxx in
3326 Geany install</p>
3327 <p class="last">Saves to: as user
3328 preferences left.</p>
3329 </td>
3330 <td>None</td>
3331 </tr>
3332 <tr><td>Filetype
3333 Independent</td>
3334 <td><p class="first">Loads From: project
3335 file</p>
3336 <p class="last">Saves To: project
3337 file</p>
3338 </td>
3339 <td><p class="first">Loads From:
3340 geany.conf file in
3341 ~/.config/geany</p>
3342 <p class="last">Saves to: as above,
3343 creating if needed.</p>
3344 </td>
3345 <td><p class="first">Loads From:
3346 filetypes.xxx in
3347 Geany install</p>
3348 <p class="last">Saves to: as user
3349 preferences left.</p>
3350 </td>
3351 <td><dl class="first last docutils">
3352 <dt>1:</dt>
3353 <dd>Label: _Make
3354 Command: make</dd>
3355 <dt>2:</dt>
3356 <dd>Label: Make Custom _Target
3357 Command: make</dd>
3358 <dt>3:</dt>
3359 <dd>Label: Make _Object
3360 Command: make %e.o</dd>
3361 </dl>
3362 </td>
3363 </tr>
3364 <tr><td>Execute</td>
3365 <td><p class="first">Loads From: project
3366 file or else
3367 filetype defined in
3368 project file</p>
3369 <p class="last">Saves To:
3370 project file</p>
3371 </td>
3372 <td><p class="first">Loads From:
3373 geany.conf file in
3374 ~/.config/geany or else
3375 filetypes.xxx file in
3376 ~/.config/geany/filedefs</p>
3377 <p class="last">Saves To:
3378 filetypes.xxx file in
3379 ~/.config/geany/filedefs</p>
3380 </td>
3381 <td><p class="first">Loads From:
3382 filetypes.xxx in
3383 Geany install</p>
3384 <p class="last">Saves To: as user
3385 preferences left.</p>
3386 </td>
3387 <td>Label: _Execute
3388 Command: ./%e</td>
3389 </tr>
3390 </tbody>
3391 </table>
3392 <p>The following notes on the table reference cells by coordinate as (group,source):</p>
3393 <ul class="simple">
3394 <li>General - for filetypes.xxx substitute the appropriate extension for
3395 the filetype of the current document for xxx - see <a class="reference internal" href="#filenames">filenames</a>.</li>
3396 <li>System Filetypes - Labels loaded from these sources are locale sensitive
3397 and can contain translations.</li>
3398 <li>(Filetype, Project File) and (Filetype, Preferences) - preferences use a full
3399 filetype file so that users can configure all other filetype preferences
3400 as well. Projects can only configure menu items per filetype. Saving
3401 in the project file means that there is only one file per project not
3402 a whole directory.</li>
3403 <li>(Filetype-Independent, System Filetype) - although conceptually strange, defining
3404 filetype-independent commands in a filetype file, this provides the ability to
3405 define filetype dependent default menu items.</li>
3406 <li>(Execute, Project File) and (Execute, Preferences) - the project independent
3407 execute and preferences independent execute commands can only be set by hand
3408 editing the appropriate file, see <a class="reference internal" href="#preferences-file-format">Preferences file format</a> and <a class="reference internal" href="#project-file-format">Project file
3409 format</a>.</li>
3410 </ul>
3411 </div>
3412 <div class="section" id="build-menu-commands-dialog">
3413 <h3><a class="toc-backref" href="#id148">Build menu commands dialog</a></h3>
3414 <p>Most of the configuration of the build menu is done through the Build Menu
3415 Commands Dialog. You edit the configuration sourced from preferences in the
3416 dialog opened from the Build-&gt;Build Menu Commands item and you edit the
3417 configuration from the project in the build tab of the project preferences
3418 dialog. Both use the same form shown below.</p>
3419 <img alt="./images/build_menu_commands_dialog.png" src="./images/build_menu_commands_dialog.png" />
3420 <p>The dialog is divided into three sections:</p>
3421 <ul class="simple">
3422 <li>Filetype build commands (selected based on the current document's filetype).</li>
3423 <li>Independent build commands (available regardless of filetype).</li>
3424 <li>Filetype execute commands.</li>
3425 </ul>
3426 <p>The filetype and independent sections also each contain a field for the regular
3427 expression used for parsing command output for error and warning messages.</p>
3428 <p>The columns in the first three sections allow setting of the label, command,
3429 and working directory to run the command in.</p>
3430 <p>An item with an empty label will not be shown in the menu.</p>
3431 <p>An empty working directory will default to the directory of the current document.
3432 If there is no current document then the command will not run.</p>
3433 <p>The dialog will always show the command selected by priority, not just the
3434 commands configured in this configuration source. This ensures that you always
3435 see what the menu item is going to do if activated.</p>
3436 <p>If the current source of the menu item is higher priority than the
3437 configuration source you are editing then the command will be shown
3438 in the dialog but will be insensitive (greyed out). This can't happen
3439 with the project source but can with the preferences source dialog.</p>
3440 <p>The clear buttons remove the definition from the configuration source you are editing.
3441 When you do this the command from the next lower priority source will be shown.
3442 To hide lower priority menu items without having anything show in the menu
3443 configure with a nothing in the label but at least one character in the command.</p>
3444 <div class="section" id="substitutions-in-commands-and-working-directories">
3445 <h4><a class="toc-backref" href="#id149">Substitutions in commands and working directories</a></h4>
3446 <p>The first occurence of each of the following character sequences in each of the
3447 command and working directory fields is substituted by the items specified below
3448 before the command is run.</p>
3449 <ul class="simple">
3450 <li>%d - substituted by the absolute path to the directory of the current file.</li>
3451 <li>%e - substituted by the name of the current file without the extension or path.</li>
3452 <li>%f - substituted by the name of the current file without the path.</li>
3453 <li>%p - if a project is open, substituted by the base path from the project.</li>
3454 </ul>
3455 <div class="note">
3456 <p class="first admonition-title">Note</p>
3457 <p class="last">If the basepath set in the project preferences is not an absolute path , then it is
3458 taken as relative to the directory of the project file. This allows a project file
3459 stored in the source tree to specify all commands and working directories relative
3460 to the tree itself, so that the whole tree including the project file, can be moved
3461 and even checked into and out of version control without having to re-configure the
3462 build menu.</p>
3463 </div>
3464 </div>
3465 <div class="section" id="build-menu-keyboard-shortcuts">
3466 <h4><a class="toc-backref" href="#id150">Build menu keyboard shortcuts</a></h4>
3467 <p>Keyboard shortcuts can be defined for the first two filetype menu items, the first three
3468 independent menu items, the first two execute menu items and the fixed menu items.
3469 In the keybindings configuration dialog (see <a class="reference internal" href="#keybinding-preferences">Keybinding preferences</a>)
3470 these items are identified by the default labels shown in the <a class="reference internal" href="#build-menu">Build Menu</a> section above.</p>
3471 <p>It is currently not possible to bind keyboard shortcuts to more than these menu items.</p>
3472 <p>You can also use underlines in the labels to set mnemonic characters.</p>
3473 </div>
3474 <div class="section" id="old-settings">
3475 <h4><a class="toc-backref" href="#id151">Old settings</a></h4>
3476 <p>The configurable Build Menu capability was introduced in Geany 0.19 and
3477 required a new section to be added to the configuration files (See
3478 <a class="reference internal" href="#preferences-file-format">Preferences file format</a>). Geany will still load older format project,
3479 preferences and filetype file settings and will attempt to map them into the new
3480 configuration format. There is not a simple clean mapping between the formats.
3481 The mapping used produces the most sensible results for the majority of cases.
3482 However, if they do not map the way you want, you may have to manually
3483 configure some settings using the Build Commands
3484 Dialog or the Build tab of the project preferences dialog.</p>
3485 <p>Any setting configured in either of these dialogs will override settings mapped from
3486 older format configuration files.</p>
3487 </div>
3488 </div>
3489 </div>
3490 <div class="section" id="printing-support">
3491 <h2><a class="toc-backref" href="#id152">Printing support</a></h2>
3492 <p>Since Geany 0.13 there has been printing support using GTK's printing API.
3493 The printed page(s) will look nearly the same as on your screen in Geany.
3494 Additionally, there are some options to modify the printed page(s).</p>
3495 <div class="note">
3496 <p class="first admonition-title">Note</p>
3497 <p class="last">The background text color is set to white, except for text with
3498 a white foreground. This allows dark color schemes to save ink
3499 when printing.</p>
3500 </div>
3501 <p>You can define whether to print line numbers, page numbers at the bottom of
3502 each page and whether to print a page header on each page. This header
3503 contains the filename of the printed document, the current page number and
3504 the date and time of printing. By default, the file name of the document
3505 with full path information is added to the header. If you prefer to add
3506 only the basename of the file(without any path information) you can set it
3507 in the preferences dialog. You can also adjust the format of the date and
3508 time added to the page header. The available conversion specifiers are the
3509 same as the ones which can be used with the ANSI C strftime function.</p>
3510 <p>All of these settings can also be changed in the print dialog just before
3511 actual printing is done.
3512 On Unix-like systems the provided print dialog offers a print preview. The
3513 preview file is opened with a PDF viewer and by default GTK uses <tt class="docutils literal">evince</tt>
3514 for print preview. If you have not installed evince or just want to use
3515 another PDF viewer, you can change the program to use in the file
3516 <tt class="docutils literal"><span class="pre">.gtkrc-2.0</span></tt> (usually found in your home directory). Simply add a line
3517 like:</p>
3518 <pre class="literal-block">
3519 gtk-print-preview-command = &quot;epdfview %f&quot;
3520 </pre>
3521 <p>at the end of the file. Of course, you can also use xpdf, kpdf or whatever
3522 as the print preview command.</p>
3523 <p>Geany also provides an alternative basic printing support using a custom
3524 print command. However, the printed document contains no syntax highlighting.
3525 You can adjust the command to which the filename is passed in the preferences
3526 dialog. The default command is:</p>
3527 <pre class="literal-block">
3528 % lpr %f
3529 </pre>
3530 <p><tt class="docutils literal">%f</tt> will be substituted by the filename of the current file. Geany
3531 will not show errors from the command itself, so you should make
3532 sure that it works before(e.g. by trying to execute it from the
3533 command line).</p>
3534 <p>A nicer example, which many prefer is:</p>
3535 <pre class="literal-block">
3536 % a2ps -1 --medium=A4 -o - %f | xfprint4
3537 </pre>
3538 <p>But this depends on a2ps and xfprint4. As a replacement for xfprint4,
3539 gtklp or similar programs can be used.</p>
3540 </div>
3541 <div class="section" id="plugins">
3542 <h2><a class="toc-backref" href="#id153">Plugins</a></h2>
3543 <p>Plugins are loaded at startup, if the <em>Enable plugin support</em>
3544 general preference is set. There is also a command-line option,
3545 <tt class="docutils literal"><span class="pre">-p</span></tt>, which prevents plugins being loaded. Plugins are scanned in
3546 the following directories:</p>
3547 <ul class="simple">
3548 <li><tt class="docutils literal">$prefix/lib/geany</tt> (see <a class="reference internal" href="#installation-prefix">Installation prefix</a>)</li>
3549 <li>The <tt class="docutils literal">plugins</tt> subfolder of the user configuration directory - see
3550 <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a>.</li>
3551 <li>The <cite>Extra plugin path</cite> preference (usually blank) - see <a class="reference internal" href="#paths">Paths</a>.</li>
3552 </ul>
3553 <p>Most plugins add menu items to the <em>Tools</em> menu when they are loaded.</p>
3554 <p>See also <a class="reference internal" href="#plugin-documentation">Plugin documentation</a> for information about single plugins
3555 which are included in Geany.</p>
3556 <div class="section" id="plugin-manager">
3557 <h3><a class="toc-backref" href="#id154">Plugin manager</a></h3>
3558 <p>The Plugin Manager dialog lets you choose which plugins
3559 should be loaded at startup. You can also load and unload plugins on the
3560 fly using this dialog. Once you click the checkbox for a specific plugin
3561 in the dialog, it is loaded or unloaded according to its previous state.
3562 By default, no plugins are loaded at startup until you select some.
3563 You can also configure some plugin specific options if the plugin
3564 provides any.</p>
3565 </div>
3566 </div>
3567 <div class="section" id="keybindings">
3568 <h2><a class="toc-backref" href="#id155">Keybindings</a></h2>
3569 <p>Geany supports the default keyboard shortcuts for the Scintilla
3570 editing widget. For a list of these commands, see <a class="reference internal" href="#scintilla-keyboard-commands">Scintilla
3571 keyboard commands</a>. The Scintilla keyboard shortcuts will be overridden
3572 by any custom keybindings with the same keyboard shortcut.</p>
3573 <div class="section" id="switching-documents">
3574 <h3><a class="toc-backref" href="#id156">Switching documents</a></h3>
3575 <p>There are a few non-configurable bindings to switch between documents,
3576 listed below. These can also be overridden by custom keybindings.</p>
3577 <table border="1" class="docutils">
3578 <colgroup>
3579 <col width="31%" />
3580 <col width="69%" />
3581 </colgroup>
3582 <thead valign="bottom">
3583 <tr><th class="head">Key</th>
3584 <th class="head">Action</th>
3585 </tr>
3586 </thead>
3587 <tbody valign="top">
3588 <tr><td>Alt-[1-9]</td>
3589 <td>Select left-most tab, from 1 to 9.</td>
3590 </tr>
3591 <tr><td>Alt-0</td>
3592 <td>Select right-most tab.</td>
3593 </tr>
3594 <tr><td>Ctrl-Shift-PgUp</td>
3595 <td>Select left-most tab.</td>
3596 </tr>
3597 <tr><td>Ctrl-Shift-PgDn</td>
3598 <td>Select right-most tab.</td>
3599 </tr>
3600 </tbody>
3601 </table>
3602 </div>
3603 <div class="section" id="configurable-keybindings">
3604 <h3><a class="toc-backref" href="#id157">Configurable keybindings</a></h3>
3605 <p>For all actions listed below you can define your own keybindings. Open
3606 the Preferences dialog, select the desired action and click on
3607 change. In the resulting dialog you can press the key combination you
3608 want to assign to the action and it will be saved when you press OK.
3609 You can define only one key combination for each action and each key
3610 combination can only be defined for one action.</p>
3611 <p>Some of the default key combinations are common across many
3612 applications, for example <em>Ctrl-N</em> for New and <em>Ctrl-O</em> for Open.
3613 Because they are so common it is not advisable to change these, but
3614 you can add other key combinations for these actions. For example
3615 <em>Ctrl-O</em> is set to execute menu_open by default, but you can also
3616 define <em>Alt-O</em>, so that the file open dialog is shown by pressing
3617 either <em>Ctrl-O</em> or <em>Alt-O</em>.</p>
3618 <p>The following tables list all customizable keyboard shortcuts, those
3619 which are common to many applications are marked with (C) after the
3620 shortcut.</p>
3621 <div class="section" id="file-keybindings">
3622 <h4><a class="toc-backref" href="#id158">File keybindings</a></h4>
3623 <table border="1" class="docutils">
3624 <colgroup>
3625 <col width="29%" />
3626 <col width="24%" />
3627 <col width="47%" />
3628 </colgroup>
3629 <thead valign="bottom">
3630 <tr><th class="head">Action</th>
3631 <th class="head">Default shortcut</th>
3632 <th class="head">Description</th>
3633 </tr>
3634 </thead>
3635 <tbody valign="top">
3636 <tr><td>New</td>
3637 <td>Ctrl-N (C)</td>
3638 <td>Creates a new file.</td>
3639 </tr>
3640 <tr><td>Open</td>
3641 <td>Ctrl-O (C)</td>
3642 <td>Opens a file.</td>
3643 </tr>
3644 <tr><td>Open selected file</td>
3645 <td>Ctrl-Shift-O</td>
3646 <td>Opens the selected filename.</td>
3647 </tr>
3648 <tr><td>Re-open last closed tab</td>
3649 <td>&nbsp;</td>
3650 <td>Re-opens the last closed document tab.</td>
3651 </tr>
3652 <tr><td>Save</td>
3653 <td>Ctrl-S (C)</td>
3654 <td>Saves the current file.</td>
3655 </tr>
3656 <tr><td>Save As</td>
3657 <td>&nbsp;</td>
3658 <td>Saves the current file under a new name.</td>
3659 </tr>
3660 <tr><td>Save all</td>
3661 <td>Ctrl-Shift-S</td>
3662 <td>Saves all open files.</td>
3663 </tr>
3664 <tr><td>Close all</td>
3665 <td>Ctrl-Shift-W</td>
3666 <td>Closes all open files.</td>
3667 </tr>
3668 <tr><td>Close</td>
3669 <td>Ctrl-W (C)</td>
3670 <td>Closes the current file.</td>
3671 </tr>
3672 <tr><td>Reload file</td>
3673 <td>Ctrl-R (C)</td>
3674 <td>Reloads the current file. All unsaved changes
3675 will be lost.</td>
3676 </tr>
3677 <tr><td>Print</td>
3678 <td>Ctrl-P (C)</td>
3679 <td>Prints the current file.</td>
3680 </tr>
3681 </tbody>
3682 </table>
3683 </div>
3684 <div class="section" id="editor-keybindings">
3685 <h4><a class="toc-backref" href="#id159">Editor keybindings</a></h4>
3686 <table border="1" class="docutils">
3687 <colgroup>
3688 <col width="29%" />
3689 <col width="24%" />
3690 <col width="47%" />
3691 </colgroup>
3692 <thead valign="bottom">
3693 <tr><th class="head">Action</th>
3694 <th class="head">Default shortcut</th>
3695 <th class="head">Description</th>
3696 </tr>
3697 </thead>
3698 <tbody valign="top">
3699 <tr><td>Undo</td>
3700 <td>Ctrl-Z (C)</td>
3701 <td>Un-does the last action.</td>
3702 </tr>
3703 <tr><td>Redo</td>
3704 <td>Ctrl-Y</td>
3705 <td>Re-does the last action.</td>
3706 </tr>
3707 <tr><td>Delete current line(s)</td>
3708 <td>Ctrl-K</td>
3709 <td>Deletes the current line (and any lines with a
3710 selection).</td>
3711 </tr>
3712 <tr><td>Delete to line end</td>
3713 <td>Ctrl-Shift-Delete</td>
3714 <td>Deletes from the current caret position to the
3715 end of the current line.</td>
3716 </tr>
3717 <tr><td>Duplicate line or selection</td>
3718 <td>Ctrl-D</td>
3719 <td>Duplicates the current line or selection.</td>
3720 </tr>
3721 <tr><td>Transpose current line</td>
3722 <td>Ctrl-T</td>
3723 <td>Transposes the current line with the previous one.</td>
3724 </tr>
3725 <tr><td>Scroll to current line</td>
3726 <td>Ctrl-Shift-L</td>
3727 <td>Scrolls the current line into the centre of the
3728 view. The cursor position and or an existing
3729 selection will not be changed.</td>
3730 </tr>
3731 <tr><td>Scroll up by one line</td>
3732 <td>Alt-Up</td>
3733 <td>Scrolls the view.</td>
3734 </tr>
3735 <tr><td>Scroll down by one line</td>
3736 <td>Alt-Down</td>
3737 <td>Scrolls the view.</td>
3738 </tr>
3739 <tr><td>Complete word</td>
3740 <td>Ctrl-Space</td>
3741 <td>Shows the autocompletion list. If already showing
3742 tag completion, it shows document word completion
3743 instead, even if it is not enabled for automatic
3744 completion. Likewise if no tag suggestions are
3745 available, it shows document word completion.</td>
3746 </tr>
3747 <tr><td>Show calltip</td>
3748 <td>Ctrl-Shift-Space</td>
3749 <td>Shows a calltip for the current function or
3750 method.</td>
3751 </tr>
3752 <tr><td>Show macro list</td>
3753 <td>Ctrl-Return</td>
3754 <td>Shows a list of available macros and variables in
3755 the workspace.</td>
3756 </tr>
3757 <tr><td>Complete snippet</td>
3758 <td>Tab</td>
3759 <td>If you type a construct like if or for and press
3760 this key, it will be completed with a matching
3761 template.</td>
3762 </tr>
3763 <tr><td>Suppress snippet completion</td>
3764 <td>&nbsp;</td>
3765 <td>If you type a construct like if or for and press
3766 this key, it will not be completed, and a space or
3767 tab will be inserted, depending on what the
3768 construct completion keybinding is set to. For
3769 example, if you have set the construct completion
3770 keybinding to space, then setting this to
3771 Shift+space will prevent construct completion and
3772 insert a space.</td>
3773 </tr>
3774 <tr><td>Context Action</td>
3775 <td>&nbsp;</td>
3776 <td>Executes a command and passes the current word
3777 (near the cursor position) or selection as an
3778 argument. See the section called <a class="reference internal" href="#context-actions">Context
3779 actions</a>.</td>
3780 </tr>
3781 <tr><td>Move cursor in snippet</td>
3782 <td>&nbsp;</td>
3783 <td>Jumps to the next defined cursor positions in a
3784 completed snippets if multiple cursor positions
3785 where defined.</td>
3786 </tr>
3787 <tr><td>Word part completion</td>
3788 <td>Tab</td>
3789 <td>When the autocompletion list is visible, complete
3790 the currently selected item up to the next word
3791 part.</td>
3792 </tr>
3793 <tr><td>Move line(s) up</td>
3794 <td>&nbsp;</td>
3795 <td>Move the current line or selected lines up by
3796 one line.</td>
3797 </tr>
3798 <tr><td>Move line(s) down</td>
3799 <td>&nbsp;</td>
3800 <td>Move the current line or selected lines down by
3801 one line.</td>
3802 </tr>
3803 </tbody>
3804 </table>
3805 </div>
3806 <div class="section" id="clipboard-keybindings">
3807 <h4><a class="toc-backref" href="#id160">Clipboard keybindings</a></h4>
3808 <table border="1" class="docutils">
3809 <colgroup>
3810 <col width="29%" />
3811 <col width="23%" />
3812 <col width="48%" />
3813 </colgroup>
3814 <thead valign="bottom">
3815 <tr><th class="head">Action</th>
3816 <th class="head">Default shortcut</th>
3817 <th class="head">Description</th>
3818 </tr>
3819 </thead>
3820 <tbody valign="top">
3821 <tr><td>Cut</td>
3822 <td>Ctrl-X (C)</td>
3823 <td>Cut the current selection to the clipboard.</td>
3824 </tr>
3825 <tr><td>Copy</td>
3826 <td>Ctrl-C (C)</td>
3827 <td>Copy the current selection to the clipboard.</td>
3828 </tr>
3829 <tr><td>Paste</td>
3830 <td>Ctrl-V (C)</td>
3831 <td>Paste the clipboard text into the current document.</td>
3832 </tr>
3833 <tr><td>Cut current line(s)</td>
3834 <td>Ctrl-Shift-X</td>
3835 <td>Cuts the current line (and any lines with a
3836 selection) to the clipboard.</td>
3837 </tr>
3838 <tr><td>Copy current line(s)</td>
3839 <td>Ctrl-Shift-C</td>
3840 <td>Copies the current line (and any lines with a
3841 selection) to the clipboard.</td>
3842 </tr>
3843 </tbody>
3844 </table>
3845 </div>
3846 <div class="section" id="select-keybindings">
3847 <h4><a class="toc-backref" href="#id161">Select keybindings</a></h4>
3848 <table border="1" class="docutils">
3849 <colgroup>
3850 <col width="29%" />
3851 <col width="24%" />
3852 <col width="47%" />
3853 </colgroup>
3854 <thead valign="bottom">
3855 <tr><th class="head">Action</th>
3856 <th class="head">Default shortcut</th>
3857 <th class="head">Description</th>
3858 </tr>
3859 </thead>
3860 <tbody valign="top">
3861 <tr><td>Select all</td>
3862 <td>Ctrl-A (C)</td>
3863 <td>Makes a selection of all text in the current
3864 document.</td>
3865 </tr>
3866 <tr><td>Select current word</td>
3867 <td>Alt-Shift-W</td>
3868 <td>Selects the current word under the cursor.</td>
3869 </tr>
3870 <tr><td>Select current paragraph</td>
3871 <td>Alt-Shift-P</td>
3872 <td>Selects the current paragraph under the cursor
3873 which is defined by two empty lines around it.</td>
3874 </tr>
3875 <tr><td>Select current line(s)</td>
3876 <td>Alt-Shift-L</td>
3877 <td>Selects the current line under the cursor (and any
3878 partially selected lines).</td>
3879 </tr>
3880 <tr><td>Select to previous word part</td>
3881 <td>&nbsp;</td>
3882 <td>(Extend) selection to previous word part boundary.</td>
3883 </tr>
3884 <tr><td>Select to next word part</td>
3885 <td>&nbsp;</td>
3886 <td>(Extend) selection to next word part boundary.</td>
3887 </tr>
3888 </tbody>
3889 </table>
3890 </div>
3891 <div class="section" id="insert-keybindings">
3892 <h4><a class="toc-backref" href="#id162">Insert keybindings</a></h4>
3893 <table border="1" class="docutils">
3894 <colgroup>
3895 <col width="29%" />
3896 <col width="24%" />
3897 <col width="47%" />
3898 </colgroup>
3899 <thead valign="bottom">
3900 <tr><th class="head">Action</th>
3901 <th class="head">Default shortcut</th>
3902 <th class="head">Description</th>
3903 </tr>
3904 </thead>
3905 <tbody valign="top">
3906 <tr><td>Insert date</td>
3907 <td>Shift-Alt-D</td>
3908 <td>Inserts a customisable date.</td>
3909 </tr>
3910 <tr><td>Insert alternative whitespace</td>
3911 <td>&nbsp;</td>
3912 <td>Inserts a tab character when spaces should
3913 be used for indentation and inserts space
3914 characters of the amount of a tab width when
3915 tabs should be used for indentation.</td>
3916 </tr>
3917 <tr><td>Insert New Line Before Current</td>
3918 <td>&nbsp;</td>
3919 <td>Inserts a new line with indentation.</td>
3920 </tr>
3921 <tr><td>Insert New Line After Current</td>
3922 <td>&nbsp;</td>
3923 <td>Inserts a new line with indentation.</td>
3924 </tr>
3925 </tbody>
3926 </table>
3927 </div>
3928 <div class="section" id="format-keybindings">
3929 <h4><a class="toc-backref" href="#id163">Format keybindings</a></h4>
3930 <table border="1" class="docutils">
3931 <colgroup>
3932 <col width="29%" />
3933 <col width="24%" />
3934 <col width="47%" />
3935 </colgroup>
3936 <thead valign="bottom">
3937 <tr><th class="head">Action</th>
3938 <th class="head">Default shortcut</th>
3939 <th class="head">Description</th>
3940 </tr>
3941 </thead>
3942 <tbody valign="top">
3943 <tr><td>Toggle case of selection</td>
3944 <td>Ctrl-Alt-U</td>
3945 <td>Changes the case of the selection. A lowercase
3946 selection will be changed into uppercase and vice
3947 versa. If the selection contains lower- and
3948 uppercase characters, all will be converted to
3949 lowercase.</td>
3950 </tr>
3951 <tr><td>Comment line</td>
3952 <td>&nbsp;</td>
3953 <td>Comments current line or selection.</td>
3954 </tr>
3955 <tr><td>Uncomment line</td>
3956 <td>&nbsp;</td>
3957 <td>Uncomments current line or selection.</td>
3958 </tr>
3959 <tr><td>Toggle line commentation</td>
3960 <td>Ctrl-E</td>
3961 <td>Comments a line if it is not commented or removes
3962 a comment if the line is commented.</td>
3963 </tr>
3964 <tr><td>Increase indent</td>
3965 <td>Ctrl-I</td>
3966 <td>Indents the current line or selection by one tab
3967 or by spaces in the amount of the tab width
3968 setting.</td>
3969 </tr>
3970 <tr><td>Decrease indent</td>
3971 <td>Ctrl-U</td>
3972 <td>Removes one tab or the amount of spaces of
3973 the tab width setting from the indentation of the
3974 current line or selection.</td>
3975 </tr>
3976 <tr><td>Increase indent by one space</td>
3977 <td>&nbsp;</td>
3978 <td>Indents the current line or selection by one
3979 space.</td>
3980 </tr>
3981 <tr><td>Decrease indent by one space</td>
3982 <td>&nbsp;</td>
3983 <td>Deindents the current line or selection by one
3984 space.</td>
3985 </tr>
3986 <tr><td>Smart line indent</td>
3987 <td>&nbsp;</td>
3988 <td>Indents the current line or all selected lines
3989 with the same indentation as the previous line.</td>
3990 </tr>
3991 <tr><td>Send to Custom Command 1 (2,3)</td>
3992 <td>Ctrl-1 (2,3)</td>
3993 <td>Passes the current selection to a configured
3994 external command (available for the first
3995 three configured commands, see
3996 <a class="reference internal" href="#sending-text-through-custom-commands">Sending text through custom commands</a> for
3997 details).</td>
3998 </tr>
3999 <tr><td>Send Selection to Terminal</td>
4000 <td>&nbsp;</td>
4001 <td>Sends the current selection or the current
4002 line (if there is no selection) to the
4003 embedded Terminal (VTE).</td>
4004 </tr>
4005 <tr><td>Reflow lines/block</td>
4006 <td>&nbsp;</td>
4007 <td>Reformat selected lines or current
4008 (indented) text block,
4009 breaking lines at the long line marker or the
4010 line breaking column if line breaking is
4011 enabled for the current document.</td>
4012 </tr>
4013 </tbody>
4014 </table>
4015 </div>
4016 <div class="section" id="settings-keybindings">
4017 <h4><a class="toc-backref" href="#id164">Settings keybindings</a></h4>
4018 <table border="1" class="docutils">
4019 <colgroup>
4020 <col width="29%" />
4021 <col width="24%" />
4022 <col width="47%" />
4023 </colgroup>
4024 <thead valign="bottom">
4025 <tr><th class="head">Action</th>
4026 <th class="head">Default shortcut</th>
4027 <th class="head">Description</th>
4028 </tr>
4029 </thead>
4030 <tbody valign="top">
4031 <tr><td>Preferences</td>
4032 <td>Ctrl-Alt-P</td>
4033 <td>Opens preferences dialog.</td>
4034 </tr>
4035 <tr><td>Plugin Preferences</td>
4036 <td>&nbsp;</td>
4037 <td>Opens plugin preferences dialog.</td>
4038 </tr>
4039 </tbody>
4040 </table>
4041 </div>
4042 <div class="section" id="search-keybindings">
4043 <h4><a class="toc-backref" href="#id165">Search keybindings</a></h4>
4044 <table border="1" class="docutils">
4045 <colgroup>
4046 <col width="29%" />
4047 <col width="24%" />
4048 <col width="47%" />
4049 </colgroup>
4050 <thead valign="bottom">
4051 <tr><th class="head">Action</th>
4052 <th class="head">Default shortcut</th>
4053 <th class="head">Description</th>
4054 </tr>
4055 </thead>
4056 <tbody valign="top">
4057 <tr><td>Find</td>
4058 <td>Ctrl-F (C)</td>
4059 <td>Opens the Find dialog.</td>
4060 </tr>
4061 <tr><td>Find Next</td>
4062 <td>Ctrl-G</td>
4063 <td>Finds next result.</td>
4064 </tr>
4065 <tr><td>Find Previous</td>
4066 <td>Ctrl-Shift-G</td>
4067 <td>Finds previous result.</td>
4068 </tr>
4069 <tr><td>Find Next Selection</td>
4070 <td>&nbsp;</td>
4071 <td>Finds next occurence of selected text.</td>
4072 </tr>
4073 <tr><td>Find Previous Selection</td>
4074 <td>&nbsp;</td>
4075 <td>Finds previous occurence of selected text.</td>
4076 </tr>
4077 <tr><td>Replace</td>
4078 <td>Ctrl-H (C)</td>
4079 <td>Opens the Replace dialog.</td>
4080 </tr>
4081 <tr><td>Find in files</td>
4082 <td>Ctrl-Shift-F</td>
4083 <td>Opens the Find in files dialog.</td>
4084 </tr>
4085 <tr><td>Next message</td>
4086 <td>&nbsp;</td>
4087 <td>Jumps to the line with the next message in
4088 the Messages window.</td>
4089 </tr>
4090 <tr><td>Previous message</td>
4091 <td>&nbsp;</td>
4092 <td>Jumps to the line with the previous message
4093 in the Messages window.</td>
4094 </tr>
4095 <tr><td>Find Usage</td>
4096 <td>&nbsp;</td>
4097 <td>Finds all occurrences of the current word (near
4098 the keyboard cursor) or selection in all open
4099 documents and displays them in the messages
4100 window.</td>
4101 </tr>
4102 <tr><td>Find Document Usage</td>
4103 <td>&nbsp;</td>
4104 <td>Finds all occurrences of the current word (near
4105 the keyboard cursor) or selection in the current
4106 document and displays them in the messages
4107 window.</td>
4108 </tr>
4109 <tr><td>Mark All</td>
4110 <td>Ctrl-Shift-M</td>
4111 <td>Highlight all matches of the current
4112 word/selection in the current document
4113 with a colored box. If there's nothing to
4114 find, highlighted matches will be cleared.</td>
4115 </tr>
4116 </tbody>
4117 </table>
4118 </div>
4119 <div class="section" id="go-to-keybindings">
4120 <h4><a class="toc-backref" href="#id166">Go to keybindings</a></h4>
4121 <table border="1" class="docutils">
4122 <colgroup>
4123 <col width="29%" />
4124 <col width="24%" />
4125 <col width="47%" />
4126 </colgroup>
4127 <thead valign="bottom">
4128 <tr><th class="head">Action</th>
4129 <th class="head">Default shortcut</th>
4130 <th class="head">Description</th>
4131 </tr>
4132 </thead>
4133 <tbody valign="top">
4134 <tr><td>Navigate forward a location</td>
4135 <td>&nbsp;</td>
4136 <td>Switches to the next location in the navigation
4137 history. See the section called <a class="reference internal" href="#code-navigation-history">Code Navigation
4138 History</a>.</td>
4139 </tr>
4140 <tr><td>Navigate back a location</td>
4141 <td>&nbsp;</td>
4142 <td>Switches to the previous location in the
4143 navigation history. See the section called
4144 <a class="reference internal" href="#code-navigation-history">Code navigation history</a>.</td>
4145 </tr>
4146 <tr><td>Go to line</td>
4147 <td>Ctrl-L</td>
4148 <td>Focuses the Go to Line entry (if visible) or
4149 shows the Go to line dialog.</td>
4150 </tr>
4151 <tr><td>Goto matching brace</td>
4152 <td>Ctrl-B</td>
4153 <td>If the cursor is ahead or behind a brace, then it
4154 is moved to the brace which belongs to the current
4155 one. If this keyboard shortcut is pressed again,
4156 the cursor is moved back to the first brace.</td>
4157 </tr>
4158 <tr><td>Toggle marker</td>
4159 <td>Ctrl-M</td>
4160 <td>Set a marker on the current line, or clear the
4161 marker if there already is one.</td>
4162 </tr>
4163 <tr><td>Goto next marker</td>
4164 <td>Ctrl-.</td>
4165 <td>Goto the next marker in the current document.</td>
4166 </tr>
4167 <tr><td>Goto previous marker</td>
4168 <td>Ctrl-,</td>
4169 <td>Goto the previous marker in the current document.</td>
4170 </tr>
4171 <tr><td>Go to tag definition</td>
4172 <td>&nbsp;</td>
4173 <td>Jump to the definition of the current word (near
4174 the keyboard cursor). If the definition cannot be
4175 found (e.g. the relevant file is not open) Geany
4176 will beep and do nothing. See the section called
4177 <a class="reference internal" href="#go-to-tag-definition">Go to tag definition</a>.</td>
4178 </tr>
4179 <tr><td>Go to tag declaration</td>
4180 <td>&nbsp;</td>
4181 <td>Jump to the declaration of the current word (near
4182 the keyboard cursor). If the declaration cannot be
4183 found (e.g. the relevant file is not open) Geany
4184 will beep and do nothing. See the section called
4185 <a class="reference internal" href="#go-to-tag-declaration">Go to tag declaration</a>.</td>
4186 </tr>
4187 <tr><td>Go to Start of Line</td>
4188 <td>Home</td>
4189 <td>Move the caret to the end of the line indentation
4190 unless it is already there, in which case it moves
4191 it to the start of the line.</td>
4192 </tr>
4193 <tr><td>Go to End of Line</td>
4194 <td>End</td>
4195 <td>Move the caret to the end of the line.</td>
4196 </tr>
4197 <tr><td>Go to End of Display Line</td>
4198 <td>Alt-End</td>
4199 <td>Move the caret to the end of the display line.
4200 This is useful when you use line wrapping and
4201 want to jump to the end of the wrapped, virtual
4202 line, not the real end of the whole line.
4203 If the line is not wrapped, it behaves like
4204 <cite>Go to End of Line</cite>, see above.</td>
4205 </tr>
4206 <tr><td>Go to Previous Word Part</td>
4207 <td>Ctrl-/</td>
4208 <td>Goto the previous part of the current word.</td>
4209 </tr>
4210 <tr><td>Go to Next Word Part</td>
4211 <td>Ctrl-</td>
4212 <td>Goto the next part of the current word.</td>
4213 </tr>
4214 </tbody>
4215 </table>
4216 </div>
4217 <div class="section" id="view-keybindings">
4218 <h4><a class="toc-backref" href="#id167">View keybindings</a></h4>
4219 <table border="1" class="docutils">
4220 <colgroup>
4221 <col width="29%" />
4222 <col width="24%" />
4223 <col width="47%" />
4224 </colgroup>
4225 <thead valign="bottom">
4226 <tr><th class="head">Action</th>
4227 <th class="head">Default shortcut</th>
4228 <th class="head">Description</th>
4229 </tr>
4230 </thead>
4231 <tbody valign="top">
4232 <tr><td>Fullscreen</td>
4233 <td>F11 (C)</td>
4234 <td>Switches to fullscreen mode.</td>
4235 </tr>
4236 <tr><td>Toggle Messages Window</td>
4237 <td>&nbsp;</td>
4238 <td>Toggles the message window (status and compiler
4239 messages) on and off.</td>
4240 </tr>
4241 <tr><td>Toggle Sidebar</td>
4242 <td>&nbsp;</td>
4243 <td>Shows or hides the sidebar.</td>
4244 </tr>
4245 <tr><td>Toggle all additional widgets</td>
4246 <td>&nbsp;</td>
4247 <td>Hide and show all additional widgets like the
4248 notebook tabs, the toolbar, the messages window
4249 and the status bar.</td>
4250 </tr>
4251 <tr><td>Zoom In</td>
4252 <td>Ctrl-+ (C)</td>
4253 <td>Zooms in the text.</td>
4254 </tr>
4255 <tr><td>Zoom Out</td>
4256 <td>Ctrl-- (C)</td>
4257 <td>Zooms out the text.</td>
4258 </tr>
4259 <tr><td>Zoom Reset</td>
4260 <td>Ctrl-0</td>
4261 <td>Reset any previous zoom on the text.</td>
4262 </tr>
4263 </tbody>
4264 </table>
4265 </div>
4266 <div class="section" id="focus-keybindings">
4267 <h4><a class="toc-backref" href="#id168">Focus keybindings</a></h4>
4268 <table border="1" class="docutils">
4269 <colgroup>
4270 <col width="30%" />
4271 <col width="23%" />
4272 <col width="47%" />
4273 </colgroup>
4274 <thead valign="bottom">
4275 <tr><th class="head">Action</th>
4276 <th class="head">Default shortcut</th>
4277 <th class="head">Description</th>
4278 </tr>
4279 </thead>
4280 <tbody valign="top">
4281 <tr><td>Switch to Editor</td>
4282 <td>F2</td>
4283 <td>Switches to editor widget.
4284 Also reshows the document statistics line
4285 (after a short timeout).</td>
4286 </tr>
4287 <tr><td>Switch to Search Bar</td>
4288 <td>F7</td>
4289 <td>Switches to the search bar in the toolbar (if
4290 visible).</td>
4291 </tr>
4292 <tr><td>Switch to Message Window</td>
4293 <td>&nbsp;</td>
4294 <td>Focus the Message Window's current tab.</td>
4295 </tr>
4296 <tr><td>Switch to Compiler</td>
4297 <td>&nbsp;</td>
4298 <td>Focus the Compiler message window tab.</td>
4299 </tr>
4300 <tr><td>Switch to Messages</td>
4301 <td>&nbsp;</td>
4302 <td>Focus the Messages message window tab.</td>
4303 </tr>
4304 <tr><td>Switch to Scribble</td>
4305 <td>F6</td>
4306 <td>Switches to scribble widget.</td>
4307 </tr>
4308 <tr><td>Switch to VTE</td>
4309 <td>F4</td>
4310 <td>Switches to VTE widget.</td>
4311 </tr>
4312 <tr><td>Switch to Sidebar</td>
4313 <td>&nbsp;</td>
4314 <td>Focus the Sidebar.</td>
4315 </tr>
4316 <tr><td>Switch to Sidebar Symbol List</td>
4317 <td>&nbsp;</td>
4318 <td>Focus the Symbol list tab in the Sidebar
4319 (if visible).</td>
4320 </tr>
4321 <tr><td>Switch to Sidebar Document List</td>
4322 <td>&nbsp;</td>
4323 <td>Focus the Document list tab in the Sidebar
4324 (if visible).</td>
4325 </tr>
4326 </tbody>
4327 </table>
4328 </div>
4329 <div class="section" id="notebook-tab-keybindings">
4330 <h4><a class="toc-backref" href="#id169">Notebook tab keybindings</a></h4>
4331 <table border="1" class="docutils">
4332 <colgroup>
4333 <col width="28%" />
4334 <col width="23%" />
4335 <col width="49%" />
4336 </colgroup>
4337 <thead valign="bottom">
4338 <tr><th class="head">Action</th>
4339 <th class="head">Default shortcut</th>
4340 <th class="head">Description</th>
4341 </tr>
4342 </thead>
4343 <tbody valign="top">
4344 <tr><td>Switch to left document</td>
4345 <td>Ctrl-PageUp (C)</td>
4346 <td>Switches to the previous open document.</td>
4347 </tr>
4348 <tr><td>Switch to right document</td>
4349 <td>Ctrl-PageDown (C)</td>
4350 <td>Switches to the next open document.</td>
4351 </tr>
4352 <tr><td>Switch to last used document</td>
4353 <td>Ctrl-Tab</td>
4354 <td>Switches to the previously shown document (if it's
4355 still open).
4356 Holding Ctrl (or another modifier if the keybinding
4357 has been changed) will show a dialog, then repeated
4358 presses of the keybinding will switch to the 2nd-last
4359 used document, 3rd-last, etc. Also known as
4360 Most-Recently-Used documents switching.</td>
4361 </tr>
4362 <tr><td>Move document left</td>
4363 <td>Alt-PageUp</td>
4364 <td>Changes the current document with the left hand
4365 one.</td>
4366 </tr>
4367 <tr><td>Move document right</td>
4368 <td>Alt-PageDown</td>
4369 <td>Changes the current document with the right hand
4370 one.</td>
4371 </tr>
4372 <tr><td>Move document first</td>
4373 <td>&nbsp;</td>
4374 <td>Moves the current document to the first position.</td>
4375 </tr>
4376 <tr><td>Move document last</td>
4377 <td>&nbsp;</td>
4378 <td>Moves the current document to the last position.</td>
4379 </tr>
4380 </tbody>
4381 </table>
4382 </div>
4383 <div class="section" id="document-keybindings">
4384 <h4><a class="toc-backref" href="#id170">Document keybindings</a></h4>
4385 <table border="1" class="docutils">
4386 <colgroup>
4387 <col width="33%" />
4388 <col width="19%" />
4389 <col width="48%" />
4390 </colgroup>
4391 <thead valign="bottom">
4392 <tr><th class="head">Action</th>
4393 <th class="head">Default shortcut</th>
4394 <th class="head">Description</th>
4395 </tr>
4396 </thead>
4397 <tbody valign="top">
4398 <tr><td>Replace tabs by space</td>
4399 <td>&nbsp;</td>
4400 <td>Replaces all tabs with the right amount of spaces.</td>
4401 </tr>
4402 <tr><td>Replace spaces by tabs</td>
4403 <td>&nbsp;</td>
4404 <td>Replaces all spaces with tab characters.</td>
4405 </tr>
4406 <tr><td>Toggle current fold</td>
4407 <td>&nbsp;</td>
4408 <td>Toggles the folding state of the current code block.</td>
4409 </tr>
4410 <tr><td>Fold all</td>
4411 <td>&nbsp;</td>
4412 <td>Folds all contractible code blocks.</td>
4413 </tr>
4414 <tr><td>Unfold all</td>
4415 <td>&nbsp;</td>
4416 <td>Unfolds all contracted code blocks.</td>
4417 </tr>
4418 <tr><td>Reload symbol list</td>
4419 <td>Ctrl-Shift-R</td>
4420 <td>Reloads the tag/symbol list.</td>
4421 </tr>
4422 <tr><td>Toggle Line wrapping</td>
4423 <td>&nbsp;</td>
4424 <td>Enables or disables wrapping of long lines.</td>
4425 </tr>
4426 <tr><td>Toggle Line breaking</td>
4427 <td>&nbsp;</td>
4428 <td>Enables or disables automatic breaking of long
4429 lines at a configurable column.</td>
4430 </tr>
4431 <tr><td>Remove Markers</td>
4432 <td>&nbsp;</td>
4433 <td>Remove any markers on lines or words which
4434 were set by using 'Mark All' in the
4435 search dialog or by manually marking lines.</td>
4436 </tr>
4437 <tr><td>Remove Error Indicators</td>
4438 <td>&nbsp;</td>
4439 <td>Remove any error indicators in the
4440 current document.</td>
4441 </tr>
4442 <tr><td>Remove Markers and Error Indicators</td>
4443 <td>&nbsp;</td>
4444 <td>Combines <tt class="docutils literal">Remove Markers</tt> and
4445 <tt class="docutils literal">Remove Error Indicators</tt>.</td>
4446 </tr>
4447 </tbody>
4448 </table>
4449 </div>
4450 <div class="section" id="build-keybindings">
4451 <h4><a class="toc-backref" href="#id171">Build keybindings</a></h4>
4452 <table border="1" class="docutils">
4453 <colgroup>
4454 <col width="29%" />
4455 <col width="24%" />
4456 <col width="47%" />
4457 </colgroup>
4458 <thead valign="bottom">
4459 <tr><th class="head">Action</th>
4460 <th class="head">Default shortcut</th>
4461 <th class="head">Description</th>
4462 </tr>
4463 </thead>
4464 <tbody valign="top">
4465 <tr><td>Compile</td>
4466 <td>F8</td>
4467 <td>Compiles the current file.</td>
4468 </tr>
4469 <tr><td>Build</td>
4470 <td>F9</td>
4471 <td>Builds (compiles if necessary and links) the
4472 current file.</td>
4473 </tr>
4474 <tr><td>Make all</td>
4475 <td>Shift-F9</td>
4476 <td>Builds the current file with the Make tool.</td>
4477 </tr>
4478 <tr><td>Make custom target</td>
4479 <td>Ctrl-Shift-F9</td>
4480 <td>Builds the current file with the Make tool and a
4481 given target.</td>
4482 </tr>
4483 <tr><td>Make object</td>
4484 <td>&nbsp;</td>
4485 <td>Compiles the current file with the Make tool.</td>
4486 </tr>
4487 <tr><td>Next error</td>
4488 <td>&nbsp;</td>
4489 <td>Jumps to the line with the next error from the
4490 last build process.</td>
4491 </tr>
4492 <tr><td>Previous error</td>
4493 <td>&nbsp;</td>
4494 <td>Jumps to the line with the previous error from
4495 the last build process.</td>
4496 </tr>
4497 <tr><td>Run</td>
4498 <td>F5</td>
4499 <td>Executes the current file in a terminal emulation.</td>
4500 </tr>
4501 <tr><td>Set Build Commands</td>
4502 <td>&nbsp;</td>
4503 <td>Opens the build commands dialog.</td>
4504 </tr>
4505 </tbody>
4506 </table>
4507 </div>
4508 <div class="section" id="tools-keybindings">
4509 <h4><a class="toc-backref" href="#id172">Tools keybindings</a></h4>
4510 <table border="1" class="docutils">
4511 <colgroup>
4512 <col width="29%" />
4513 <col width="24%" />
4514 <col width="47%" />
4515 </colgroup>
4516 <thead valign="bottom">
4517 <tr><th class="head">Action</th>
4518 <th class="head">Default shortcut</th>
4519 <th class="head">Description</th>
4520 </tr>
4521 </thead>
4522 <tbody valign="top">
4523 <tr><td>Show Color Chooser</td>
4524 <td>&nbsp;</td>
4525 <td>Opens the Color Chooser dialog.</td>
4526 </tr>
4527 </tbody>
4528 </table>
4529 </div>
4530 <div class="section" id="help-keybindings">
4531 <h4><a class="toc-backref" href="#id173">Help keybindings</a></h4>
4532 <table border="1" class="docutils">
4533 <colgroup>
4534 <col width="29%" />
4535 <col width="24%" />
4536 <col width="47%" />
4537 </colgroup>
4538 <thead valign="bottom">
4539 <tr><th class="head">Action</th>
4540 <th class="head">Default shortcut</th>
4541 <th class="head">Description</th>
4542 </tr>
4543 </thead>
4544 <tbody valign="top">
4545 <tr><td>Help</td>
4546 <td>F1 (C)</td>
4547 <td>Opens the manual.</td>
4548 </tr>
4549 </tbody>
4550 </table>
4551 </div>
4552 </div>
4553 </div>
4554 </div>
4555 <div class="section" id="configuration-files">
4556 <h1><a class="toc-backref" href="#id174">Configuration files</a></h1>
4557 <div class="warning">
4558 <p class="first admonition-title">Warning</p>
4559 <p class="last">You must use UTF-8 encoding <em>without BOM</em> for configuration files.</p>
4560 </div>
4561 <div class="section" id="configuration-file-paths">
4562 <h2><a class="toc-backref" href="#id175">Configuration file paths</a></h2>
4563 <p>Geany has default configuration files installed for the system and
4564 also per-user configuration files.</p>
4565 <p>The system files should not normally be edited because they will be
4566 overwritten when upgrading Geany.</p>
4567 <p>The user configuration directory can be overridden with the <tt class="docutils literal"><span class="pre">-c</span></tt>
4568 switch, but this is not normally done. See <a class="reference internal" href="#command-line-options">Command line options</a>.</p>
4569 <div class="note">
4570 <p class="first admonition-title">Note</p>
4571 <p class="last">Any missing subdirectories in the user configuration directory
4572 will be created when Geany starts.</p>
4573 </div>
4574 <p>You can check the paths Geany is using with <em>Help-&gt;Debug Messages</em>.
4575 Near the top there should be 2 lines with something like:</p>
4576 <pre class="literal-block">
4577 Geany-INFO: System data dir: /usr/share/geany
4578 Geany-INFO: User config dir: /home/username/.config/geany
4579 </pre>
4580 <div class="section" id="paths-on-unix-like-systems">
4581 <h3><a class="toc-backref" href="#id176">Paths on Unix-like systems</a></h3>
4582 <p>The system path is <tt class="docutils literal">$prefix/share/geany</tt>, where <tt class="docutils literal">$prefix</tt> is the
4583 path where Geany is installed (see <a class="reference internal" href="#installation-prefix">Installation prefix</a>).</p>
4584 <p>The user configuration directory is normally
4585 <tt class="docutils literal"><span class="pre">/home/username/.config/geany/</span></tt>.</p>
4586 </div>
4587 </div>
4588 <div class="section" id="tools-menu-items">
4589 <h2><a class="toc-backref" href="#id177">Tools menu items</a></h2>
4590 <p>There's a <em>Configuration files</em> submenu in the <em>Tools</em> menu that
4591 contains items for some of the available user configuration files.
4592 Clicking on one opens it in the editor for you to update. Geany will
4593 reload the file after you have saved it.</p>
4594 <div class="note">
4595 <p class="first admonition-title">Note</p>
4596 <p class="last">Other configuration files not shown here will need to be opened
4597 manually, and will not be automatically reloaded when saved.
4598 (see <em>Reload Configuration</em> below).</p>
4599 </div>
4600 <p>There's also a <em>Reload Configuration</em> item which can be used if you
4601 updated one of the other configuration files, or modified or added
4602 template files.</p>
4603 <p><em>Reload Configuration</em> is also necessary to update syntax highlighting colors.</p>
4604 <div class="note">
4605 <p class="first admonition-title">Note</p>
4606 <p class="last">Syntax highlighting colors aren't updated in open documents after
4607 saving filetypes.common as this may take a significant
4608 amount of time.</p>
4609 </div>
4610 </div>
4611 <div class="section" id="global-configuration-file">
4612 <h2><a class="toc-backref" href="#id178">Global configuration file</a></h2>
4613 <p>System administrators can add a global configuration file for Geany
4614 which will be used when starting Geany and a user configuration file
4615 does not exist.</p>
4616 <p>The global configuration file is read from <tt class="docutils literal">geany.conf</tt> in the
4617 system configuration path - see <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a>. It can
4618 contain any settings which are found in the usual configuration file
4619 created by Geany, but does not have to contain all settings.</p>
4620 <div class="note">
4621 <p class="first admonition-title">Note</p>
4622 <p class="last">This feature is mainly intended for package maintainers or system
4623 admins who want to set up Geany in a multi user environment and
4624 set some sane default values for this environment. Usually users won't
4625 need to do that.</p>
4626 </div>
4627 </div>
4628 <div class="section" id="filetype-definition-files">
4629 <h2><a class="toc-backref" href="#id179">Filetype definition files</a></h2>
4630 <p>All color definitions and other filetype specific settings are
4631 stored in the filetype definition files. Those settings are colors
4632 for syntax highlighting, general settings like comment characters or
4633 word delimiter characters as well as compiler and linker settings.</p>
4634 <p>See also <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a>.</p>
4635 <div class="section" id="filenames">
4636 <h3><a class="toc-backref" href="#id180">Filenames</a></h3>
4637 <p>Each filetype has a corresponding filetype definition file. The format
4638 for built-in filetype <cite>Foo</cite> is:</p>
4639 <pre class="literal-block">
4640 filetypes.foo
4641 </pre>
4642 <p>The extension is normally just the filetype name in lower case.</p>
4643 <p>However there are some exceptions:</p>
4644 <table border="1" class="docutils">
4645 <colgroup>
4646 <col width="63%" />
4647 <col width="38%" />
4648 </colgroup>
4649 <thead valign="bottom">
4650 <tr><th class="head">Filetype</th>
4651 <th class="head">Extension</th>
4652 </tr>
4653 </thead>
4654 <tbody valign="top">
4655 <tr><td>C++</td>
4656 <td>cpp</td>
4657 </tr>
4658 <tr><td>C#</td>
4659 <td>cs</td>
4660 </tr>
4661 <tr><td>Make</td>
4662 <td>makefile</td>
4663 </tr>
4664 <tr><td>Matlab/Octave</td>
4665 <td>matlab</td>
4666 </tr>
4667 </tbody>
4668 </table>
4669 <p>There is also the <a class="reference internal" href="#special-file-filetypes-common">special file filetypes.common</a>.</p>
4670 <p>For <a class="reference internal" href="#custom-filetypes">custom filetypes</a>, the filename for <cite>Foo</cite> is different:</p>
4671 <pre class="literal-block">
4672 filetypes.Foo.conf
4673 </pre>
4674 <p>See the link for details.</p>
4675 </div>
4676 <div class="section" id="system-files">
4677 <h3><a class="toc-backref" href="#id181">System files</a></h3>
4678 <p>The system-wide filetype configuration files can be found in the
4679 system configuration path and are called <tt class="docutils literal"><span class="pre">filetypes.$ext</span></tt>,
4680 where $ext is the name of the filetype. For every
4681 filetype there is a corresponding definition file. There is one
4682 exception: <tt class="docutils literal">filetypes.common</tt> -- this file is for general settings,
4683 which are not specific to a certain filetype.</p>
4684 <div class="warning">
4685 <p class="first admonition-title">Warning</p>
4686 <p class="last">It is not recommended that users edit the system-wide files,
4687 because they will be overridden when Geany is updated.</p>
4688 </div>
4689 </div>
4690 <div class="section" id="user-files">
4691 <h3><a class="toc-backref" href="#id182">User files</a></h3>
4692 <p>To change the settings, copy a file from the system configuration
4693 path to the subdirectory <tt class="docutils literal">filedefs</tt> in your user configuration
4694 directory. Then you can edit the file and the changes will still be
4695 available after an update of Geany.</p>
4696 <p>Alternatively, you can create the file yourself and add only the
4697 settings you want to change. All missing settings will be read from
4698 the corresponding system configuration file.</p>
4699 </div>
4700 <div class="section" id="custom-filetypes">
4701 <h3><a class="toc-backref" href="#id183">Custom filetypes</a></h3>
4702 <p>At startup Geany looks for <tt class="docutils literal"><span class="pre">filetypes.*.conf</span></tt> files in the system and
4703 user filetype paths, adding any filetypes found with the name matching
4704 the '<tt class="docutils literal">*</tt>' wildcard - e.g. <tt class="docutils literal">filetypes.Bar.conf</tt>.</p>
4705 <p>Custom filetypes are not as powerful as built-in filetypes, but
4706 support for the following has been implemented:</p>
4707 <ul>
4708 <li><p class="first">Recognizing and setting the filetype (after the user has manually edited
4709 <tt class="docutils literal">filetype_extensions.conf</tt>).</p>
4710 </li>
4711 <li><dl class="first docutils">
4712 <dt>Reading filetype settings in the <tt class="docutils literal">[settings]</tt> section, including:</dt>
4713 <dd><ul class="first last simple">
4714 <li>Using an existing syntax highlighting lexer (<a class="reference internal" href="#lexer-filetype">lexer_filetype</a> key).</li>
4715 <li>Using an existing tag parser (<tt class="docutils literal">tag_parser</tt> key).</li>
4716 </ul>
4717 </dd>
4718 </dl>
4719 </li>
4720 <li><p class="first">Build commands (<tt class="docutils literal"><span class="pre">[build-menu]</span></tt> section).</p>
4721 </li>
4722 <li><p class="first">Loading global tags files (sharing the <tt class="docutils literal">tag_parser</tt> namespace).</p>
4723 </li>
4724 </ul>
4725 <p>See <a class="reference internal" href="#filetype-configuration">Filetype configuration</a> for details on each setting.</p>
4726 <div class="section" id="creating-a-custom-filetype-from-an-existing-filetype">
4727 <h4><a class="toc-backref" href="#id184">Creating a custom filetype from an existing filetype</a></h4>
4728 <p>Because most filetype settings will relate to the syntax
4729 highlighting (e.g. styling, keywords, <tt class="docutils literal">lexer_properties</tt>
4730 sections), it is best to copy an existing filetype file that uses
4731 the lexer you wish to use as the basis of a custom filetype, using
4732 the correct filename extension format shown above, e.g.:</p>
4733 <pre class="literal-block">
4734 cp filetypes.foo filetypes.Bar.conf
4735 </pre>
4736 <p>Then add the <tt class="docutils literal">lexer_filetype=Foo</tt> setting (if not already present)
4737 and add/adjust other settings.</p>
4738 <div class="warning">
4739 <p class="first admonition-title">Warning</p>
4740 <p class="last">The <tt class="docutils literal">[styling]</tt> and <tt class="docutils literal">[keywords]</tt> sections have key names
4741 specific to each filetype/lexer. You must follow the same
4742 names - in particular, some lexers only support one keyword
4743 list, or none.</p>
4744 </div>
4745 </div>
4746 </div>
4747 <div class="section" id="filetype-configuration">
4748 <h3><a class="toc-backref" href="#id185">Filetype configuration</a></h3>
4749 <p>As well as the sections listed below, each filetype file can contain
4750 a [build-menu] section as described in <a class="reference internal" href="#build-menu-section">[build-menu] section</a>.</p>
4751 <div class="section" id="styling-section">
4752 <h4><a class="toc-backref" href="#id186">[styling] section</a></h4>
4753 <p>In this section the colors for syntax highlighting are defined. The
4754 manual format is:</p>
4755 <ul class="simple">
4756 <li><tt class="docutils literal">key=foreground_color;background_color;bold_flag;italic_flag</tt></li>
4757 </ul>
4758 <p>Colors have to be specified as RGB hex values prefixed by
4759 0x. For example red is 0xff0000, blue is 0x0000ff. The values are
4760 case-insensitive, but it is a good idea to use small letters. Bold
4761 and italic are flags and should only be &quot;true&quot; or &quot;false&quot;. If their
4762 value is something other than &quot;true&quot; or &quot;false&quot;, &quot;false&quot; is assumed.</p>
4763 <p>You can omit fields to use the values from the style named <tt class="docutils literal">&quot;default&quot;</tt>.</p>
4764 <p>E.g. <tt class="docutils literal"><span class="pre">key=0xff0000;;true</span></tt></p>
4765 <p>This makes the key style have red foreground text, default background
4766 color text and bold emphasis.</p>
4767 <div class="section" id="using-a-named-style">
4768 <h5><a class="toc-backref" href="#id187">Using a named style</a></h5>
4769 <p>The second format uses a <em>named style</em> name to reference a style
4770 defined in filetypes.common.</p>
4771 <ul class="simple">
4772 <li><tt class="docutils literal">key=named_style</tt></li>
4773 <li><tt class="docutils literal">key2=named_style2,bold,italic</tt></li>
4774 </ul>
4775 <p>The bold and italic parts are optional, and if present are used to
4776 toggle the bold or italic flags to the opposite of the named style's
4777 flags. In contrast to style definition booleans, they are a literal
4778 &quot;,bold,italic&quot; and commas are used instead of semi-colons.</p>
4779 <p>E.g. <tt class="docutils literal">key=comment,italic</tt></p>
4780 <p>This makes the key style match the <tt class="docutils literal">&quot;comment&quot;</tt> named style, but with
4781 italic emphasis.</p>
4782 <p>To define named styles, see the filetypes.common <a class="reference internal" href="#named-styles-section">[named_styles]
4783 Section</a>.</p>
4784 </div>
4785 <div class="section" id="reading-styles-from-another-filetype">
4786 <h5><a class="toc-backref" href="#id188">Reading styles from another filetype</a></h5>
4787 <p>You can automatically copy all of the styles from another filetype
4788 definition file by using the following syntax for the <tt class="docutils literal">[styling]</tt>
4789 group:</p>
4790 <pre class="literal-block">
4791 [styling=Foo]
4792 </pre>
4793 <p>Where Foo is a filetype name. The corresponding <tt class="docutils literal">[styling]</tt>
4794 section from <tt class="docutils literal">filetypes.foo</tt> will be read.</p>
4795 <p>This is useful when the same lexer is being used for multiple
4796 filetypes (e.g. C/C++/C#/Java/etc). For example, to make the C++
4797 styling the same as the C styling, you would put the following in
4798 <tt class="docutils literal">filetypes.cpp</tt>:</p>
4799 <pre class="literal-block">
4800 [styling=C]
4801 </pre>
4802 </div>
4803 </div>
4804 <div class="section" id="keywords-section">
4805 <h4><a class="toc-backref" href="#id189">[keywords] section</a></h4>
4806 <p>This section contains keys for different keyword lists specific to
4807 the filetype. Some filetypes do not support keywords, so adding a
4808 new key will not work. You can only add or remove keywords to/from
4809 an existing list.</p>
4810 <div class="important">
4811 <p class="first admonition-title">Important</p>
4812 <p class="last">The keywords list must be in one line without line ending characters.</p>
4813 </div>
4814 </div>
4815 <div class="section" id="lexer-properties-section">
4816 <h4><a class="toc-backref" href="#id190">[lexer_properties] section</a></h4>
4817 <p>Here any special properties for the Scintilla lexer can be set in the
4818 format <tt class="docutils literal">key.name.field=some.value</tt>.</p>
4819 <p>Properties Geany uses are listed in the system filetype files. To find
4820 other properties you need Geany's source code:</p>
4821 <pre class="literal-block">
4822 egrep -o 'GetProperty\w*\(&quot;([^&quot;]+)&quot;[^)]+\)' scintilla/Lex*.cxx
4823 </pre>
4824 </div>
4825 <div class="section" id="settings-section">
4826 <h4><a class="toc-backref" href="#id191">[settings] section</a></h4>
4827 <dl class="docutils">
4828 <dt>extension</dt>
4829 <dd><p class="first">This is the default file extension used when saving files, not
4830 including the period character (<tt class="docutils literal">.</tt>). The extension used should
4831 match one of the patterns associated with that filetype (see
4832 <a class="reference internal" href="#filetype-extensions">Filetype extensions</a>).</p>
4833 <p class="last"><em>Example:</em> <tt class="docutils literal">extension=cxx</tt></p>
4834 </dd>
4835 <dt>wordchars</dt>
4836 <dd><p class="first">These characters define word boundaries when making selections
4837 and searching using word matching options.</p>
4838 <p><em>Example:</em> (look at system filetypes.* files)</p>
4839 <div class="note last">
4840 <p class="first admonition-title">Note</p>
4841 <p class="last">This can be overridden by the <em>whitespace_chars</em>
4842 filetypes.common setting.</p>
4843 </div>
4844 </dd>
4845 <dt>comment_single</dt>
4846 <dd><p class="first">A character or string which is used to comment code. If you want to use
4847 multiline comments only, don't set this but rather comment_open and
4848 comment_close.</p>
4849 <p>Single-line comments are used in priority over multiline comments to
4850 comment a line, e.g. with the <cite>Comment/Uncomment line</cite> command.</p>
4851 <p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">comment_single=//</span></tt></p>
4852 </dd>
4853 <dt>comment_open</dt>
4854 <dd><p class="first">A character or string which is used to comment code. You need to also
4855 set comment_close to really use multiline comments. If you want to use
4856 single-line comments, prefer setting comment_single.</p>
4857 <p>Multiline comments are used in priority over single-line comments to
4858 comment a block, e.g. template comments.</p>
4859 <p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">comment_open=/*</span></tt></p>
4860 </dd>
4861 <dt>comment_close</dt>
4862 <dd><p class="first">If multiline comments are used, this is the character or string to
4863 close the comment.</p>
4864 <p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">comment_close=*/</span></tt></p>
4865 </dd>
4866 <dt>comment_use_indent</dt>
4867 <dd><p class="first">Set this to false if a comment character or string should start at
4868 column 0 of a line. If set to true it uses any indentation of the
4869 line.</p>
4870 <p>Note: Comment indentation</p>
4871 <p><tt class="docutils literal">comment_use_indent=true</tt> would generate this if a line is
4872 commented (e.g. with Ctrl-D):</p>
4873 <pre class="literal-block">
4874 #command_example();
4875 </pre>
4876 <p><tt class="docutils literal">comment_use_indent=false</tt> would generate this if a line is
4877 commented (e.g. with Ctrl-D):</p>
4878 <pre class="literal-block">
4879 # command_example();
4880 </pre>
4881 <p>Note: This setting only works for single line comments (like '//',
4882 '#' or ';').</p>
4883 <p class="last"><em>Example:</em> <tt class="docutils literal">comment_use_indent=true</tt></p>
4884 </dd>
4885 <dt>context_action_cmd</dt>
4886 <dd><p class="first">A command which can be executed on the current word or the current
4887 selection.</p>
4888 <p>Example usage: Open the API documentation for the
4889 current function call at the cursor position.</p>
4890 <p>The command can
4891 be set for every filetype or if not set, a global command will
4892 be used. The command itself can be specified without the full
4893 path, then it is searched in $PATH. But for security reasons,
4894 it is recommended to specify the full path to the command. The
4895 wildcard %s will be replaced by the current word at the cursor
4896 position or by the current selection.</p>
4897 <p>Hint: for PHP files the following could be quite useful:
4898 context_action_cmd=firefox &quot;<a class="reference external" href="http://www.php.net/%s">http://www.php.net/%s</a>&quot;</p>
4899 <p class="last"><em>Example:</em> <tt class="docutils literal">context_action_cmd=devhelp <span class="pre">-s</span> &quot;%s&quot;</tt></p>
4900 </dd>
4901 <dt>tag_parser</dt>
4902 <dd>The TagManager language name, e.g. &quot;C&quot;. Usually the same as the
4903 filetype name.</dd>
4904 </dl>
4905 <dl class="docutils" id="lexer-filetype">
4906 <dt>lexer_filetype</dt>
4907 <dd><p class="first">A filetype name to setup syntax highlighting from another filetype.
4908 This must not be recursive, i.e. it should be a filetype name that
4909 doesn't use the <em>lexer_filetype</em> key itself, e.g.:</p>
4910 <pre class="literal-block">
4911 lexer_filetype=C
4912 #lexer_filetype=C++
4913 </pre>
4914 <p class="last">The second line is wrong, because <tt class="docutils literal">filetypes.cpp</tt> itself uses
4915 <tt class="docutils literal">lexer_filetype=C</tt>, which would be recursive.</p>
4916 </dd>
4917 <dt>symbol_list_sort_mode</dt>
4918 <dd><p class="first">What the default symbol list sort order should be.</p>
4919 <table border="1" class="last docutils">
4920 <colgroup>
4921 <col width="12%" />
4922 <col width="88%" />
4923 </colgroup>
4924 <thead valign="bottom">
4925 <tr><th class="head">Value</th>
4926 <th class="head">Meaning</th>
4927 </tr>
4928 </thead>
4929 <tbody valign="top">
4930 <tr><td>0</td>
4931 <td>Sort tags by name</td>
4932 </tr>
4933 <tr><td>1</td>
4934 <td>Sort tags by appearance (line number)</td>
4935 </tr>
4936 </tbody>
4937 </table>
4938 </dd>
4939 </dl>
4940 <dl class="docutils" id="xml-indent-tags">
4941 <dt>xml_indent_tags</dt>
4942 <dd>If this setting is set to <em>true</em>, a new line after a line ending with an
4943 unclosed XML/HTML tag will be automatically indented. This only applies
4944 to filetypes for which the HTML or XML lexer is used. Such filetypes have
4945 this setting in their system configuration files.</dd>
4946 </dl>
4947 </div>
4948 <div class="section" id="indentation-section">
4949 <h4><a class="toc-backref" href="#id192">[indentation] section</a></h4>
4950 <p>This section allows definition of default indentation settings specific to
4951 the file type, overriding the ones configured in the preferences. This can
4952 be useful for file types requiring specific indentation settings (e.g. tabs
4953 only for Makefile). These settings don't override auto-detection if activated.</p>
4954 <dl class="docutils">
4955 <dt>width</dt>
4956 <dd>The forced indentation width.</dd>
4957 <dt>type</dt>
4958 <dd><p class="first">The forced indentation type.</p>
4959 <table border="1" class="last docutils">
4960 <colgroup>
4961 <col width="18%" />
4962 <col width="82%" />
4963 </colgroup>
4964 <thead valign="bottom">
4965 <tr><th class="head">Value</th>
4966 <th class="head">Indentation type</th>
4967 </tr>
4968 </thead>
4969 <tbody valign="top">
4970 <tr><td>0</td>
4971 <td>Spaces only</td>
4972 </tr>
4973 <tr><td>1</td>
4974 <td>Tabs only</td>
4975 </tr>
4976 <tr><td>2</td>
4977 <td>Mixed (tabs and spaces)</td>
4978 </tr>
4979 </tbody>
4980 </table>
4981 </dd>
4982 </dl>
4983 </div>
4984 <div class="section" id="build-settings-section">
4985 <h4><a class="toc-backref" href="#id193">[build_settings] section</a></h4>
4986 <p>As of Geany 0.19 this section is supplemented by the <a class="reference internal" href="#build-menu-section">[build-menu] section</a>.
4987 Values that are set in the [build-menu] section will override those in this section.</p>
4988 <dl class="docutils">
4989 <dt>error_regex</dt>
4990 <dd><p class="first">This is a GNU-style extended regular expression to parse a filename
4991 and line number from build output. If undefined, Geany will fall
4992 back to its default error message parsing.</p>
4993 <p>Only the first two matches will be read by Geany. Geany will look for
4994 a match that is purely digits, and use this for the line number. The
4995 remaining match will be used as the filename.</p>
4996 <p><em>Example:</em> <tt class="docutils literal"><span class="pre">error_regex=(.+):([0-9]+):[0-9]+</span></tt></p>
4997 <p class="last">This will parse a message such as:
4998 <tt class="docutils literal">test.py:7:24: E202 whitespace before ']'</tt></p>
4999 </dd>
5000 </dl>
5001 <p><strong>Build commands</strong></p>
5002 <p>If any build menu item settings have been configured in the Build Menu Commands
5003 dialog or the Build tab of the project preferences dialog then these
5004 settings are stored in the [build-menu] section and override the settings in
5005 this section for that item.</p>
5006 <dl class="docutils">
5007 <dt>compiler</dt>
5008 <dd><p class="first">This item specifies the command to compile source code files. But
5009 it is also possible to use it with interpreted languages like Perl
5010 or Python. With these filetypes you can use this option as a kind of
5011 syntax parser, which sends output to the compiler message window.</p>
5012 <p>You should quote the filename to also support filenames with
5013 spaces. The following wildcards for filenames are available:</p>
5014 <ul class="simple">
5015 <li>%f -- complete filename without path</li>
5016 <li>%e -- filename without path and without extension</li>
5017 </ul>
5018 <p class="last"><em>Example:</em> <tt class="docutils literal">compiler=gcc <span class="pre">-Wall</span> <span class="pre">-c</span> &quot;%f&quot;</tt></p>
5019 </dd>
5020 <dt>linker</dt>
5021 <dd><p class="first">This item specifies the command to link the file. If the file is not
5022 already compiled, it will be compiled while linking. The -o option
5023 is automatically added by Geany. This item works well with GNU gcc,
5024 but may be problematic with other compilers (esp. with the linker).</p>
5025 <p class="last"><em>Example:</em> <tt class="docutils literal">linker=gcc <span class="pre">-Wall</span> &quot;%f&quot;</tt></p>
5026 </dd>
5027 <dt>run_cmd</dt>
5028 <dd><p class="first">Use this item to execute your file. It has to have been built
5029 already. Use the %e wildcard to have only the name of the executable
5030 (i.e. without extension) or use the %f wildcard if you need the
5031 complete filename, e.g. for shell scripts.</p>
5032 <p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">run_cmd=&quot;./%e&quot;</span></tt></p>
5033 </dd>
5034 </dl>
5035 </div>
5036 </div>
5037 <div class="section" id="special-file-filetypes-common">
5038 <h3><a class="toc-backref" href="#id194">Special file filetypes.common</a></h3>
5039 <p>There is a special filetype definition file called
5040 filetypes.common. This file defines some general non-filetype-specific
5041 settings.</p>
5042 <p>You can open the user filetypes.common with the
5043 <em>Tools-&gt;Configuration Files-&gt;filetypes.common</em> menu item. This adds
5044 the default settings to the user file if the file doesn't exist.
5045 Alternatively the file can be created manually, adding only the
5046 settings you want to change. All missing settings will be read from
5047 the system file.</p>
5048 <div class="note">
5049 <p class="first admonition-title">Note</p>
5050 <p class="last">See the <a class="reference internal" href="#filetype-configuration">Filetype configuration</a> section for how to define styles.</p>
5051 </div>
5052 <div class="section" id="named-styles-section">
5053 <h4><a class="toc-backref" href="#id195">[named_styles] section</a></h4>
5054 <p>Named styles declared here can be used in the [styling] section of any
5055 filetypes.* file.</p>
5056 <p>For example:</p>
5057 <p><em>In filetypes.common</em>:</p>
5058 <pre class="literal-block">
5059 [named_styles]
5060 foo=0xc00000;0xffffff;false;true
5061 bar=foo
5062 </pre>
5063 <p><em>In filetypes.c</em>:</p>
5064 <pre class="literal-block">
5065 [styling]
5066 comment=foo
5067 </pre>
5068 <p>This saves copying and pasting the whole style definition into several
5069 different files.</p>
5070 <div class="note">
5071 <p class="first admonition-title">Note</p>
5072 <p class="last">You can define aliases for named styles, as shown with the <tt class="docutils literal">bar</tt>
5073 entry in the above example, but they must be declared after the
5074 original style.</p>
5075 </div>
5076 <p>This section can be overridden with color scheme files - see the <a class="reference internal" href="#color-schemes-menu">Color
5077 schemes menu</a>.</p>
5078 </div>
5079 <div class="section" id="id4">
5080 <h4><a class="toc-backref" href="#id196">[styling] section</a></h4>
5081 <dl class="docutils">
5082 <dt>default</dt>
5083 <dd><p class="first">This is the default style. It is used for styling files without a
5084 filetype set.</p>
5085 <p class="last"><em>Example:</em> <tt class="docutils literal">default=0x000000;0xffffff;false;false</tt></p>
5086 </dd>
5087 <dt>selection</dt>
5088 <dd><p class="first">The style for coloring selected text. The format is:</p>
5089 <ul class="simple">
5090 <li>Foreground color</li>
5091 <li>Background color</li>
5092 <li>Use foreground color</li>
5093 <li>Use background color</li>
5094 </ul>
5095 <p>The colors are only set if the 3rd or 4th argument is true. When
5096 the colors are not overridden, the default is a dark grey
5097 background with syntax highlighted foreground text.</p>
5098 <p class="last"><em>Example:</em> <tt class="docutils literal">selection=0xc0c0c0;0x00007F;true;true</tt></p>
5099 </dd>
5100 <dt>brace_good</dt>
5101 <dd><p class="first">The style for brace highlighting when a matching brace was found.</p>
5102 <p class="last"><em>Example:</em> <tt class="docutils literal">brace_good=0xff0000;0xFFFFFF;true;false</tt></p>
5103 </dd>
5104 <dt>brace_bad</dt>
5105 <dd><p class="first">The style for brace highlighting when no matching brace was found.</p>
5106 <p class="last"><em>Example:</em> <tt class="docutils literal">brace_bad=0x0000ff;0xFFFFFF;true;false</tt></p>
5107 </dd>
5108 <dt>caret</dt>
5109 <dd><p class="first">The style for coloring the caret(the blinking cursor). Only first
5110 and third argument is interpreted.
5111 Set the third argument to true to change the caret into a block caret.</p>
5112 <p class="last"><em>Example:</em> <tt class="docutils literal">caret=0x000000;0x0;false;false</tt></p>
5113 </dd>
5114 <dt>caret_width</dt>
5115 <dd><p class="first">The width for the caret(the blinking cursor). Only the first
5116 argument is interpreted. The width is specified in pixels with
5117 a maximum of three pixel. Use the width 0 to make the caret
5118 invisible.</p>
5119 <p class="last"><em>Example:</em> <tt class="docutils literal">caret=1;0;false;false</tt></p>
5120 </dd>
5121 <dt>current_line</dt>
5122 <dd><p class="first">The style for coloring the background of the current line. Only
5123 the second and third arguments are interpreted. The second argument
5124 is the background color. Use the third argument to enable or
5125 disable background highlighting for the current line (has to be
5126 true/false).</p>
5127 <p class="last"><em>Example:</em> <tt class="docutils literal">current_line=0x0;0xe5e5e5;true;false</tt></p>
5128 </dd>
5129 <dt>indent_guide</dt>
5130 <dd><p class="first">The style for coloring the indentation guides. Only the first and
5131 second arguments are interpreted.</p>
5132 <p class="last"><em>Example:</em> <tt class="docutils literal">indent_guide=0xc0c0c0;0xffffff;false;false</tt></p>
5133 </dd>
5134 <dt>white_space</dt>
5135 <dd><p class="first">The style for coloring the white space if it is shown. The first
5136 both arguments define the foreground and background colors, the
5137 third argument sets whether to use the defined foreground color
5138 or to use the color defined by each filetype for the white space.
5139 The fourth argument defines whether to use the background color.</p>
5140 <p class="last"><em>Example:</em> <tt class="docutils literal">white_space=0xc0c0c0;0xffffff;true;true</tt></p>
5141 </dd>
5142 <dt>margin_linenumber</dt>
5143 <dd>Line number margin foreground and background colors.</dd>
5144 </dl>
5145 <dl class="docutils" id="folding-settings">
5146 <dt>margin_folding</dt>
5147 <dd>Fold margin foreground and background colors.</dd>
5148 <dt>fold_symbol_highlight</dt>
5149 <dd>Highlight color of folding symbols.</dd>
5150 <dt>folding_style</dt>
5151 <dd><p class="first">The style of folding icons. Only first and second arguments are
5152 used.</p>
5153 <p>Valid values for the first argument are:</p>
5154 <ul class="simple">
5155 <li>1 -- for boxes</li>
5156 <li>2 -- for circles</li>
5157 <li>3 -- for arrows</li>
5158 <li>4 -- for +/-</li>
5159 </ul>
5160 <p>Valid values for the second argument are:</p>
5161 <ul class="simple">
5162 <li>0 -- for no lines</li>
5163 <li>1 -- for straight lines</li>
5164 <li>2 -- for curved lines</li>
5165 </ul>
5166 <p><em>Default:</em> <tt class="docutils literal">folding_style=1;1;</tt></p>
5167 <p class="last"><em>Arrows:</em> <tt class="docutils literal">folding_style=3;0;</tt></p>
5168 </dd>
5169 <dt>folding_horiz_line</dt>
5170 <dd><p class="first">Draw a thin horizontal line at the line where text is folded. Only
5171 first argument is used.</p>
5172 <p>Valid values for the first argument are:</p>
5173 <ul class="simple">
5174 <li>0 -- disable, do not draw a line</li>
5175 <li>1 -- draw the line above folded text</li>
5176 <li>2 -- draw the line below folded text</li>
5177 </ul>
5178 <p class="last"><em>Example:</em> <tt class="docutils literal">folding_horiz_line=0;0;false;false</tt></p>
5179 </dd>
5180 <dt>line_wrap_visuals</dt>
5181 <dd><p class="first">First argument: drawing of visual flags to indicate a line is wrapped.
5182 This is a bitmask of the values:</p>
5183 <ul class="simple">
5184 <li>0 -- No visual flags</li>
5185 <li>1 -- Visual flag at end of subline of a wrapped line</li>
5186 <li>2 -- Visual flag at begin of subline of a wrapped line. Subline is
5187 indented by at least 1 to make room for the flag.</li>
5188 </ul>
5189 <p>Second argument: wether the visual flags to indicate a line is wrapped
5190 are drawn near the border or near the text. This is a bitmask of the values:</p>
5191 <ul class="simple">
5192 <li>0 -- Visual flags drawn near border</li>
5193 <li>1 -- Visual flag at end of subline drawn near text</li>
5194 <li>2 -- Visual flag at begin of subline drawn near text</li>
5195 </ul>
5196 <p>Only first and second arguments are interpreted.</p>
5197 <p class="last"><em>Example:</em> <tt class="docutils literal">line_wrap_visuals=3;0;false;false</tt></p>
5198 </dd>
5199 <dt>line_wrap_indent</dt>
5200 <dd><p class="first">First argument: sets the size of indentation of sublines for wrapped lines
5201 in terms of the width of a space, only used when the second argument is <tt class="docutils literal">0</tt>.</p>
5202 <p>Second argument: wrapped sublines can be indented to the position of their
5203 first subline or one more indent level. Possible values:</p>
5204 <ul class="simple">
5205 <li>0 - Wrapped sublines aligned to left of window plus amount set by the first argument</li>
5206 <li>1 - Wrapped sublines are aligned to first subline indent (use the same indentation)</li>
5207 <li>2 - Wrapped sublines are aligned to first subline indent plus one more level of indentation</li>
5208 </ul>
5209 <p>Only first and second arguments are interpreted.</p>
5210 <p class="last"><em>Example:</em> <tt class="docutils literal">line_wrap_indent=0;1;false;false</tt></p>
5211 </dd>
5212 <dt>translucency</dt>
5213 <dd><p class="first">Translucency for the current line (first argument) and the selection
5214 (second argument). Values between 0 and 256 are accepted.</p>
5215 <p>Note for Windows 95, 98 and ME users:
5216 keep this value at 256 to disable translucency otherwise Geany might crash.</p>
5217 <p>Only the first and second arguments are interpreted.</p>
5218 <p class="last"><em>Example:</em> <tt class="docutils literal">translucency=256;256;false;false</tt></p>
5219 </dd>
5220 <dt>marker_line</dt>
5221 <dd><p class="first">The style for a highlighted line (e.g when using Goto line or goto tag).
5222 The foreground color (first argument) is only used when the Markers margin
5223 is enabled (see View menu).</p>
5224 <p>Only the first and second arguments are interpreted.</p>
5225 <p class="last"><em>Example:</em> <tt class="docutils literal">marker_line=0x000000;0xffff00;false;false</tt></p>
5226 </dd>
5227 <dt>marker_search</dt>
5228 <dd><p class="first">The style for a marked search results (when using &quot;Mark&quot; in Search dialogs).
5229 The second argument sets the background color for the drawn rectangle.</p>
5230 <p>Only the second argument is interpreted.</p>
5231 <p class="last"><em>Example:</em> <tt class="docutils literal">marker_search=0x000000;0xb8f4b8;false;false</tt></p>
5232 </dd>
5233 <dt>marker_mark</dt>
5234 <dd><p class="first">The style for a marked line (e.g when using the &quot;Toggle Marker&quot; keybinding
5235 (Ctrl-M)). The foreground color (first argument) is only used
5236 when the Markers margin is enabled (see View menu).</p>
5237 <p>Only the first and second arguments are interpreted.</p>
5238 <p class="last"><em>Example:</em> <tt class="docutils literal">marker_mark=0x000000;0xb8f4b8;false;false</tt></p>
5239 </dd>
5240 <dt>marker_translucency</dt>
5241 <dd><p class="first">Translucency for the line marker (first argument) and the search marker
5242 (second argument). Values between 0 and 256 are accepted.</p>
5243 <p>Note for Windows 95, 98 and ME users:
5244 keep this value at 256 to disable translucency otherwise Geany might crash.</p>
5245 <p>Only the first and second arguments are interpreted.</p>
5246 <p class="last"><em>Example:</em> <tt class="docutils literal">marker_translucency=256;256;false;false</tt></p>
5247 </dd>
5248 <dt>line_height</dt>
5249 <dd><p class="first">Amount of space to be drawn above and below the line's baseline.
5250 The first argument defines the amount of space to be drawn above the line, the second
5251 argument defines the amount of space to be drawn below.</p>
5252 <p>Only the first and second arguments are interpreted.</p>
5253 <p class="last"><em>Example:</em> <tt class="docutils literal">line_height=0;0;false;false</tt></p>
5254 </dd>
5255 <dt>calltips</dt>
5256 <dd><p class="first">The style for coloring the calltips. The first two arguments
5257 define the foreground and background colors, the third and fourth
5258 arguments set whether to use the defined colors.</p>
5259 <p class="last"><em>Example:</em> <tt class="docutils literal">calltips=0xc0c0c0;0xffffff;false;false</tt></p>
5260 </dd>
5261 </dl>
5262 </div>
5263 <div class="section" id="id5">
5264 <h4><a class="toc-backref" href="#id197">[settings] section</a></h4>
5265 <dl class="docutils">
5266 <dt>whitespace_chars</dt>
5267 <dd><p class="first">Characters to treat as whitespace. These characters are ignored
5268 when moving, selecting and deleting across word boundaries
5269 (see <a class="reference internal" href="#scintilla-keyboard-commands">Scintilla keyboard commands</a>).</p>
5270 <p>This should include space (\s) and tab (\t).</p>
5271 <p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">whitespace_chars=\s\t!\&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?&#64;[\\]^`{|}~</span></tt></p>
5272 </dd>
5273 </dl>
5274 </div>
5275 </div>
5276 </div>
5277 <div class="section" id="filetype-extensions">
5278 <h2><a class="toc-backref" href="#id198">Filetype extensions</a></h2>
5279 <p>To change the default filetype extension used when saving a new file,
5280 see <a class="reference internal" href="#filetype-definition-files">Filetype definition files</a>.</p>
5281 <p>You can override the list of file extensions that Geany uses to detect
5282 filetypes using the user <tt class="docutils literal">filetype_extensions.conf</tt> file. Use the
5283 <em>Tools-&gt;Configuration Files-&gt;filetype_extensions.conf</em> menu item. See
5284 also <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a>.</p>
5285 <p>You should only list lines for filetype extensions that you want to
5286 override in the user configuration file and remove or comment out
5287 others. The patterns are listed after the <tt class="docutils literal">=</tt> sign, using a
5288 semi-colon separated list of patterns which should be matched for
5289 that filetype.</p>
5290 <p>For example, to override the filetype extensions for Make, the file
5291 should look like:</p>
5292 <pre class="literal-block">
5293 [Extensions]
5294 Make=Makefile*;*.mk;Buildfile;
5295 </pre>
5296 </div>
5297 <div class="section" id="filetype-group-membership">
5298 <h2><a class="toc-backref" href="#id199">Filetype group membership</a></h2>
5299 <p>Group membership is also stored in <tt class="docutils literal">filetype_extensions.conf</tt>. This
5300 file is used to store information Geany needs at startup, whereas the
5301 separate filetype definition files hold information only needed when
5302 a document with their filetype is used.</p>
5303 <p>The format looks like:</p>
5304 <pre class="literal-block">
5305 [Groups]
5306 Programming=C;C++;
5307 Script=Perl;Python;
5308 Markup=HTML;XML;
5309 Misc=Diff;Conf;
5310 None=None;
5311 </pre>
5312 <p>The key names cannot be configured.</p>
5313 <div class="note">
5314 <p class="first admonition-title">Note</p>
5315 <p class="last">Group membership is only read at startup.</p>
5316 </div>
5317 </div>
5318 <div class="section" id="preferences-file-format">
5319 <h2><a class="toc-backref" href="#id200">Preferences file format</a></h2>
5320 <p>The user preferences file <tt class="docutils literal">geany.conf</tt> holds settings for all the items configured
5321 in the preferences dialog. This file should not be edited while Geany is running
5322 as the file will be overwritten when the preferences in Geany are changed or Geany
5323 is quit.</p>
5324 <div class="section" id="build-menu-section">
5325 <h3><a class="toc-backref" href="#id201">[build-menu] section</a></h3>
5326 <p>The [build-menu] section contains the configuration of the build menu.
5327 This section can occur in filetype, preferences and project files and
5328 always has the format described here. Different menu items are loaded
5329 from different files, see the table in the <a class="reference internal" href="#build-menu-configuration">Build Menu Configuration</a>
5330 section for details. All the settings can be configured from the dialogs
5331 except the execute command in filetype files and filetype definitions in
5332 the project file, so these are the only ones which need hand editing.</p>
5333 <p>The build-menu section stores one entry for each setting for each menu item that
5334 is configured. The keys for these settings have the format:</p>
5335 <blockquote>
5336 <tt class="docutils literal">GG_NN_FF</tt></blockquote>
5337 <p>where:</p>
5338 <ul class="simple">
5339 <li>GG - is the menu item group,<ul>
5340 <li>FT for filetype</li>
5341 <li>NF for independent (non-filetype)</li>
5342 <li>EX for execute</li>
5343 </ul>
5344 </li>
5345 <li>NN - is a two decimal digit number of the item within the group,
5346 starting at 00</li>
5347 <li>FF - is the field,<ul>
5348 <li>LB for label</li>
5349 <li>CM for command</li>
5350 <li>WD for working directory</li>
5351 </ul>
5352 </li>
5353 </ul>
5354 </div>
5355 </div>
5356 <div class="section" id="project-file-format">
5357 <h2><a class="toc-backref" href="#id202">Project file format</a></h2>
5358 <p>The project file contains project related settings and possibly a
5359 record of the current session files.</p>
5360 <div class="section" id="build-menu-additions">
5361 <h3><a class="toc-backref" href="#id203">[build-menu] additions</a></h3>
5362 <p>The project file also can have extra fields in the [build-menu] section
5363 in addition to those listed in <a class="reference internal" href="#build-menu-section">[build-menu] section</a> above.</p>
5364 <p>When filetype menu items are configured for the project they are stored
5365 in the project file.</p>
5366 <p>The <tt class="docutils literal">filetypes</tt> entry is a list of the filetypes which exist in the
5367 project file.</p>
5368 <p>For each filetype the entries for that filetype have the format defined in
5369 <a class="reference internal" href="#build-menu-section">[build-menu] section</a> but the key is prefixed by the name of the filetype
5370 as it appears in the <tt class="docutils literal">filetypes</tt> entry, eg the entry for the label of
5371 filetype menu item 0 for the C filetype would be</p>
5372 <blockquote>
5373 <tt class="docutils literal">CFT_00_LB=Label</tt></blockquote>
5374 </div>
5375 </div>
5376 <div class="section" id="templates">
5377 <h2><a class="toc-backref" href="#id204">Templates</a></h2>
5378 <p>Geany supports the following templates:</p>
5379 <ul class="simple">
5380 <li>ChangeLog entry</li>
5381 <li>File header</li>
5382 <li>Function description</li>
5383 <li>Short GPL notice</li>
5384 <li>Short BSD notice</li>
5385 <li>File templates</li>
5386 </ul>
5387 <p>To use these templates, just open the Edit menu or open the popup menu
5388 by right-clicking in the editor widget, and choose &quot;Insert Comments&quot;
5389 and insert templates as you want.</p>
5390 <p>Some templates (like File header or ChangeLog entry) will always be
5391 inserted at the top of the file.</p>
5392 <p>To insert a function description, the cursor must be inside
5393 of the function, so that the function name can be determined
5394 automatically. The description will be positioned correctly one line
5395 above the function, just check it out. If the cursor is not inside
5396 of a function or the function name cannot be determined, the inserted
5397 function description won't contain the correct function name but &quot;unknown&quot;
5398 instead.</p>
5399 <div class="note">
5400 <p class="first admonition-title">Note</p>
5401 <p class="last">Geany automatically reloads template information when it notices you
5402 save a file in the user's template configuration directory. You can
5403 also force this by selecting <em>Tools-&gt;Reload Configuration</em>.</p>
5404 </div>
5405 <div class="section" id="template-meta-data">
5406 <h3><a class="toc-backref" href="#id205">Template meta data</a></h3>
5407 <p>Meta data can be used with all templates, but by default user set
5408 meta data is only used for the ChangeLog and File header templates.</p>
5409 <p>In the configuration dialog you can find a tab &quot;Templates&quot; (see
5410 <a class="reference internal" href="#template-preferences">Template preferences</a>). You can define the default values
5411 which will be inserted in the templates.</p>
5412 </div>
5413 <div class="section" id="file-templates">
5414 <h3><a class="toc-backref" href="#id206">File templates</a></h3>
5415 <p>File templates are templates used as the basis of a new file. To
5416 use them, choose the <em>New (with Template)</em> menu item from the <em>File</em>
5417 menu.</p>
5418 <p>By default, file templates are installed for some filetypes. Custom
5419 file templates can be added by creating the appropriate template file. You can
5420 also edit the default file templates.</p>
5421 <p>The file's contents are just the text to place in the document, with
5422 optional template wildcards like <tt class="docutils literal">{fileheader}</tt>. The fileheader
5423 wildcard can be placed anywhere, but it's usually put on the first
5424 line of the file, followed by a blank line.</p>
5425 <div class="section" id="adding-file-templates">
5426 <h4><a class="toc-backref" href="#id207">Adding file templates</a></h4>
5427 <p>File templates are read from <tt class="docutils literal">templates/files</tt> under the
5428 <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a>.</p>
5429 <p>The filetype to use is detected from the template file's extension, if
5430 any. For example, creating a file <tt class="docutils literal">module.c</tt> would add a menu item
5431 which created a new document with the filetype set to 'C'.</p>
5432 <p>The template file is read from disk when the corresponding menu item is
5433 clicked.</p>
5434 </div>
5435 </div>
5436 <div class="section" id="customizing-templates">
5437 <h3><a class="toc-backref" href="#id208">Customizing templates</a></h3>
5438 <p>Each template can be customized to your needs. The templates are
5439 stored in the <tt class="docutils literal"><span class="pre">~/.config/geany/templates/</span></tt> directory (see the section called
5440 <a class="reference internal" href="#command-line-options">Command line options</a> for further information about the configuration
5441 directory). Just open the desired template with an editor (ideally,
5442 Geany ;-) ) and edit the template to your needs. There are some
5443 wildcards which will be automatically replaced by Geany at startup.</p>
5444 <div class="section" id="template-wildcards">
5445 <h4><a class="toc-backref" href="#id209">Template wildcards</a></h4>
5446 <p>All wildcards must be enclosed by &quot;{&quot; and &quot;}&quot;, e.g. {date}.</p>
5447 <p><strong>Wildcards for character escaping</strong></p>
5448 <table border="1" class="docutils">
5449 <colgroup>
5450 <col width="14%" />
5451 <col width="46%" />
5452 <col width="40%" />
5453 </colgroup>
5454 <thead valign="bottom">
5455 <tr><th class="head">Wildcard</th>
5456 <th class="head">Description</th>
5457 <th class="head">Available in</th>
5458 </tr>
5459 </thead>
5460 <tbody valign="top">
5461 <tr><td>ob</td>
5462 <td>{ Opening Brace (used to prevent other
5463 wildcards being expanded).</td>
5464 <td>file templates, file header, snippets.</td>
5465 </tr>
5466 <tr><td>cb</td>
5467 <td>} Closing Brace.</td>
5468 <td>file templates, file header, snippets.</td>
5469 </tr>
5470 <tr><td>pc</td>
5471 <td>% Percent (used to escape e.g. %block% in
5472 snippets).</td>
5473 <td>snippets.</td>
5474 </tr>
5475 </tbody>
5476 </table>
5477 <p><strong>Global wildcards</strong></p>
5478 <p>These are configurable, see <a class="reference internal" href="#template-preferences">Template preferences</a>.</p>
5479 <table border="1" class="docutils">
5480 <colgroup>
5481 <col width="14%" />
5482 <col width="46%" />
5483 <col width="40%" />
5484 </colgroup>
5485 <thead valign="bottom">
5486 <tr><th class="head">Wildcard</th>
5487 <th class="head">Description</th>
5488 <th class="head">Available in</th>
5489 </tr>
5490 </thead>
5491 <tbody valign="top">
5492 <tr><td>developer</td>
5493 <td>The name of the developer.</td>
5494 <td>file templates, file header,
5495 function description, ChangeLog entry,
5496 bsd, gpl, snippets.</td>
5497 </tr>
5498 <tr><td>initial</td>
5499 <td>The developer's initials, e.g. &quot;ET&quot; for
5500 Enrico Tröger or &quot;JFD&quot; for John Foobar Doe.</td>
5501 <td>file templates, file header,
5502 function description, ChangeLog entry,
5503 bsd, gpl, snippets.</td>
5504 </tr>
5505 <tr><td>mail</td>
5506 <td>The email address of the developer.</td>
5507 <td>file templates, file header,
5508 function description, ChangeLog entry,
5509 bsd, gpl, snippets.</td>
5510 </tr>
5511 <tr><td>company</td>
5512 <td>The company the developer is working for.</td>
5513 <td>file templates, file header,
5514 function description, ChangeLog entry,
5515 bsd, gpl, snippets.</td>
5516 </tr>
5517 <tr><td>version</td>
5518 <td>The initial version of a new file.</td>
5519 <td>file templates, file header,
5520 function description, ChangeLog entry,
5521 bsd, gpl, snippets.</td>
5522 </tr>
5523 </tbody>
5524 </table>
5525 <p><strong>Date &amp; time wildcards</strong></p>
5526 <p>The format for these wildcards can be changed in the preferences
5527 dialog, see <a class="reference internal" href="#template-preferences">Template preferences</a>. You can use any conversion
5528 specifiers which can be used with the ANSI C strftime function.
5529 For details please see <a class="reference external" href="http://man.cx/strftime">http://man.cx/strftime</a>.</p>
5530 <table border="1" class="docutils">
5531 <colgroup>
5532 <col width="14%" />
5533 <col width="46%" />
5534 <col width="40%" />
5535 </colgroup>
5536 <thead valign="bottom">
5537 <tr><th class="head">Wildcard</th>
5538 <th class="head">Description</th>
5539 <th class="head">Available in</th>
5540 </tr>
5541 </thead>
5542 <tbody valign="top">
5543 <tr><td>year</td>
5544 <td>The current year. Default format is: YYYY.</td>
5545 <td>file templates, file header,
5546 function description, ChangeLog entry,
5547 bsd, gpl, snippets.</td>
5548 </tr>
5549 <tr><td>date</td>
5550 <td>The current date. Default format:
5551 YYYY-MM-DD.</td>
5552 <td>file templates, file header,
5553 function description, ChangeLog entry,
5554 bsd, gpl, snippets.</td>
5555 </tr>
5556 <tr><td>datetime</td>
5557 <td>The current date and time. Default format:
5558 DD.MM.YYYY HH:mm:ss ZZZZ.</td>
5559 <td>file templates, file header,
5560 function description, ChangeLog entry,
5561 bsd, gpl, snippets.</td>
5562 </tr>
5563 </tbody>
5564 </table>
5565 <p><strong>Dynamic wildcards</strong></p>
5566 <table border="1" class="docutils">
5567 <colgroup>
5568 <col width="14%" />
5569 <col width="46%" />
5570 <col width="40%" />
5571 </colgroup>
5572 <thead valign="bottom">
5573 <tr><th class="head">Wildcard</th>
5574 <th class="head">Description</th>
5575 <th class="head">Available in</th>
5576 </tr>
5577 </thead>
5578 <tbody valign="top">
5579 <tr><td>untitled</td>
5580 <td>The string &quot;untitled&quot; (this will be
5581 translated to your locale), used in
5582 file templates.</td>
5583 <td>file templates, file header,
5584 function description, ChangeLog entry,
5585 bsd, gpl, snippets.</td>
5586 </tr>
5587 <tr><td>geanyversion</td>
5588 <td>The actual Geany version, e.g.
5589 &quot;Geany 1.22&quot;.</td>
5590 <td>file templates, file header,
5591 function description, ChangeLog entry,
5592 bsd, gpl, snippets.</td>
5593 </tr>
5594 <tr><td>filename</td>
5595 <td>The filename of the current file.
5596 For new files, it's only replaced when
5597 first saving if found on the first 3 lines
5598 of the file.</td>
5599 <td>file header, snippets, file
5600 templates.</td>
5601 </tr>
5602 <tr><td>project</td>
5603 <td>The current project's name, if any.</td>
5604 <td>file header, snippets, file templates.</td>
5605 </tr>
5606 <tr><td>description</td>
5607 <td>The current project's description, if any.</td>
5608 <td>file header, snippets, file templates.</td>
5609 </tr>
5610 <tr><td>functionname</td>
5611 <td>The function name of the function at the
5612 cursor position. This wildcard will only be
5613 replaced in the function description
5614 template.</td>
5615 <td>function description.</td>
5616 </tr>
5617 <tr><td>command:path</td>
5618 <td>Executes the specified command and replace
5619 the wildcard with the command's standard
5620 output. See <a class="reference internal" href="#special-command-wildcard">Special {command:} wildcard</a>
5621 for details.</td>
5622 <td>file templates, file header,
5623 function description, ChangeLog entry,
5624 bsd, gpl, snippets.</td>
5625 </tr>
5626 </tbody>
5627 </table>
5628 <p><strong>Template insertion wildcards</strong></p>
5629 <table border="1" class="docutils">
5630 <colgroup>
5631 <col width="14%" />
5632 <col width="46%" />
5633 <col width="40%" />
5634 </colgroup>
5635 <thead valign="bottom">
5636 <tr><th class="head">Wildcard</th>
5637 <th class="head">Description</th>
5638 <th class="head">Available in</th>
5639 </tr>
5640 </thead>
5641 <tbody valign="top">
5642 <tr><td>gpl</td>
5643 <td>This wildcard inserts a short GPL notice.</td>
5644 <td>file header.</td>
5645 </tr>
5646 <tr><td>bsd</td>
5647 <td>This wildcard inserts a BSD licence notice.</td>
5648 <td>file header.</td>
5649 </tr>
5650 <tr><td>fileheader</td>
5651 <td>The file header template. This wildcard
5652 will only be replaced in file templates.</td>
5653 <td>snippets, file templates.</td>
5654 </tr>
5655 </tbody>
5656 </table>
5657 <div class="section" id="special-command-wildcard">
5658 <h5><a class="toc-backref" href="#id210">Special {command:} wildcard</a></h5>
5659 <p>The {command:} wildcard is a special one because it can execute
5660 a specified command and put the command's output (stdout) into
5661 the template.</p>
5662 <p>Example:</p>
5663 <pre class="literal-block">
5664 {command:uname -a}
5665 </pre>
5666 <p>will result in:</p>
5667 <pre class="literal-block">
5668 Linux localhost 2.6.9-023stab046.2-smp #1 SMP Mon Dec 10 15:04:55 MSK 2007 x86_64 GNU/Linux
5669 </pre>
5670 <p>Using this wildcard you can insert nearly any arbitrary text into the
5671 template.</p>
5672 <p>In the environment of the executed command the variables
5673 <tt class="docutils literal">GEANY_FILENAME</tt>, <tt class="docutils literal">GEANY_FILETYPE</tt> and <tt class="docutils literal">GEANY_FUNCNAME</tt> are set.
5674 The value of these variables is filled in only if Geany knows about it.
5675 For example, <tt class="docutils literal">GEANY_FUNCNAME</tt> is only filled within the function
5676 description template. However, these variables are <tt class="docutils literal">always</tt> set,
5677 just maybe with an empty value.
5678 You can easily access them e.g. within an executed shell script using:</p>
5679 <pre class="literal-block">
5680 $GEANY_FILENAME
5681 </pre>
5682 <div class="note">
5683 <p class="first admonition-title">Note</p>
5684 <p class="last">If the specified command could not be found or not executed, the wildcard is substituted
5685 by an empty string. In such cases, you can find the occurred error message on Geany's
5686 standard error and in the Help-&gt;Debug Messages dialog.</p>
5687 </div>
5688 </div>
5689 </div>
5690 </div>
5691 </div>
5692 <div class="section" id="customizing-the-toolbar">
5693 <h2><a class="toc-backref" href="#id211">Customizing the toolbar</a></h2>
5694 <p>You can add, remove and reorder the elements in the toolbar by using
5695 the toolbar editor, or by manually editing the configuration file
5696 <tt class="docutils literal">ui_toolbar.xml</tt>.</p>
5697 <p>The toolbar editor can be opened from the preferences editor on the Toolbar tab or
5698 by right-clicking on the toolbar itself and choosing it from the menu.</p>
5699 <div class="section" id="manually-editing-the-toolbar-layout">
5700 <h3><a class="toc-backref" href="#id212">Manually editing the toolbar layout</a></h3>
5701 <p>To override the system-wide configuration file, copy it to your user
5702 configuration directory (see <a class="reference internal" href="#configuration-file-paths">Configuration file paths</a>).</p>
5703 <p>For example:</p>
5704 <pre class="literal-block">
5705 % cp /usr/local/share/geany/ui_toolbar.xml /home/username/.config/geany/
5706 </pre>
5707 <p>Then edit it and add any of the available elements listed in the file or remove
5708 any of the existing elements. Of course, you can also reorder the elements as
5709 you wish and add or remove additional separators.
5710 This file must be valid XML, otherwise the global toolbar UI definition
5711 will be used instead.</p>
5712 <p>Your changes are applied once you save the file.</p>
5713 <div class="note">
5714 <p class="first admonition-title">Note</p>
5715 <ol class="last arabic simple">
5716 <li>You cannot add new actions which are not listed below.</li>
5717 <li>Everything you add or change must be inside the /ui/toolbar/ path.</li>
5718 </ol>
5719 </div>
5720 </div>
5721 <div class="section" id="available-toolbar-elements">
5722 <h3><a class="toc-backref" href="#id213">Available toolbar elements</a></h3>
5723 <table border="1" class="docutils">
5724 <colgroup>
5725 <col width="19%" />
5726 <col width="81%" />
5727 </colgroup>
5728 <thead valign="bottom">
5729 <tr><th class="head">Element name</th>
5730 <th class="head">Description</th>
5731 </tr>
5732 </thead>
5733 <tbody valign="top">
5734 <tr><td>New</td>
5735 <td>Create a new file</td>
5736 </tr>
5737 <tr><td>Open</td>
5738 <td>Open an existing file</td>
5739 </tr>
5740 <tr><td>Save</td>
5741 <td>Save the current file</td>
5742 </tr>
5743 <tr><td>SaveAll</td>
5744 <td>Save all open files</td>
5745 </tr>
5746 <tr><td>Reload</td>
5747 <td>Reload the current file from disk</td>
5748 </tr>
5749 <tr><td>Close</td>
5750 <td>Close the current file</td>
5751 </tr>
5752 <tr><td>CloseAll</td>
5753 <td>Close all open files</td>
5754 </tr>
5755 <tr><td>Print</td>
5756 <td>Print the current file</td>
5757 </tr>
5758 <tr><td>Cut</td>
5759 <td>Cut the current selection</td>
5760 </tr>
5761 <tr><td>Copy</td>
5762 <td>Copy the current selection</td>
5763 </tr>
5764 <tr><td>Paste</td>
5765 <td>Paste the contents of the clipboard</td>
5766 </tr>
5767 <tr><td>Delete</td>
5768 <td>Delete the current selection</td>
5769 </tr>
5770 <tr><td>Undo</td>
5771 <td>Undo the last modification</td>
5772 </tr>
5773 <tr><td>Redo</td>
5774 <td>Redo the last modification</td>
5775 </tr>
5776 <tr><td>NavBack</td>
5777 <td>Navigate back a location</td>
5778 </tr>
5779 <tr><td>NavFor</td>
5780 <td>Navigate forward a location</td>
5781 </tr>
5782 <tr><td>Compile</td>
5783 <td>Compile the current file</td>
5784 </tr>
5785 <tr><td>Build</td>
5786 <td>Build the current file, includes a submenu for Make commands. Geany
5787 remembers the last chosen action from the submenu and uses this as default
5788 action when the button itself is clicked.</td>
5789 </tr>
5790 <tr><td>Run</td>
5791 <td>Run or view the current file</td>
5792 </tr>
5793 <tr><td>Color</td>
5794 <td>Open a color chooser dialog, to interactively pick colors from a palette</td>
5795 </tr>
5796 <tr><td>ZoomIn</td>
5797 <td>Zoom in the text</td>
5798 </tr>
5799 <tr><td>ZoomOut</td>
5800 <td>Zoom out the text</td>
5801 </tr>
5802 <tr><td>UnIndent</td>
5803 <td>Decrease indentation</td>
5804 </tr>
5805 <tr><td>Indent</td>
5806 <td>Increase indentation</td>
5807 </tr>
5808 <tr><td>Replace</td>
5809 <td>Replace text in the current document</td>
5810 </tr>
5811 <tr><td>SearchEntry</td>
5812 <td>The search field belonging to the 'Search' element (can be used alone)</td>
5813 </tr>
5814 <tr><td>Search</td>
5815 <td>Find the entered text in the current file (only useful if you also
5816 use 'SearchEntry')</td>
5817 </tr>
5818 <tr><td>GotoEntry</td>
5819 <td>The goto field belonging to the 'Goto' element (can be used alone)</td>
5820 </tr>
5821 <tr><td>Goto</td>
5822 <td>Jump to the entered line number (only useful if you also use 'GotoEntry')</td>
5823 </tr>
5824 <tr><td>Preferences</td>
5825 <td>Show the preferences dialog</td>
5826 </tr>
5827 <tr><td>Quit</td>
5828 <td>Quit Geany</td>
5829 </tr>
5830 </tbody>
5831 </table>
5832 </div>
5833 </div>
5834 </div>
5835 <div class="section" id="plugin-documentation">
5836 <h1><a class="toc-backref" href="#id214">Plugin documentation</a></h1>
5837 <div class="section" id="html-characters">
5838 <h2><a class="toc-backref" href="#id215">HTML Characters</a></h2>
5839 <p>The HTML Characters plugin helps when working with special
5840 characters in XML/HTML, e.g. German Umlauts ü and ä.</p>
5841 <div class="section" id="insert-entity-dialog">
5842 <h3><a class="toc-backref" href="#id216">Insert entity dialog</a></h3>
5843 <p>When the plugin is enabled, you can insert special character
5844 entities using <em>Tools-&gt;Insert Special HTML Characters</em>.</p>
5845 <p>This opens up a dialog where you can find a huge amount of special
5846 characters sorted by category that you might like to use inside your
5847 document. You can expand and collapse the categories by clicking on
5848 the little arrow on the left hand side. Once you have found the
5849 desired character click on it and choose &quot;Insert&quot;. This will insert
5850 the entity for the character at the current cursor position. You
5851 might also like to double click the chosen entity instead.</p>
5852 </div>
5853 <div class="section" id="replace-special-chars-by-its-entity">
5854 <h3><a class="toc-backref" href="#id217">Replace special chars by its entity</a></h3>
5855 <p>To help make a XML/HTML document valid the plugin supports
5856 replacement of special chars known by the plugin. Both bulk
5857 replacement and immediate replacement during typing are supported.</p>
5858 <dl class="docutils">
5859 <dt>A few characters will not be replaced. These are</dt>
5860 <dd><ul class="first last simple">
5861 <li>&quot;</li>
5862 <li>&amp;</li>
5863 <li>&lt;</li>
5864 <li>&gt;</li>
5865 <li>(<cite>&amp;nbsp;</cite>)</li>
5866 </ul>
5867 </dd>
5868 </dl>
5869 <div class="section" id="at-typing-time">
5870 <h4><a class="toc-backref" href="#id218">At typing time</a></h4>
5871 <p>You can activate/deactivate this feature using the <em>Tools-&gt;HTML
5872 Replacement-&gt;Auto-replace Special Characters</em> menu item. If it's
5873 activated, all special characters (beside the given exceptions from
5874 above) known by the plugin will be replaced by their entities.</p>
5875 <p>You could also set a keybinding for the plugin to toggle the status
5876 of this feature.</p>
5877 </div>
5878 <div class="section" id="bulk-replacement">
5879 <h4><a class="toc-backref" href="#id219">Bulk replacement</a></h4>
5880 <p>After inserting a huge amount of text, e.g. by using copy &amp; paste, the
5881 plugin allows bulk replacement of all known characters (beside the
5882 mentioned exceptions). You can find the function under the same
5883 menu at <em>Tools-&gt;HTML Replacement-&gt;Replace Characters in Selection</em>, or
5884 configure a keybinding for the plugin.</p>
5885 </div>
5886 </div>
5887 </div>
5888 <div class="section" id="save-actions">
5889 <h2><a class="toc-backref" href="#id220">Save Actions</a></h2>
5890 <div class="section" id="instant-save">
5891 <h3><a class="toc-backref" href="#id221">Instant Save</a></h3>
5892 <p>This plugin sets on every new file (<em>File-&gt;New</em> or <em>File-&gt;New (with template)</em>)
5893 a randomly chosen filename and set its filetype appropriate to the used template
5894 or when no template was used, to a configurable default filetype.
5895 This enables you to quickly compile, build and/or run the new file without the
5896 need to give it an explicit filename using the Save As dialog. This might be
5897 useful when you often create new files just for testing some code or something
5898 similar.</p>
5899 </div>
5900 <div class="section" id="backup-copy">
5901 <h3><a class="toc-backref" href="#id222">Backup Copy</a></h3>
5902 <p>This plugin creates a backup copy of the current file in Geany when it is
5903 saved. You can specify the directory where the backup copy is saved and
5904 you can configure the automatically added extension in the configure dialog
5905 in Geany's plugin manager.</p>
5906 <p>After the plugin was loaded in Geany's plugin manager, every file is
5907 copied into the configured backup directory when the file is saved in Geany.</p>
5908 </div>
5909 </div>
5910 </div>
5911 <div class="section" id="contributing-to-this-document">
5912 <h1><a class="toc-backref" href="#id223">Contributing to this document</a></h1>
5913 <p>This document (<tt class="docutils literal">geany.txt</tt>) is written in <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a>
5914 (or &quot;reST&quot;). The source file for it is located in Geany's <tt class="docutils literal">doc</tt>
5915 subdirectory. If you intend on making changes, you should grab the
5916 source right from SVN to make sure you've got the newest version. After
5917 editing the file, to build the HTML document to see how your changes
5918 look, run &quot;<tt class="docutils literal">make doc</tt>&quot; in the subdirectory <tt class="docutils literal">doc</tt> of Geany's source
5919 directory. This regenerates the <tt class="docutils literal">geany.html</tt> file. To generate a PDF
5920 file, use the command &quot;<tt class="docutils literal">make pdf</tt>&quot; which should generate a file called
5921 geany-1.22.pdf.</p>
5922 <p>After you are happy with your changes, create a patch:</p>
5923 <pre class="literal-block">
5924 % svn diff geany.txt &gt; foo.patch
5925 </pre>
5926 <p>and then submit that file to the mailing list for review.</p>
5927 <p>Note, you will need the Python docutils software package installed
5928 to build the docs. The package is named <tt class="docutils literal"><span class="pre">python-docutils</span></tt> on Debian
5929 and Fedora systems.</p>
5930 </div>
5931 <div class="section" id="scintilla-keyboard-commands">
5932 <h1><a class="toc-backref" href="#id224">Scintilla keyboard commands</a></h1>
5933 <p>Copyright © 1998, 2006 Neil Hodgson &lt;neilh(at)scintilla(dot)org&gt;</p>
5934 <p>This appendix is distributed under the terms of the License for
5935 Scintilla and SciTE. A copy of this license can be found in the file
5936 <tt class="docutils literal">scintilla/License.txt</tt> included with the source code of this
5937 program and in the appendix of this document. See <a class="reference internal" href="#license-for-scintilla-and-scite">License for
5938 Scintilla and SciTE</a>.</p>
5939 <p>20 June 2006</p>
5940 <div class="section" id="keyboard-commands">
5941 <h2><a class="toc-backref" href="#id225">Keyboard commands</a></h2>
5942 <p>Keyboard commands for Scintilla mostly follow common Windows and GTK+
5943 conventions. All move keys (arrows, page up/down, home and end)
5944 allows to extend or reduce the stream selection when holding the
5945 Shift key, and the rectangular selection when holding the Shift and
5946 Ctrl keys. Some keys may not be available with some national keyboards
5947 or because they are taken by the system such as by a window manager
5948 or GTK. Keyboard equivalents of menu commands are listed in the
5949 menus. Some less common commands with no menu equivalent are:</p>
5950 <table border="1" class="docutils">
5951 <colgroup>
5952 <col width="67%" />
5953 <col width="33%" />
5954 </colgroup>
5955 <thead valign="bottom">
5956 <tr><th class="head">Action</th>
5957 <th class="head">Shortcut key</th>
5958 </tr>
5959 </thead>
5960 <tbody valign="top">
5961 <tr><td>Magnify text size.</td>
5962 <td>Ctrl-Keypad+</td>
5963 </tr>
5964 <tr><td>Reduce text size.</td>
5965 <td>Ctrl-Keypad-</td>
5966 </tr>
5967 <tr><td>Restore text size to normal.</td>
5968 <td>Ctrl-Keypad/</td>
5969 </tr>
5970 <tr><td>Indent block.</td>
5971 <td>Tab</td>
5972 </tr>
5973 <tr><td>Dedent block.</td>
5974 <td>Shift-Tab</td>
5975 </tr>
5976 <tr><td>Delete to start of word.</td>
5977 <td>Ctrl-BackSpace</td>
5978 </tr>
5979 <tr><td>Delete to end of word.</td>
5980 <td>Ctrl-Delete</td>
5981 </tr>
5982 <tr><td>Delete to start of line.</td>
5983 <td>Ctrl-Shift-BackSpace</td>
5984 </tr>
5985 <tr><td>Go to start of document.</td>
5986 <td>Ctrl-Home</td>
5987 </tr>
5988 <tr><td>Extend selection to start of document.</td>
5989 <td>Ctrl-Shift-Home</td>
5990 </tr>
5991 <tr><td>Go to start of display line.</td>
5992 <td>Alt-Home</td>
5993 </tr>
5994 <tr><td>Extend selection to start of display line.</td>
5995 <td>Alt-Shift-Home</td>
5996 </tr>
5997 <tr><td>Go to end of document.</td>
5998 <td>Ctrl-End</td>
5999 </tr>
6000 <tr><td>Extend selection to end of document.</td>
6001 <td>Ctrl-Shift-End</td>
6002 </tr>
6003 <tr><td>Extend selection to end of display line.</td>
6004 <td>Alt-Shift-End</td>
6005 </tr>
6006 <tr><td>Previous paragraph. Shift extends selection.</td>
6007 <td>Ctrl-Up</td>
6008 </tr>
6009 <tr><td>Next paragraph. Shift extends selection.</td>
6010 <td>Ctrl-Down</td>
6011 </tr>
6012 <tr><td>Previous word. Shift extends selection.</td>
6013 <td>Ctrl-Left</td>
6014 </tr>
6015 <tr><td>Next word. Shift extends selection.</td>
6016 <td>Ctrl-Right</td>
6017 </tr>
6018 </tbody>
6019 </table>
6020 </div>
6021 </div>
6022 <div class="section" id="tips-and-tricks">
6023 <h1><a class="toc-backref" href="#id226">Tips and tricks</a></h1>
6024 <div class="section" id="document-notebook">
6025 <h2><a class="toc-backref" href="#id227">Document notebook</a></h2>
6026 <ul class="simple">
6027 <li>Double-click on empty space in the notebook tab bar to open a
6028 new document.</li>
6029 <li>Middle-click on a document's notebook tab to close the document.</li>
6030 <li>Hold <cite>Ctrl</cite> and click on any notebook tab to switch to the last used
6031 document.</li>
6032 <li>Double-click on a document's notebook tab to toggle all additional
6033 widgets (to show them again use the View menu or the keyboard
6034 shortcut). The interface pref must be enabled for this to work.</li>
6035 </ul>
6036 </div>
6037 <div class="section" id="editor">
6038 <h2><a class="toc-backref" href="#id228">Editor</a></h2>
6039 <ul class="simple">
6040 <li>Alt-scroll wheel moves up/down a page.</li>
6041 <li>Ctrl-scroll wheel zooms in/out.</li>
6042 <li>Shift-scroll wheel scrolls 8 characters right/left.</li>
6043 <li>Ctrl-click on a word in a document to perform <em>Go to Tag Definition</em>.</li>
6044 <li>Ctrl-click on a bracket/brace to perform <em>Go to Matching Brace</em>.</li>
6045 </ul>
6046 </div>
6047 <div class="section" id="interface">
6048 <h2><a class="toc-backref" href="#id229">Interface</a></h2>
6049 <ul class="simple">
6050 <li>Double-click on a symbol-list group to expand or compact it.</li>
6051 </ul>
6052 </div>
6053 <div class="section" id="gtk-related">
6054 <h2><a class="toc-backref" href="#id230">GTK-related</a></h2>
6055 <ul class="simple">
6056 <li>Scrolling the mouse wheel over a notebook tab bar will switch
6057 notebook pages.</li>
6058 </ul>
6059 <p>The following are derived from X-Windows features (but GTK still supports
6060 them on Windows):</p>
6061 <ul class="simple">
6062 <li>Middle-click pastes the last selected text.</li>
6063 <li>Middle-click on a scrollbar moves the scrollbar to that
6064 position without having to drag it.</li>
6065 </ul>
6066 </div>
6067 </div>
6068 <div class="section" id="compile-time-options">
6069 <h1><a class="toc-backref" href="#id231">Compile-time options</a></h1>
6070 <p>There are some options which can only be changed at compile time,
6071 and some options which are used as the default for configurable
6072 options. To change these options, edit the appropriate source file
6073 in the <tt class="docutils literal">src</tt> subdirectory. Look for a block of lines starting with
6074 <tt class="docutils literal">#define GEANY_*</tt>. Any definitions which are not listed here should
6075 not be changed.</p>
6076 <div class="note">
6077 <p class="first admonition-title">Note</p>
6078 <p class="last">Most users should not need to change these options.</p>
6079 </div>
6080 <div class="section" id="src-geany-h">
6081 <h2><a class="toc-backref" href="#id232">src/geany.h</a></h2>
6082 <table border="1" class="docutils">
6083 <colgroup>
6084 <col width="33%" />
6085 <col width="48%" />
6086 <col width="20%" />
6087 </colgroup>
6088 <thead valign="bottom">
6089 <tr><th class="head">Option</th>
6090 <th class="head">Description</th>
6091 <th class="head">Default</th>
6092 </tr>
6093 </thead>
6094 <tbody valign="top">
6095 <tr><td>GEANY_STRING_UNTITLED</td>
6096 <td>A string used as the default name for new
6097 files. Be aware that the string can be
6098 translated, so change it only if you know
6099 what you are doing.</td>
6100 <td>untitled</td>
6101 </tr>
6102 <tr><td>GEANY_WINDOW_MINIMAL_WIDTH</td>
6103 <td>The minimal width of the main window.</td>
6104 <td>620</td>
6105 </tr>
6106 <tr><td>GEANY_WINDOW_MINIMAL_HEIGHT</td>
6107 <td>The minimal height of the main window.</td>
6108 <td>440</td>
6109 </tr>
6110 <tr><td>GEANY_WINDOW_DEFAULT_WIDTH</td>
6111 <td>The default width of the main window at the
6112 first start.</td>
6113 <td>900</td>
6114 </tr>
6115 <tr><td>GEANY_WINDOW_DEFAULT_HEIGHT</td>
6116 <td>The default height of the main window at the
6117 first start.</td>
6118 <td>600</td>
6119 </tr>
6120 <tr><td><strong>Windows specific</strong></td>
6121 <td>&nbsp;</td>
6122 <td>&nbsp;</td>
6123 </tr>
6124 <tr><td>GEANY_USE_WIN32_DIALOG</td>
6125 <td>Set this to 1 if you want to use the default
6126 Windows file open and save dialogs instead
6127 GTK's file open and save dialogs. The
6128 default Windows file dialogs are missing
6129 some nice features like choosing a filetype
6130 or an encoding. <em>Do not touch this setting
6131 when building on a non-Win32 system.</em></td>
6132 <td>0</td>
6133 </tr>
6134 </tbody>
6135 </table>
6136 </div>
6137 <div class="section" id="project-h">
6138 <h2><a class="toc-backref" href="#id233">project.h</a></h2>
6139 <table border="1" class="docutils">
6140 <colgroup>
6141 <col width="33%" />
6142 <col width="48%" />
6143 <col width="20%" />
6144 </colgroup>
6145 <thead valign="bottom">
6146 <tr><th class="head">Option</th>
6147 <th class="head">Description</th>
6148 <th class="head">Default</th>
6149 </tr>
6150 </thead>
6151 <tbody valign="top">
6152 <tr><td>GEANY_PROJECT_EXT</td>
6153 <td>The default filename extension for Geany
6154 project files. It is used when creating new
6155 projects and as filter mask for the project
6156 open dialog.</td>
6157 <td>geany</td>
6158 </tr>
6159 </tbody>
6160 </table>
6161 </div>
6162 <div class="section" id="filetypes-c">
6163 <h2><a class="toc-backref" href="#id234">filetypes.c</a></h2>
6164 <table border="1" class="docutils">
6165 <colgroup>
6166 <col width="33%" />
6167 <col width="48%" />
6168 <col width="20%" />
6169 </colgroup>
6170 <thead valign="bottom">
6171 <tr><th class="head">Option</th>
6172 <th class="head">Description</th>
6173 <th class="head">Default</th>
6174 </tr>
6175 </thead>
6176 <tbody valign="top">
6177 <tr><td>GEANY_FILETYPE_SEARCH_LINES</td>
6178 <td>The number of lines to search for the
6179 filetype with the extract filetype regex.</td>
6180 <td>2</td>
6181 </tr>
6182 </tbody>
6183 </table>
6184 </div>
6185 <div class="section" id="editor-h">
6186 <h2><a class="toc-backref" href="#id235">editor.h</a></h2>
6187 <table border="1" class="docutils">
6188 <colgroup>
6189 <col width="33%" />
6190 <col width="48%" />
6191 <col width="20%" />
6192 </colgroup>
6193 <thead valign="bottom">
6194 <tr><th class="head">Option</th>
6195 <th class="head">Description</th>
6196 <th class="head">Default</th>
6197 </tr>
6198 </thead>
6199 <tbody valign="top">
6200 <tr><td>GEANY_WORDCHARS</td>
6201 <td>These characters define word boundaries when
6202 making selections and searching using word
6203 matching options.</td>
6204 <td>a string with:
6205 a-z, A-Z, 0-9 and
6206 underscore.</td>
6207 </tr>
6208 </tbody>
6209 </table>
6210 </div>
6211 <div class="section" id="keyfile-c">
6212 <h2><a class="toc-backref" href="#id236">keyfile.c</a></h2>
6213 <p>These are default settings that can be overridden in the <a class="reference internal" href="#preferences">Preferences</a> dialog.</p>
6214 <table border="1" class="docutils">
6215 <colgroup>
6216 <col width="33%" />
6217 <col width="48%" />
6218 <col width="20%" />
6219 </colgroup>
6220 <thead valign="bottom">
6221 <tr><th class="head">Option</th>
6222 <th class="head">Description</th>
6223 <th class="head">Default</th>
6224 </tr>
6225 </thead>
6226 <tbody valign="top">
6227 <tr><td>GEANY_MIN_SYMBOLLIST_CHARS</td>
6228 <td>How many characters you need to type to
6229 trigger the autocompletion list.</td>
6230 <td>4</td>
6231 </tr>
6232 <tr><td>GEANY_DISK_CHECK_TIMEOUT</td>
6233 <td>Time in seconds between checking a file for
6234 external changes.</td>
6235 <td>30</td>
6236 </tr>
6237 <tr><td>GEANY_DEFAULT_TOOLS_MAKE</td>
6238 <td>The make tool. This can also include a path.</td>
6239 <td>&quot;make&quot;</td>
6240 </tr>
6241 <tr><td>GEANY_DEFAULT_TOOLS_TERMINAL</td>
6242 <td>A terminal emulator. It has to accept the
6243 command line option &quot;-e&quot;. This can also
6244 include a path.</td>
6245 <td>&quot;xterm&quot;</td>
6246 </tr>
6247 <tr><td>GEANY_DEFAULT_TOOLS_BROWSER</td>
6248 <td>A web browser. This can also include a path.</td>
6249 <td>&quot;firefox&quot;</td>
6250 </tr>
6251 <tr><td>GEANY_DEFAULT_TOOLS_PRINTCMD</td>
6252 <td>A printing tool. It should be able to accept
6253 and process plain text files. This can also
6254 include a path.</td>
6255 <td>&quot;lpr&quot;</td>
6256 </tr>
6257 <tr><td>GEANY_DEFAULT_TOOLS_GREP</td>
6258 <td>A grep tool. It should be compatible with
6259 GNU grep. This can also include a path.</td>
6260 <td>&quot;grep&quot;</td>
6261 </tr>
6262 <tr><td>GEANY_DEFAULT_MRU_LENGTH</td>
6263 <td>The length of the &quot;Recent files&quot; list.</td>
6264 <td>10</td>
6265 </tr>
6266 <tr><td>GEANY_DEFAULT_FONT_SYMBOL_LIST</td>
6267 <td>The font used in sidebar to show symbols and
6268 open files.</td>
6269 <td>&quot;Sans 9&quot;</td>
6270 </tr>
6271 <tr><td>GEANY_DEFAULT_FONT_MSG_WINDOW</td>
6272 <td>The font used in the messages window.</td>
6273 <td>&quot;Sans 9&quot;</td>
6274 </tr>
6275 <tr><td>GEANY_DEFAULT_FONT_EDITOR</td>
6276 <td>The font used in the editor window.</td>
6277 <td>&quot;Monospace 10&quot;</td>
6278 </tr>
6279 <tr><td>GEANY_TOGGLE_MARK</td>
6280 <td>A string which is used to mark a toggled
6281 comment.</td>
6282 <td>&quot;~ &quot;</td>
6283 </tr>
6284 <tr><td>GEANY_MAX_AUTOCOMPLETE_WORDS</td>
6285 <td>How many autocompletion suggestions should
6286 Geany provide.</td>
6287 <td>30</td>
6288 </tr>
6289 <tr><td>GEANY_DEFAULT_FILETYPE_REGEX</td>
6290 <td>The default regex to extract filetypes from
6291 files.</td>
6292 <td>See below.</td>
6293 </tr>
6294 </tbody>
6295 </table>
6296 <p>The GEANY_DEFAULT_FILETYPE_REGEX default value is -\*-\s*([^\s]+)\s*-\*- which finds Emacs filetypes.</p>
6297 </div>
6298 <div class="section" id="build-c">
6299 <h2><a class="toc-backref" href="#id237">build.c</a></h2>
6300 <table border="1" class="docutils">
6301 <colgroup>
6302 <col width="33%" />
6303 <col width="48%" />
6304 <col width="20%" />
6305 </colgroup>
6306 <thead valign="bottom">
6307 <tr><th class="head">Option</th>
6308 <th class="head">Description</th>
6309 <th class="head">Default</th>
6310 </tr>
6311 </thead>
6312 <tbody valign="top">
6313 <tr><td>GEANY_BUILD_ERR_HIGHLIGHT_MAX</td>
6314 <td>Amount of build error indicators to
6315 be shown in the editor window.
6316 This affects the special coloring
6317 when Geany detects a compiler output line as
6318 an error message and then highlights the
6319 corresponding line in the source code.
6320 Usually only the first few messages are
6321 interesting because following errors are
6322 just after-effects.
6323 All errors in the Compiler window are parsed
6324 and unaffected by this value.</td>
6325 <td>50</td>
6326 </tr>
6327 <tr><td>PRINTBUILDCMDS</td>
6328 <td>Every time a build menu item priority
6329 calculation is run, print the state of the
6330 menu item table in the form of the table
6331 in <a class="reference internal" href="#build-menu-configuration">Build Menu Configuration</a>. May be
6332 useful to debug configuration file
6333 overloading. Warning produces a lot of
6334 output. Can also be enabled/disabled by the
6335 debugger by setting printbuildcmds to 1/0
6336 overriding the compile setting.</td>
6337 <td>FALSE</td>
6338 </tr>
6339 </tbody>
6340 </table>
6341 </div>
6342 </div>
6343 <div class="section" id="gnu-general-public-license">
6344 <h1><a class="toc-backref" href="#id238">GNU General Public License</a></h1>
6345 <pre class="literal-block">
6346 GNU GENERAL PUBLIC LICENSE
6347 Version 2, June 1991
6349 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
6350 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
6351 Everyone is permitted to copy and distribute verbatim copies
6352 of this license document, but changing it is not allowed.
6354 Preamble
6356 The licenses for most software are designed to take away your
6357 freedom to share and change it. By contrast, the GNU General Public
6358 License is intended to guarantee your freedom to share and change free
6359 software--to make sure the software is free for all its users. This
6360 General Public License applies to most of the Free Software
6361 Foundation's software and to any other program whose authors commit to
6362 using it. (Some other Free Software Foundation software is covered by
6363 the GNU Library General Public License instead.) You can apply it to
6364 your programs, too.
6366 When we speak of free software, we are referring to freedom, not
6367 price. Our General Public Licenses are designed to make sure that you
6368 have the freedom to distribute copies of free software (and charge for
6369 this service if you wish), that you receive source code or can get it
6370 if you want it, that you can change the software or use pieces of it
6371 in new free programs; and that you know you can do these things.
6373 To protect your rights, we need to make restrictions that forbid
6374 anyone to deny you these rights or to ask you to surrender the rights.
6375 These restrictions translate to certain responsibilities for you if you
6376 distribute copies of the software, or if you modify it.
6378 For example, if you distribute copies of such a program, whether
6379 gratis or for a fee, you must give the recipients all the rights that
6380 you have. You must make sure that they, too, receive or can get the
6381 source code. And you must show them these terms so they know their
6382 rights.
6384 We protect your rights with two steps: (1) copyright the software, and
6385 (2) offer you this license which gives you legal permission to copy,
6386 distribute and/or modify the software.
6388 Also, for each author's protection and ours, we want to make certain
6389 that everyone understands that there is no warranty for this free
6390 software. If the software is modified by someone else and passed on, we
6391 want its recipients to know that what they have is not the original, so
6392 that any problems introduced by others will not reflect on the original
6393 authors' reputations.
6395 Finally, any free program is threatened constantly by software
6396 patents. We wish to avoid the danger that redistributors of a free
6397 program will individually obtain patent licenses, in effect making the
6398 program proprietary. To prevent this, we have made it clear that any
6399 patent must be licensed for everyone's free use or not licensed at all.
6401 The precise terms and conditions for copying, distribution and
6402 modification follow.
6404 GNU GENERAL PUBLIC LICENSE
6405 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6407 0. This License applies to any program or other work which contains
6408 a notice placed by the copyright holder saying it may be distributed
6409 under the terms of this General Public License. The &quot;Program&quot;, below,
6410 refers to any such program or work, and a &quot;work based on the Program&quot;
6411 means either the Program or any derivative work under copyright law:
6412 that is to say, a work containing the Program or a portion of it,
6413 either verbatim or with modifications and/or translated into another
6414 language. (Hereinafter, translation is included without limitation in
6415 the term &quot;modification&quot;.) Each licensee is addressed as &quot;you&quot;.
6417 Activities other than copying, distribution and modification are not
6418 covered by this License; they are outside its scope. The act of
6419 running the Program is not restricted, and the output from the Program
6420 is covered only if its contents constitute a work based on the
6421 Program (independent of having been made by running the Program).
6422 Whether that is true depends on what the Program does.
6424 1. You may copy and distribute verbatim copies of the Program's
6425 source code as you receive it, in any medium, provided that you
6426 conspicuously and appropriately publish on each copy an appropriate
6427 copyright notice and disclaimer of warranty; keep intact all the
6428 notices that refer to this License and to the absence of any warranty;
6429 and give any other recipients of the Program a copy of this License
6430 along with the Program.
6432 You may charge a fee for the physical act of transferring a copy, and
6433 you may at your option offer warranty protection in exchange for a fee.
6435 2. You may modify your copy or copies of the Program or any portion
6436 of it, thus forming a work based on the Program, and copy and
6437 distribute such modifications or work under the terms of Section 1
6438 above, provided that you also meet all of these conditions:
6440 a) You must cause the modified files to carry prominent notices
6441 stating that you changed the files and the date of any change.
6443 b) You must cause any work that you distribute or publish, that in
6444 whole or in part contains or is derived from the Program or any
6445 part thereof, to be licensed as a whole at no charge to all third
6446 parties under the terms of this License.
6448 c) If the modified program normally reads commands interactively
6449 when run, you must cause it, when started running for such
6450 interactive use in the most ordinary way, to print or display an
6451 announcement including an appropriate copyright notice and a
6452 notice that there is no warranty (or else, saying that you provide
6453 a warranty) and that users may redistribute the program under
6454 these conditions, and telling the user how to view a copy of this
6455 License. (Exception: if the Program itself is interactive but
6456 does not normally print such an announcement, your work based on
6457 the Program is not required to print an announcement.)
6459 These requirements apply to the modified work as a whole. If
6460 identifiable sections of that work are not derived from the Program,
6461 and can be reasonably considered independent and separate works in
6462 themselves, then this License, and its terms, do not apply to those
6463 sections when you distribute them as separate works. But when you
6464 distribute the same sections as part of a whole which is a work based
6465 on the Program, the distribution of the whole must be on the terms of
6466 this License, whose permissions for other licensees extend to the
6467 entire whole, and thus to each and every part regardless of who wrote it.
6469 Thus, it is not the intent of this section to claim rights or contest
6470 your rights to work written entirely by you; rather, the intent is to
6471 exercise the right to control the distribution of derivative or
6472 collective works based on the Program.
6474 In addition, mere aggregation of another work not based on the Program
6475 with the Program (or with a work based on the Program) on a volume of
6476 a storage or distribution medium does not bring the other work under
6477 the scope of this License.
6479 3. You may copy and distribute the Program (or a work based on it,
6480 under Section 2) in object code or executable form under the terms of
6481 Sections 1 and 2 above provided that you also do one of the following:
6483 a) Accompany it with the complete corresponding machine-readable
6484 source code, which must be distributed under the terms of Sections
6485 1 and 2 above on a medium customarily used for software interchange; or,
6487 b) Accompany it with a written offer, valid for at least three
6488 years, to give any third party, for a charge no more than your
6489 cost of physically performing source distribution, a complete
6490 machine-readable copy of the corresponding source code, to be
6491 distributed under the terms of Sections 1 and 2 above on a medium
6492 customarily used for software interchange; or,
6494 c) Accompany it with the information you received as to the offer
6495 to distribute corresponding source code. (This alternative is
6496 allowed only for noncommercial distribution and only if you
6497 received the program in object code or executable form with such
6498 an offer, in accord with Subsection b above.)
6500 The source code for a work means the preferred form of the work for
6501 making modifications to it. For an executable work, complete source
6502 code means all the source code for all modules it contains, plus any
6503 associated interface definition files, plus the scripts used to
6504 control compilation and installation of the executable. However, as a
6505 special exception, the source code distributed need not include
6506 anything that is normally distributed (in either source or binary
6507 form) with the major components (compiler, kernel, and so on) of the
6508 operating system on which the executable runs, unless that component
6509 itself accompanies the executable.
6511 If distribution of executable or object code is made by offering
6512 access to copy from a designated place, then offering equivalent
6513 access to copy the source code from the same place counts as
6514 distribution of the source code, even though third parties are not
6515 compelled to copy the source along with the object code.
6517 4. You may not copy, modify, sublicense, or distribute the Program
6518 except as expressly provided under this License. Any attempt
6519 otherwise to copy, modify, sublicense or distribute the Program is
6520 void, and will automatically terminate your rights under this License.
6521 However, parties who have received copies, or rights, from you under
6522 this License will not have their licenses terminated so long as such
6523 parties remain in full compliance.
6525 5. You are not required to accept this License, since you have not
6526 signed it. However, nothing else grants you permission to modify or
6527 distribute the Program or its derivative works. These actions are
6528 prohibited by law if you do not accept this License. Therefore, by
6529 modifying or distributing the Program (or any work based on the
6530 Program), you indicate your acceptance of this License to do so, and
6531 all its terms and conditions for copying, distributing or modifying
6532 the Program or works based on it.
6534 6. Each time you redistribute the Program (or any work based on the
6535 Program), the recipient automatically receives a license from the
6536 original licensor to copy, distribute or modify the Program subject to
6537 these terms and conditions. You may not impose any further
6538 restrictions on the recipients' exercise of the rights granted herein.
6539 You are not responsible for enforcing compliance by third parties to
6540 this License.
6542 7. If, as a consequence of a court judgment or allegation of patent
6543 infringement or for any other reason (not limited to patent issues),
6544 conditions are imposed on you (whether by court order, agreement or
6545 otherwise) that contradict the conditions of this License, they do not
6546 excuse you from the conditions of this License. If you cannot
6547 distribute so as to satisfy simultaneously your obligations under this
6548 License and any other pertinent obligations, then as a consequence you
6549 may not distribute the Program at all. For example, if a patent
6550 license would not permit royalty-free redistribution of the Program by
6551 all those who receive copies directly or indirectly through you, then
6552 the only way you could satisfy both it and this License would be to
6553 refrain entirely from distribution of the Program.
6555 If any portion of this section is held invalid or unenforceable under
6556 any particular circumstance, the balance of the section is intended to
6557 apply and the section as a whole is intended to apply in other
6558 circumstances.
6560 It is not the purpose of this section to induce you to infringe any
6561 patents or other property right claims or to contest validity of any
6562 such claims; this section has the sole purpose of protecting the
6563 integrity of the free software distribution system, which is
6564 implemented by public license practices. Many people have made
6565 generous contributions to the wide range of software distributed
6566 through that system in reliance on consistent application of that
6567 system; it is up to the author/donor to decide if he or she is willing
6568 to distribute software through any other system and a licensee cannot
6569 impose that choice.
6571 This section is intended to make thoroughly clear what is believed to
6572 be a consequence of the rest of this License.
6574 8. If the distribution and/or use of the Program is restricted in
6575 certain countries either by patents or by copyrighted interfaces, the
6576 original copyright holder who places the Program under this License
6577 may add an explicit geographical distribution limitation excluding
6578 those countries, so that distribution is permitted only in or among
6579 countries not thus excluded. In such case, this License incorporates
6580 the limitation as if written in the body of this License.
6582 9. The Free Software Foundation may publish revised and/or new versions
6583 of the General Public License from time to time. Such new versions will
6584 be similar in spirit to the present version, but may differ in detail to
6585 address new problems or concerns.
6587 Each version is given a distinguishing version number. If the Program
6588 specifies a version number of this License which applies to it and &quot;any
6589 later version&quot;, you have the option of following the terms and conditions
6590 either of that version or of any later version published by the Free
6591 Software Foundation. If the Program does not specify a version number of
6592 this License, you may choose any version ever published by the Free Software
6593 Foundation.
6595 10. If you wish to incorporate parts of the Program into other free
6596 programs whose distribution conditions are different, write to the author
6597 to ask for permission. For software which is copyrighted by the Free
6598 Software Foundation, write to the Free Software Foundation; we sometimes
6599 make exceptions for this. Our decision will be guided by the two goals
6600 of preserving the free status of all derivatives of our free software and
6601 of promoting the sharing and reuse of software generally.
6603 NO WARRANTY
6605 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
6606 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
6607 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
6608 PROVIDE THE PROGRAM &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
6609 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
6610 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
6611 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
6612 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
6613 REPAIR OR CORRECTION.
6615 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
6616 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
6617 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
6618 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
6619 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
6620 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
6621 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
6622 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
6623 POSSIBILITY OF SUCH DAMAGES.
6625 END OF TERMS AND CONDITIONS
6627 How to Apply These Terms to Your New Programs
6629 If you develop a new program, and you want it to be of the greatest
6630 possible use to the public, the best way to achieve this is to make it
6631 free software which everyone can redistribute and change under these terms.
6633 To do so, attach the following notices to the program. It is safest
6634 to attach them to the start of each source file to most effectively
6635 convey the exclusion of warranty; and each file should have at least
6636 the &quot;copyright&quot; line and a pointer to where the full notice is found.
6638 &lt;one line to give the program's name and a brief idea of what it does.&gt;
6639 Copyright (C) &lt;year&gt; &lt;name of author&gt;
6641 This program is free software; you can redistribute it and/or modify
6642 it under the terms of the GNU General Public License as published by
6643 the Free Software Foundation; either version 2 of the License, or
6644 (at your option) any later version.
6646 This program is distributed in the hope that it will be useful,
6647 but WITHOUT ANY WARRANTY; without even the implied warranty of
6648 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6649 GNU General Public License for more details.
6651 You should have received a copy of the GNU General Public License
6652 along with this program; if not, write to the Free Software
6653 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
6656 Also add information on how to contact you by electronic and paper mail.
6658 If the program is interactive, make it output a short notice like this
6659 when it starts in an interactive mode:
6661 Gnomovision version 69, Copyright (C) year name of author
6662 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
6663 This is free software, and you are welcome to redistribute it
6664 under certain conditions; type `show c' for details.
6666 The hypothetical commands `show w' and `show c' should show the appropriate
6667 parts of the General Public License. Of course, the commands you use may
6668 be called something other than `show w' and `show c'; they could even be
6669 mouse-clicks or menu items--whatever suits your program.
6671 You should also get your employer (if you work as a programmer) or your
6672 school, if any, to sign a &quot;copyright disclaimer&quot; for the program, if
6673 necessary. Here is a sample; alter the names:
6675 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
6676 `Gnomovision' (which makes passes at compilers) written by James Hacker.
6678 &lt;signature of Ty Coon&gt;, 1 April 1989
6679 Ty Coon, President of Vice
6681 This General Public License does not permit incorporating your program into
6682 proprietary programs. If your program is a subroutine library, you may
6683 consider it more useful to permit linking proprietary applications with the
6684 library. If this is what you want to do, use the GNU Library General
6685 Public License instead of this License.
6686 </pre>
6687 </div>
6688 <div class="section" id="license-for-scintilla-and-scite">
6689 <h1><a class="toc-backref" href="#id239">License for Scintilla and SciTE</a></h1>
6690 <p>Copyright 1998-2003 by Neil Hodgson &lt;neilh(at)scintilla(dot)org&gt;</p>
6691 <p>All Rights Reserved</p>
6692 <p>Permission to use, copy, modify, and distribute this software and
6693 its documentation for any purpose and without fee is hereby granted,
6694 provided that the above copyright notice appear in all copies and
6695 that both that copyright notice and this permission notice appear in
6696 supporting documentation.</p>
6697 <p>NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
6698 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
6699 NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
6700 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
6701 OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
6702 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
6703 USE OR PERFORMANCE OF THIS SOFTWARE.</p>
6704 </div>
6706 </div>
6707 <div class="footer">
6708 <hr class="footer" />
6709 <a class="reference external" href="geany.txt">View document source</a>.
6710 Generated on: 2011-11-03 18:14 UTC.
6711 Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
6713 </div>
6714 </body>
6715 </html>