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