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