SF.net SVN: geany: [2328] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Mar 13 08:37:32 UTC 2008


Revision: 2328
          http://geany.svn.sourceforge.net/geany/?rev=2328&view=rev
Author:   eht16
Date:     2008-03-13 01:37:29 -0700 (Thu, 13 Mar 2008)

Log Message:
-----------
Use monospace font for text entry fields in search dialogs and add a notice how to change the used font (#1907117).

Modified Paths:
--------------
    trunk/doc/geany.html
    trunk/doc/geany.txt
    trunk/src/search.c

Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html	2008-03-12 18:01:15 UTC (rev 2327)
+++ trunk/doc/geany.html	2008-03-13 08:37:29 UTC (rev 2328)
@@ -3,10 +3,10 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.4.1: http://docutils.sourceforge.net/" />
 <title>Geany</title>
 <meta name="authors" content="Enrico Tröger  Nick Treleaven  Frank Lanitz" />
-<meta name="date" content="2008-03-07" />
+<meta name="date" content="2008-03-12" />
 <style type="text/css">
 
 /*
@@ -133,7 +133,7 @@
 <br />Nick Treleaven
 <br />Frank Lanitz</td></tr>
 <tr><th class="docinfo-name">Date:</th>
-<td>2008-03-07</td></tr>
+<td>2008-03-12</td></tr>
 <tr><th class="docinfo-name">Version:</th>
 <td>0.14</td></tr>
 </tbody>
@@ -194,122 +194,123 @@
 <li><a class="reference" href="#find" id="id36" name="id36">Find</a><ul>
 <li><a class="reference" href="#matching-options" id="id37" name="id37">Matching options</a></li>
 <li><a class="reference" href="#find-all" id="id38" name="id38">Find all</a></li>
+<li><a class="reference" href="#change-font-in-search-dialog-text-fields" id="id39" name="id39">Change font in search dialog text fields</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#find-usage" id="id39" name="id39">Find usage</a></li>
-<li><a class="reference" href="#find-in-files" id="id40" name="id40">Find in files</a><ul>
-<li><a class="reference" href="#filtering-out-version-control-files" id="id41" name="id41">Filtering out version control files</a></li>
+<li><a class="reference" href="#find-usage" id="id40" name="id40">Find usage</a></li>
+<li><a class="reference" href="#find-in-files" id="id41" name="id41">Find in files</a><ul>
+<li><a class="reference" href="#filtering-out-version-control-files" id="id42" name="id42">Filtering out version control files</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#replace" id="id42" name="id42">Replace</a><ul>
-<li><a class="reference" href="#replace-all" id="id43" name="id43">Replace all</a></li>
+<li><a class="reference" href="#replace" id="id43" name="id43">Replace</a><ul>
+<li><a class="reference" href="#replace-all" id="id44" name="id44">Replace all</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#go-to-tag-definition" id="id44" name="id44">Go to tag definition</a></li>
-<li><a class="reference" href="#go-to-tag-declaration" id="id45" name="id45">Go to tag declaration</a></li>
-<li><a class="reference" href="#go-to-line" id="id46" name="id46">Go to line</a></li>
-<li><a class="reference" href="#regular-expressions" id="id47" name="id47">Regular expressions</a><ul>
-<li><a class="reference" href="#partial-posix-compatibility" id="id48" name="id48">Partial POSIX compatibility</a></li>
+<li><a class="reference" href="#go-to-tag-definition" id="id45" name="id45">Go to tag definition</a></li>
+<li><a class="reference" href="#go-to-tag-declaration" id="id46" name="id46">Go to tag declaration</a></li>
+<li><a class="reference" href="#go-to-line" id="id47" name="id47">Go to line</a></li>
+<li><a class="reference" href="#regular-expressions" id="id48" name="id48">Regular expressions</a><ul>
+<li><a class="reference" href="#partial-posix-compatibility" id="id49" name="id49">Partial POSIX compatibility</a></li>
 </ul>
 </li>
 </ul>
 </li>
-<li><a class="reference" href="#tags" id="id49" name="id49">Tags</a><ul>
-<li><a class="reference" href="#workspace-tags" id="id50" name="id50">Workspace tags</a></li>
-<li><a class="reference" href="#global-tags" id="id51" name="id51">Global tags</a><ul>
-<li><a class="reference" href="#default-global-tags-files" id="id52" name="id52">Default global tags files</a></li>
-<li><a class="reference" href="#generating-a-global-tags-file" id="id53" name="id53">Generating a global tags file</a></li>
+<li><a class="reference" href="#tags" id="id50" name="id50">Tags</a><ul>
+<li><a class="reference" href="#workspace-tags" id="id51" name="id51">Workspace tags</a></li>
+<li><a class="reference" href="#global-tags" id="id52" name="id52">Global tags</a><ul>
+<li><a class="reference" href="#default-global-tags-files" id="id53" name="id53">Default global tags files</a></li>
+<li><a class="reference" href="#generating-a-global-tags-file" id="id54" name="id54">Generating a global tags file</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#ignore-tags" id="id54" name="id54">Ignore tags</a></li>
+<li><a class="reference" href="#ignore-tags" id="id55" name="id55">Ignore tags</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#preferences" id="id55" name="id55">Preferences</a><ul>
-<li><a class="reference" href="#general-tab-in-preferences-dialog" id="id56" name="id56">General tab in preferences dialog</a></li>
-<li><a class="reference" href="#interface-tab-in-preferences-dialog" id="id57" name="id57">Interface tab in preferences dialog</a></li>
-<li><a class="reference" href="#toolbar-tab-in-preferences-dialog" id="id58" name="id58">Toolbar tab in preferences dialog</a></li>
-<li><a class="reference" href="#display-tab-in-preferences-dialog" id="id59" name="id59">Display tab in preferences dialog</a></li>
-<li><a class="reference" href="#editor-tab-in-preferences-dialog" id="id60" name="id60">Editor tab in preferences dialog</a></li>
-<li><a class="reference" href="#files-tab-in-preferences-dialog" id="id61" name="id61">Files tab in preferences dialog</a></li>
-<li><a class="reference" href="#tools-tab-in-preferences-dialog" id="id62" name="id62">Tools tab in preferences dialog</a></li>
-<li><a class="reference" href="#template-tab-in-preferences-dialog" id="id63" name="id63">Template tab in preferences dialog</a></li>
-<li><a class="reference" href="#keybinding-tab-in-preferences-dialog" id="id64" name="id64">Keybinding tab in preferences dialog</a></li>
-<li><a class="reference" href="#printing-tab-in-preferences-dialog" id="id65" name="id65">Printing tab in preferences dialog</a></li>
-<li><a class="reference" href="#vte-tab-in-preferences-dialog" id="id66" name="id66">VTE tab in preferences dialog</a></li>
+<li><a class="reference" href="#preferences" id="id56" name="id56">Preferences</a><ul>
+<li><a class="reference" href="#general-tab-in-preferences-dialog" id="id57" name="id57">General tab in preferences dialog</a></li>
+<li><a class="reference" href="#interface-tab-in-preferences-dialog" id="id58" name="id58">Interface tab in preferences dialog</a></li>
+<li><a class="reference" href="#toolbar-tab-in-preferences-dialog" id="id59" name="id59">Toolbar tab in preferences dialog</a></li>
+<li><a class="reference" href="#display-tab-in-preferences-dialog" id="id60" name="id60">Display tab in preferences dialog</a></li>
+<li><a class="reference" href="#editor-tab-in-preferences-dialog" id="id61" name="id61">Editor tab in preferences dialog</a></li>
+<li><a class="reference" href="#files-tab-in-preferences-dialog" id="id62" name="id62">Files tab in preferences dialog</a></li>
+<li><a class="reference" href="#tools-tab-in-preferences-dialog" id="id63" name="id63">Tools tab in preferences dialog</a></li>
+<li><a class="reference" href="#template-tab-in-preferences-dialog" id="id64" name="id64">Template tab in preferences dialog</a></li>
+<li><a class="reference" href="#keybinding-tab-in-preferences-dialog" id="id65" name="id65">Keybinding tab in preferences dialog</a></li>
+<li><a class="reference" href="#printing-tab-in-preferences-dialog" id="id66" name="id66">Printing tab in preferences dialog</a></li>
+<li><a class="reference" href="#vte-tab-in-preferences-dialog" id="id67" name="id67">VTE tab in preferences dialog</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#project-management" id="id67" name="id67">Project Management</a><ul>
-<li><a class="reference" href="#new-project" id="id68" name="id68">New Project</a></li>
-<li><a class="reference" href="#project-properties" id="id69" name="id69">Project Properties</a><ul>
-<li><a class="reference" href="#make-in-base-path" id="id70" name="id70">Make in base path</a></li>
-<li><a class="reference" href="#run-command" id="id71" name="id71">Run command</a></li>
+<li><a class="reference" href="#project-management" id="id68" name="id68">Project Management</a><ul>
+<li><a class="reference" href="#new-project" id="id69" name="id69">New Project</a></li>
+<li><a class="reference" href="#project-properties" id="id70" name="id70">Project Properties</a><ul>
+<li><a class="reference" href="#make-in-base-path" id="id71" name="id71">Make in base path</a></li>
+<li><a class="reference" href="#run-command" id="id72" name="id72">Run command</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#open-project" id="id72" name="id72">Open Project</a></li>
-<li><a class="reference" href="#close-project" id="id73" name="id73">Close Project</a></li>
+<li><a class="reference" href="#open-project" id="id73" name="id73">Open Project</a></li>
+<li><a class="reference" href="#close-project" id="id74" name="id74">Close Project</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#build-system" id="id74" name="id74">Build system</a><ul>
-<li><a class="reference" href="#compile" id="id75" name="id75">Compile</a></li>
-<li><a class="reference" href="#build" id="id76" name="id76">Build</a></li>
-<li><a class="reference" href="#make-all" id="id77" name="id77">Make all</a></li>
-<li><a class="reference" href="#make-custom-target" id="id78" name="id78">Make custom target</a></li>
-<li><a class="reference" href="#make-object" id="id79" name="id79">Make object</a></li>
-<li><a class="reference" href="#execute" id="id80" name="id80">Execute</a></li>
-<li><a class="reference" href="#stopping-running-processes" id="id81" name="id81">Stopping running processes</a><ul>
-<li><a class="reference" href="#terminal-emulators" id="id82" name="id82">Terminal emulators</a></li>
+<li><a class="reference" href="#build-system" id="id75" name="id75">Build system</a><ul>
+<li><a class="reference" href="#compile" id="id76" name="id76">Compile</a></li>
+<li><a class="reference" href="#build" id="id77" name="id77">Build</a></li>
+<li><a class="reference" href="#make-all" id="id78" name="id78">Make all</a></li>
+<li><a class="reference" href="#make-custom-target" id="id79" name="id79">Make custom target</a></li>
+<li><a class="reference" href="#make-object" id="id80" name="id80">Make object</a></li>
+<li><a class="reference" href="#execute" id="id81" name="id81">Execute</a></li>
+<li><a class="reference" href="#stopping-running-processes" id="id82" name="id82">Stopping running processes</a><ul>
+<li><a class="reference" href="#terminal-emulators" id="id83" name="id83">Terminal emulators</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#set-includes-and-arguments" id="id83" name="id83">Set Includes and Arguments</a><ul>
-<li><a class="reference" href="#one-step-compilation" id="id84" name="id84">One step compilation</a></li>
+<li><a class="reference" href="#set-includes-and-arguments" id="id84" name="id84">Set Includes and Arguments</a><ul>
+<li><a class="reference" href="#one-step-compilation" id="id85" name="id85">One step compilation</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#indicators" id="id85" name="id85">Indicators</a></li>
+<li><a class="reference" href="#indicators" id="id86" name="id86">Indicators</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#printing-support" id="id86" name="id86">Printing support</a></li>
-<li><a class="reference" href="#plugins" id="id87" name="id87">Plugins</a></li>
-<li><a class="reference" href="#keybindings" id="id88" name="id88">Keybindings</a><ul>
-<li><a class="reference" href="#switching-documents" id="id89" name="id89">Switching documents</a></li>
-<li><a class="reference" href="#configurable-keybindings" id="id90" name="id90">Configurable keybindings</a></li>
+<li><a class="reference" href="#printing-support" id="id87" name="id87">Printing support</a></li>
+<li><a class="reference" href="#plugins" id="id88" name="id88">Plugins</a></li>
+<li><a class="reference" href="#keybindings" id="id89" name="id89">Keybindings</a><ul>
+<li><a class="reference" href="#switching-documents" id="id90" name="id90">Switching documents</a></li>
+<li><a class="reference" href="#configurable-keybindings" id="id91" name="id91">Configurable keybindings</a></li>
 </ul>
 </li>
 </ul>
 </li>
-<li><a class="reference" href="#configuration-files" id="id91" name="id91">Configuration files</a><ul>
-<li><a class="reference" href="#global-configuration-file" id="id92" name="id92">Global configuration file</a></li>
-<li><a class="reference" href="#filetype-definition-files" id="id93" name="id93">Filetype definition files</a><ul>
-<li><a class="reference" href="#format" id="id94" name="id94">Format</a><ul>
-<li><a class="reference" href="#styling-section" id="id95" name="id95">[styling] Section</a></li>
-<li><a class="reference" href="#keywords-section" id="id96" name="id96">[keywords] Section</a></li>
-<li><a class="reference" href="#settings-section" id="id97" name="id97">[settings] Section</a></li>
-<li><a class="reference" href="#build-settings-section" id="id98" name="id98">[build_settings] Section</a></li>
+<li><a class="reference" href="#configuration-files" id="id92" name="id92">Configuration files</a><ul>
+<li><a class="reference" href="#global-configuration-file" id="id93" name="id93">Global configuration file</a></li>
+<li><a class="reference" href="#filetype-definition-files" id="id94" name="id94">Filetype definition files</a><ul>
+<li><a class="reference" href="#format" id="id95" name="id95">Format</a><ul>
+<li><a class="reference" href="#styling-section" id="id96" name="id96">[styling] Section</a></li>
+<li><a class="reference" href="#keywords-section" id="id97" name="id97">[keywords] Section</a></li>
+<li><a class="reference" href="#settings-section" id="id98" name="id98">[settings] Section</a></li>
+<li><a class="reference" href="#build-settings-section" id="id99" name="id99">[build_settings] Section</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#special-file-filetypes-common" id="id99" name="id99">Special file filetypes.common</a></li>
+<li><a class="reference" href="#special-file-filetypes-common" id="id100" name="id100">Special file filetypes.common</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#filetype-extensions" id="id100" name="id100">Filetype extensions</a></li>
-<li><a class="reference" href="#templates" id="id101" name="id101">Templates</a><ul>
-<li><a class="reference" href="#template-metadata" id="id102" name="id102">Template metadata</a></li>
-<li><a class="reference" href="#filetype-templates" id="id103" name="id103">Filetype templates</a></li>
-<li><a class="reference" href="#customizing-templates" id="id104" name="id104">Customizing templates</a><ul>
-<li><a class="reference" href="#template-wildcards" id="id105" name="id105">Template wildcards</a></li>
+<li><a class="reference" href="#filetype-extensions" id="id101" name="id101">Filetype extensions</a></li>
+<li><a class="reference" href="#templates" id="id102" name="id102">Templates</a><ul>
+<li><a class="reference" href="#template-metadata" id="id103" name="id103">Template metadata</a></li>
+<li><a class="reference" href="#filetype-templates" id="id104" name="id104">Filetype templates</a></li>
+<li><a class="reference" href="#customizing-templates" id="id105" name="id105">Customizing templates</a><ul>
+<li><a class="reference" href="#template-wildcards" id="id106" name="id106">Template wildcards</a></li>
 </ul>
 </li>
 </ul>
 </li>
 </ul>
 </li>
-<li><a class="reference" href="#contributing-to-this-document" id="id106" name="id106">Contributing to this document</a></li>
-<li><a class="reference" href="#scintilla-keyboard-commands" id="id107" name="id107">Scintilla keyboard commands</a><ul>
-<li><a class="reference" href="#keyboard-commands" id="id108" name="id108">Keyboard commands</a></li>
+<li><a class="reference" href="#contributing-to-this-document" id="id107" name="id107">Contributing to this document</a></li>
+<li><a class="reference" href="#scintilla-keyboard-commands" id="id108" name="id108">Scintilla keyboard commands</a><ul>
+<li><a class="reference" href="#keyboard-commands" id="id109" name="id109">Keyboard commands</a></li>
 </ul>
 </li>
-<li><a class="reference" href="#hidden-preferences" id="id109" name="id109">Hidden preferences</a></li>
-<li><a class="reference" href="#compile-time-options" id="id110" name="id110">Compile-time options</a></li>
-<li><a class="reference" href="#gnu-general-public-license" id="id111" name="id111">GNU General Public License</a></li>
-<li><a class="reference" href="#license-for-scintilla-and-scite" id="id112" name="id112">License for Scintilla and SciTE</a></li>
+<li><a class="reference" href="#hidden-preferences" id="id110" name="id110">Hidden preferences</a></li>
+<li><a class="reference" href="#compile-time-options" id="id111" name="id111">Compile-time options</a></li>
+<li><a class="reference" href="#gnu-general-public-license" id="id112" name="id112">GNU General Public License</a></li>
+<li><a class="reference" href="#license-for-scintilla-and-scite" id="id113" name="id113">License for Scintilla and SciTE</a></li>
 </ul>
 </div>
 <div class="section">
@@ -1065,9 +1066,30 @@
 matching lines will be highlighted. Markers and highlighting can be
 removed by selecting the Remove Markers command from the Document menu.</p>
 </div>
+<div class="section">
+<h4><a class="toc-backref" href="#id39" 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>
+<p>All search related dialogs use a Monospace for the text input fields to
+increase the readibility of input text. This is useful when you are
+typing e.g. regular expressions with spaces, periods and commas which
+might it hard to read with a proportional font.</p>
+<p>If you want to change the font for some reason, you can do this easily
+by inserting the following style into your <tt class="docutils literal"><span class="pre">.gtkrc-2.0</span></tt>
+(usually found in your home directory on UNIX-like systems and in the
+etc subdirectory of your Geany installation on Windows):</p>
+<pre class="literal-block">
+style "search_style"
+{
+    font_name="Monospace 8"
+}
+widget "GeanyDialogSearch.*.GtkEntry" style:highest "search_style"
+</pre>
+<p>Please note the addition ":highest" in the last line which sets the priority
+of this style to the highest available. Otherwise, the style is ignored
+for the search dialogs.</p>
 </div>
+</div>
 <div class="section">
-<h3><a class="toc-backref" href="#id39" id="find-usage" name="find-usage">Find usage</a></h3>
+<h3><a class="toc-backref" href="#id40" id="find-usage" name="find-usage">Find usage</a></h3>
 <p>Find usage searches all open files. It is similar to the Find All In
 Session Find dialog command.</p>
 <p>If there is a selection, then it is used as the search text; otherwise
@@ -1077,7 +1099,7 @@
 shown in the Messages tab of the Message Window.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id40" id="find-in-files" name="find-in-files">Find in files</a></h3>
+<h3><a class="toc-backref" href="#id41" id="find-in-files" name="find-in-files">Find in files</a></h3>
 <p>Find in files is a more powerful version of Find usage that searches
 all files in a certain directory using the Grep tool. The Grep tool
 must be correctly set in Preferences to the path of the system's Grep
@@ -1086,7 +1108,7 @@
 <p>The Extra options field is used to pass any additional arguments to
 the grep tool.</p>
 <div class="section">
-<h4><a class="toc-backref" href="#id41" id="filtering-out-version-control-files" name="filtering-out-version-control-files">Filtering out version control files</a></h4>
+<h4><a class="toc-backref" href="#id42" id="filtering-out-version-control-files" name="filtering-out-version-control-files">Filtering out version control files</a></h4>
 <p>When using the <em>Recurse in subfolders</em> option with a directory that's
 under version control, you can set the <em>Extra options</em> field to use
 grep's <tt class="docutils literal"><span class="pre">--exclude</span></tt> flag to filter out filenames.</p>
@@ -1098,7 +1120,7 @@
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id42" id="replace" name="replace">Replace</a></h3>
+<h3><a class="toc-backref" href="#id43" id="replace" name="replace">Replace</a></h3>
 <p>The Replace dialog is used for replacing text in one or more open
 documents.</p>
 <img alt="./images/replace_dialog.png" src="./images/replace_dialog.png" />
@@ -1108,7 +1130,7 @@
 and to the replacement text; for the latter back references can be
 used -- see the entry for '\n' in <a class="reference" href="#regular-expressions">Regular expressions</a>.</p>
 <div class="section">
-<h4><a class="toc-backref" href="#id43" id="replace-all" name="replace-all">Replace all</a></h4>
+<h4><a class="toc-backref" href="#id44" id="replace-all" name="replace-all">Replace all</a></h4>
 <p>To replace several matches, click on the <em>Replace All</em> expander. This
 will reveal several options:</p>
 <ul class="simple">
@@ -1123,7 +1145,7 @@
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id44" id="go-to-tag-definition" name="go-to-tag-definition">Go to tag definition</a></h3>
+<h3><a class="toc-backref" href="#id45" id="go-to-tag-definition" name="go-to-tag-definition">Go to tag definition</a></h3>
 <p>If the current word is the name of a tag definition (like a function
 body) and the file containing the tag definition is open, this command
 will switch to that file and go to the corresponding line number. The
@@ -1132,17 +1154,17 @@
 menu is used.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id45" id="go-to-tag-declaration" name="go-to-tag-declaration">Go to tag declaration</a></h3>
+<h3><a class="toc-backref" href="#id46" id="go-to-tag-declaration" name="go-to-tag-declaration">Go to tag declaration</a></h3>
 <p>Like Go to tag definition, but for a forward declaration such as a
 function prototype or <tt class="docutils literal"><span class="pre">extern</span></tt> declaration instead of a function
 body.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id46" id="go-to-line" name="go-to-line">Go to line</a></h3>
+<h3><a class="toc-backref" href="#id47" id="go-to-line" name="go-to-line">Go to line</a></h3>
 <p>Go to a particular line number in the current file.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id47" id="regular-expressions" name="regular-expressions">Regular expressions</a></h3>
+<h3><a class="toc-backref" href="#id48" id="regular-expressions" name="regular-expressions">Regular expressions</a></h3>
 <p>You can use regular expressions in the Find and Replace dialogs
 by selecting the Use regular expressions check box. The syntax is
 POSIX-like, as described below in <a class="reference" href="#regular-expressions">Regular expressions</a>.</p>
@@ -1211,14 +1233,14 @@
 </tbody>
 </table>
 <div class="section">
-<h4><a class="toc-backref" href="#id48" id="partial-posix-compatibility" name="partial-posix-compatibility">Partial POSIX compatibility</a></h4>
+<h4><a class="toc-backref" href="#id49" id="partial-posix-compatibility" name="partial-posix-compatibility">Partial POSIX compatibility</a></h4>
 <p>Note that the POSIX '?' regular expression character for optional
 matching is not supported by the Find and Replace dialogs.</p>
 </div>
 </div>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id49" id="tags" name="tags">Tags</a></h2>
+<h2><a class="toc-backref" href="#id50" id="tags" name="tags">Tags</a></h2>
 <p>Geany has built-in functionality for generating tag information (aka
 "workspace tags") for supported filetypes when you open a file.  You
 can also have Geany automatically load external tag files (aka "global
@@ -1228,7 +1250,7 @@
 (but is incompatible with ctags). You use Geany to generate global
 tags files, as described below.</p>
 <div class="section">
-<h3><a class="toc-backref" href="#id50" id="workspace-tags" name="workspace-tags">Workspace tags</a></h3>
+<h3><a class="toc-backref" href="#id51" id="workspace-tags" name="workspace-tags">Workspace tags</a></h3>
 <p>Tags for each document are parsed whenever a file is loaded or
 saved. These are shown in the Symbol list in the Sidebar. These tags
 are also used for autocompletion of symbols and calltips for all documents
@@ -1237,7 +1259,7 @@
 <a class="reference" href="#go-to-tag-definition">Go to tag definition</a>.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id51" id="global-tags" name="global-tags">Global tags</a></h3>
+<h3><a class="toc-backref" href="#id52" id="global-tags" name="global-tags">Global tags</a></h3>
 <p>Global tags are used to provide autocompletion of symbols and calltips
 without having to open the corresponding source files. This is intended
 for library APIs, as the tags file only has to be updated when you upgrade
@@ -1257,7 +1279,7 @@
 with the tags. See the section called <a class="reference" href="#filetype-extensions">Filetype extensions</a> for
 more information.</p>
 <div class="section">
-<h4><a class="toc-backref" href="#id52" id="default-global-tags-files" name="default-global-tags-files">Default global tags files</a></h4>
+<h4><a class="toc-backref" href="#id53" id="default-global-tags-files" name="default-global-tags-files">Default global tags files</a></h4>
 <p>For some languages, a list of global tags is loaded when the
 corresponding filetype is first used. Currently these are for:</p>
 <ul class="simple">
@@ -1269,7 +1291,7 @@
 </ul>
 </div>
 <div class="section">
-<h4><a class="toc-backref" href="#id53" id="generating-a-global-tags-file" name="generating-a-global-tags-file">Generating a global tags file</a></h4>
+<h4><a class="toc-backref" href="#id54" id="generating-a-global-tags-file" name="generating-a-global-tags-file">Generating a global tags file</a></h4>
 <p><em>Filetypes support:</em></p>
 <p>Currently this is not yet supported for Pascal, PHP and LaTeX
 filetypes.</p>
@@ -1317,7 +1339,7 @@
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id54" id="ignore-tags" name="ignore-tags">Ignore tags</a></h3>
+<h3><a class="toc-backref" href="#id55" id="ignore-tags" name="ignore-tags">Ignore tags</a></h3>
 <p>You can also ignore certain tags if they would lead to wrong parsing of
 the code. Simply create a file called "ignore.tags" in your Geany
 configuration directory (usually <tt class="docutils literal"><span class="pre">~/.geany/</span></tt>). Then list all tags
@@ -1341,7 +1363,7 @@
 </div>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id55" id="preferences" name="preferences">Preferences</a></h2>
+<h2><a class="toc-backref" href="#id56" id="preferences" name="preferences">Preferences</a></h2>
 <p>You may adjust Geany's settings using the Edit --> Preferences
 dialog. Any changes you make there can be applied by hitting either
 the Apply or the Ok button. These settings will persist between Geany
@@ -1359,12 +1381,12 @@
 (if present) comes after the screenshot of that tab.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id56" id="general-tab-in-preferences-dialog" name="general-tab-in-preferences-dialog">General tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id57" id="general-tab-in-preferences-dialog" name="general-tab-in-preferences-dialog">General tab in preferences dialog</a></h3>
 <p>General tab in preferences dialog</p>
 <img alt="./images/pref_dialog_gen.png" src="./images/pref_dialog_gen.png" />
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id57" id="interface-tab-in-preferences-dialog" name="interface-tab-in-preferences-dialog">Interface tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id58" id="interface-tab-in-preferences-dialog" name="interface-tab-in-preferences-dialog">Interface tab in preferences dialog</a></h3>
 <p>Interface tab in preferences dialog</p>
 <img alt="./images/pref_dialog_interface.png" src="./images/pref_dialog_interface.png" />
 <p>The documents list and the editor tabs are two different ways
@@ -1374,17 +1396,17 @@
 whether or not editor tabs are visible).</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id58" id="toolbar-tab-in-preferences-dialog" name="toolbar-tab-in-preferences-dialog">Toolbar tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id59" id="toolbar-tab-in-preferences-dialog" name="toolbar-tab-in-preferences-dialog">Toolbar tab in preferences dialog</a></h3>
 <p>Toolbar tab in preferences dialog</p>
 <img alt="./images/pref_dialog_toolbar.png" src="./images/pref_dialog_toolbar.png" />
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id59" id="display-tab-in-preferences-dialog" name="display-tab-in-preferences-dialog">Display tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id60" id="display-tab-in-preferences-dialog" name="display-tab-in-preferences-dialog">Display tab in preferences dialog</a></h3>
 <p>This is for visual elements displayed in the editor window.</p>
 <img alt="./images/pref_dialog_display.png" src="./images/pref_dialog_display.png" />
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id60" id="editor-tab-in-preferences-dialog" name="editor-tab-in-preferences-dialog">Editor tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id61" id="editor-tab-in-preferences-dialog" name="editor-tab-in-preferences-dialog">Editor tab in preferences dialog</a></h3>
 <p>Editor tab in preferences dialog</p>
 <img alt="./images/pref_dialog_edit.png" src="./images/pref_dialog_edit.png" />
 <p>Line wrapping refers to the display of the text in the
@@ -1392,22 +1414,22 @@
 insert newlines into your document while you type.)</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id61" id="files-tab-in-preferences-dialog" name="files-tab-in-preferences-dialog">Files tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id62" id="files-tab-in-preferences-dialog" name="files-tab-in-preferences-dialog">Files tab in preferences dialog</a></h3>
 <p>Files tab in preferences dialog</p>
 <img alt="./images/pref_dialog_files.png" src="./images/pref_dialog_files.png" />
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id62" id="tools-tab-in-preferences-dialog" name="tools-tab-in-preferences-dialog">Tools tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id63" id="tools-tab-in-preferences-dialog" name="tools-tab-in-preferences-dialog">Tools tab in preferences dialog</a></h3>
 <p>Tools tab in preferences dialog</p>
 <img alt="./images/pref_dialog_tools.png" src="./images/pref_dialog_tools.png" />
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id63" id="template-tab-in-preferences-dialog" name="template-tab-in-preferences-dialog">Template tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id64" id="template-tab-in-preferences-dialog" name="template-tab-in-preferences-dialog">Template tab in preferences dialog</a></h3>
 <p>Template tab in preferences dialog</p>
 <img alt="./images/pref_dialog_templ.png" src="./images/pref_dialog_templ.png" />
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id64" id="keybinding-tab-in-preferences-dialog" name="keybinding-tab-in-preferences-dialog">Keybinding tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id65" id="keybinding-tab-in-preferences-dialog" name="keybinding-tab-in-preferences-dialog">Keybinding tab in preferences dialog</a></h3>
 <p>Keybinding tab in preferences dialog</p>
 <img alt="./images/pref_dialog_keys.png" src="./images/pref_dialog_keys.png" />
 <p>There are some handy commands in here that are not, by default,
@@ -1418,18 +1440,18 @@
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id65" id="printing-tab-in-preferences-dialog" name="printing-tab-in-preferences-dialog">Printing tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id66" id="printing-tab-in-preferences-dialog" name="printing-tab-in-preferences-dialog">Printing tab in preferences dialog</a></h3>
 <p>Printing tab in preferences dialog</p>
 <img alt="./images/pref_dialog_printing.png" src="./images/pref_dialog_printing.png" />
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id66" id="vte-tab-in-preferences-dialog" name="vte-tab-in-preferences-dialog">VTE tab in preferences dialog</a></h3>
+<h3><a class="toc-backref" href="#id67" id="vte-tab-in-preferences-dialog" name="vte-tab-in-preferences-dialog">VTE tab in preferences dialog</a></h3>
 <p>VTE tab in preferences dialog</p>
 <img alt="./images/pref_dialog_vte.png" src="./images/pref_dialog_vte.png" />
 </div>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id67" id="project-management" name="project-management">Project Management</a></h2>
+<h2><a class="toc-backref" href="#id68" id="project-management" name="project-management">Project Management</a></h2>
 <p>Project Management is optional in Geany. Currently it can be used for:</p>
 <ul class="simple">
 <li>Storing and opening session files on a project basis.</li>
@@ -1447,7 +1469,7 @@
 file that was in use at the end of the last session will be reopened.</p>
 <p>Below are the commands used to create, modify, open and close projects.</p>
 <div class="section">
-<h3><a class="toc-backref" href="#id68" id="new-project" name="new-project">New Project</a></h3>
+<h3><a class="toc-backref" href="#id69" id="new-project" name="new-project">New Project</a></h3>
 <p>To create a new project, fill in the <em>Name</em> field. By default this
 will setup a new project file <tt class="docutils literal"><span class="pre">~/projects/name.geany</span></tt>. Usually it's
 best to store all your project files in the same directory (they are
@@ -1457,7 +1479,7 @@
 structure contained in it.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id69" id="project-properties" name="project-properties">Project Properties</a></h3>
+<h3><a class="toc-backref" href="#id70" id="project-properties" name="project-properties">Project Properties</a></h3>
 <p>You can set an optional description for the project, but it is not
 used elsewhere by Geany.</p>
 <p>The <em>Base path</em> field is used as the directory to run the Make and Make
@@ -1466,13 +1488,13 @@
 The specified path can be an absolute path or relative to the project's
 file name.</p>
 <div class="section">
-<h4><a class="toc-backref" href="#id70" id="make-in-base-path" name="make-in-base-path">Make in base path</a></h4>
+<h4><a class="toc-backref" href="#id71" id="make-in-base-path" name="make-in-base-path">Make in base path</a></h4>
 <p>This setting makes the <em>Build->Make</em> command use the project's base
 path. Uncheck this if you want to use the current file's directory
 instead.</p>
 </div>
 <div class="section">
-<h4><a class="toc-backref" href="#id71" id="run-command" name="run-command">Run command</a></h4>
+<h4><a class="toc-backref" href="#id72" id="run-command" name="run-command">Run command</a></h4>
 <p>The <em>Run command</em> overrides the default run command. You can set this
 to the executable or main script file for the project, and append
 any command-line arguments.</p>
@@ -1485,7 +1507,7 @@
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id72" id="open-project" name="open-project">Open Project</a></h3>
+<h3><a class="toc-backref" href="#id73" id="open-project" name="open-project">Open Project</a></h3>
 <p>The Open command displays a standard file chooser, starting in
 <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>
 extension.</p>
@@ -1493,14 +1515,14 @@
 open files and open the session files associated with the project.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id73" id="close-project" name="close-project">Close Project</a></h3>
+<h3><a class="toc-backref" href="#id74" id="close-project" name="close-project">Close Project</a></h3>
 <p>Project file settings are saved when the project is closed.</p>
 <p>When project session support is enabled, Geany will close the project
 session files and open any previously closed default session files.</p>
 </div>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id74" id="build-system" name="build-system">Build system</a></h2>
+<h2><a class="toc-backref" href="#id75" id="build-system" name="build-system">Build system</a></h2>
 <p>Geany has an integrated build system. Firstly this means that the
 current source file will be saved before it is processed. This is
 for convenience so that you don't need to keep saving small changes
@@ -1524,7 +1546,7 @@
 <li>Set Includes and Arguments</li>
 </ul>
 <div class="section">
-<h3><a class="toc-backref" href="#id75" id="compile" name="compile">Compile</a></h3>
+<h3><a class="toc-backref" href="#id76" id="compile" name="compile">Compile</a></h3>
 <p>The Compile command has different uses for different kinds of files.</p>
 <p>For compilable languages such as C and C++, the Compile command is
 setup to compile the current source file into a binary object file.</p>
@@ -1534,7 +1556,7 @@
 will run the file in its language interpreter.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id76" id="build" name="build">Build</a></h3>
+<h3><a class="toc-backref" href="#id77" id="build" name="build">Build</a></h3>
 <p>For compilable languages such as C and C++, the Build command will link
 the current source file's equivalent object file into an executable. If
 the object file does not exist, the source will be compiled and linked
@@ -1542,7 +1564,7 @@
 <p>Interpreted languages do not use the Build command.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id77" id="make-all" name="make-all">Make all</a></h3>
+<h3><a class="toc-backref" href="#id78" id="make-all" name="make-all">Make all</a></h3>
 <p>This effectively runs "make all" in the same directory as the
 current file.</p>
 <div class="note">
@@ -1552,19 +1574,19 @@
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id78" id="make-custom-target" name="make-custom-target">Make custom target</a></h3>
+<h3><a class="toc-backref" href="#id79" id="make-custom-target" name="make-custom-target">Make custom target</a></h3>
 <p>This is similar to running 'Make all' but you will be prompted for
 the make target name to be passed to the Make tool. For example,
 typing 'clean' in the dialog prompt will run "make clean".</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id79" id="make-object" name="make-object">Make object</a></h3>
+<h3><a class="toc-backref" href="#id80" id="make-object" name="make-object">Make object</a></h3>
 <p>Make object will run "make current_file.o" in the same directory as
 the current file, using its prefix for 'current_file'. It is useful
 for compiling just the current file without building the whole project.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id80" id="execute" name="execute">Execute</a></h3>
+<h3><a class="toc-backref" href="#id81" id="execute" name="execute">Execute</a></h3>
 <p>Execute will run the corresponding executable file, shell script or
 interpreted script in a terminal window. Note that the Terminal tool
 path must be correctly set in the Tools tab of the Preferences dialog -
@@ -1575,7 +1597,7 @@
 output from the program before the terminal window is closed.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id81" id="stopping-running-processes" name="stopping-running-processes">Stopping running processes</a></h3>
+<h3><a class="toc-backref" href="#id82" id="stopping-running-processes" name="stopping-running-processes">Stopping running processes</a></h3>
 <p>When there is a running program, the Run button in the toolbar
 becomes a stop button and you can stop the current action. This
 works by sending a signal to the process (and its child process(es))
@@ -1584,7 +1606,7 @@
 cannot be stopped. This can happen when the process creates more than
 one child process.</p>
 <div class="section">
-<h4><a class="toc-backref" href="#id82" id="terminal-emulators" name="terminal-emulators">Terminal emulators</a></h4>
+<h4><a class="toc-backref" href="#id83" id="terminal-emulators" name="terminal-emulators">Terminal emulators</a></h4>
 <p>Xterm is known to work properly. If you are using "Terminal"
 (the terminal program of Xfce), you should add the command line
 option <tt class="docutils literal"><span class="pre">--disable-server</span></tt> otherwise the started process cannot be
@@ -1593,7 +1615,7 @@
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id83" id="set-includes-and-arguments" name="set-includes-and-arguments">Set Includes and Arguments</a></h3>
+<h3><a class="toc-backref" href="#id84" id="set-includes-and-arguments" name="set-includes-and-arguments">Set Includes and Arguments</a></h3>
 <p>By default the Compile and Build commands invoke the compiler and
 linker with only the basic arguments needed by all programs. Using
 Set Includes and Arguments you can add any include paths and compile
@@ -1610,14 +1632,14 @@
 different settings, then writing a Makefile and using the Make commands
 is recommended.</p>
 <div class="section">
-<h4><a class="toc-backref" href="#id84" id="one-step-compilation" name="one-step-compilation">One step compilation</a></h4>
+<h4><a class="toc-backref" href="#id85" id="one-step-compilation" name="one-step-compilation">One step compilation</a></h4>
 <p>If you are using the Build command to compile and link in one step,
 you will need to set both the compiler arguments and the linker
 arguments in the linker command setting.</p>
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id85" id="indicators" name="indicators">Indicators</a></h3>
+<h3><a class="toc-backref" href="#id86" id="indicators" name="indicators">Indicators</a></h3>
 <p>Indicators are red squiggly underlines which are used to highlight
 errors which occured while compiling the current file. So you can
 easily see where your code failed to compile. To remove the indicators,
@@ -1627,7 +1649,7 @@
 </div>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id86" id="printing-support" name="printing-support">Printing support</a></h2>
+<h2><a class="toc-backref" href="#id87" id="printing-support" name="printing-support">Printing support</a></h2>
 <p>Since Geany 0.13 there is full printing support using GTK's printing API.
 The printed page(s) will look nearly the same as on your screen in Geany.
 Additionally, there are some options to modify the printed page(s). You
@@ -1675,7 +1697,7 @@
 gtklp or similar programs can be used.</p>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id87" id="plugins" name="plugins">Plugins</a></h2>
+<h2><a class="toc-backref" href="#id88" id="plugins" name="plugins">Plugins</a></h2>
 <p>Plugins are loaded at startup, if the <em>Enable plugin support</em>
 general preference is set. There is also a command-line option,
 <tt class="docutils literal"><span class="pre">-p</span></tt>, which prevents plugins being loaded. Plugins are scanned in
@@ -1695,13 +1717,13 @@
 provides some.</p>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id88" id="keybindings" name="keybindings">Keybindings</a></h2>
+<h2><a class="toc-backref" href="#id89" id="keybindings" name="keybindings">Keybindings</a></h2>
 <p>Geany supports the default keyboard shortcuts for the Scintilla
 editing widget. For a list of these commands, see <a class="reference" href="#scintilla-keyboard-commands">Scintilla
 keyboard commands</a>. The Scintilla keyboard shortcuts will be overridden
 by any custom keybindings with the same keyboard shortcut.</p>
 <div class="section">
-<h3><a class="toc-backref" href="#id89" id="switching-documents" name="switching-documents">Switching documents</a></h3>
+<h3><a class="toc-backref" href="#id90" id="switching-documents" name="switching-documents">Switching documents</a></h3>
 <p>There are a few non-configurable bindings to switch between documents,
 listed below. These can also be overridden by custom keybindings.</p>
 <table border="1" class="docutils">
@@ -1731,7 +1753,7 @@
 </table>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id90" id="configurable-keybindings" name="configurable-keybindings">Configurable keybindings</a></h3>
+<h3><a class="toc-backref" href="#id91" id="configurable-keybindings" name="configurable-keybindings">Configurable keybindings</a></h3>
 <p>For all actions listed below you can define your own keybindings. Open
 the Preferences dialog, select the desired action and click on
 change. In the opening dialog you can press any key combination you
@@ -2234,9 +2256,9 @@
 </div>
 </div>
 <div class="section">
-<h1><a class="toc-backref" href="#id91" id="configuration-files" name="configuration-files">Configuration files</a></h1>
+<h1><a class="toc-backref" href="#id92" id="configuration-files" name="configuration-files">Configuration files</a></h1>
 <div class="section">
-<h2><a class="toc-backref" href="#id92" id="global-configuration-file" name="global-configuration-file">Global configuration file</a></h2>
+<h2><a class="toc-backref" href="#id93" id="global-configuration-file" name="global-configuration-file">Global configuration file</a></h2>
 <p>You can use a global configuration file for Geany which will be used if
 the user starts Geany for the first time and an user's configuration
 file was not yet created or in case an user deleted the configuration
@@ -2256,7 +2278,7 @@
 </div>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id93" id="filetype-definition-files" name="filetype-definition-files">Filetype definition files</a></h2>
+<h2><a class="toc-backref" href="#id94" id="filetype-definition-files" name="filetype-definition-files">Filetype definition files</a></h2>
 <p>All colour definitions and other filetype specific settings are
 stored in the filetype definition files. Those settings are colours
 for syntax highlighting, general settings like comment characters or
@@ -2284,9 +2306,9 @@
 to change. All missing settings will be read from the corresponding
 global definition file in <tt class="docutils literal"><span class="pre">$prefix/share/geany</span></tt>.</p>
 <div class="section">
-<h3><a class="toc-backref" href="#id94" id="format" name="format">Format</a></h3>
+<h3><a class="toc-backref" href="#id95" id="format" name="format">Format</a></h3>
 <div class="section">
-<h4><a class="toc-backref" href="#id95" id="styling-section" name="styling-section">[styling] Section</a></h4>
+<h4><a class="toc-backref" href="#id96" id="styling-section" name="styling-section">[styling] Section</a></h4>
 <p>In this section the colours for syntax highlighting are defined. The
 format is always: key=forground_colour;background_colour;bold;italic</p>
 <p>Colours have to be specified as RGB hex values prefixed by
@@ -2296,7 +2318,7 @@
 value is something other than "true" or "false", "false" is assumed.</p>
 </div>
 <div class="section">
-<h4><a class="toc-backref" href="#id96" id="keywords-section" name="keywords-section">[keywords] Section</a></h4>
+<h4><a class="toc-backref" href="#id97" id="keywords-section" name="keywords-section">[keywords] Section</a></h4>
 <p>This section contains keys for different keyword lists specific to
 the filetype. Some filetypes do not support keywords, so adding a
 new key will not work. You can only add or remove keywords to/from
@@ -2307,7 +2329,7 @@
 </div>
 </div>
 <div class="section">
-<h4><a class="toc-backref" href="#id97" id="settings-section" name="settings-section">[settings] Section</a></h4>
+<h4><a class="toc-backref" href="#id98" id="settings-section" name="settings-section">[settings] Section</a></h4>
 <dl class="docutils">
 <dt>extension</dt>
 <dd><p class="first">This is the default file extension used when saving files, not
@@ -2368,7 +2390,7 @@
 </dl>
 </div>
 <div class="section">
-<h4><a class="toc-backref" href="#id98" id="build-settings-section" name="build-settings-section">[build_settings] Section</a></h4>
+<h4><a class="toc-backref" href="#id99" id="build-settings-section" name="build-settings-section">[build_settings] Section</a></h4>
 <dl class="docutils">
 <dt>compiler</dt>
 <dd><p class="first">This item specifies the command to compile source code files. But
@@ -2401,7 +2423,7 @@
 </div>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id99" id="special-file-filetypes-common" name="special-file-filetypes-common">Special file filetypes.common</a></h3>
+<h3><a class="toc-backref" href="#id100" id="special-file-filetypes-common" name="special-file-filetypes-common">Special file filetypes.common</a></h3>
 <p>There is a special filetype definition file called
 filetypes.common. This file defines some general non-filetype-specific
 settings.</p>
@@ -2545,7 +2567,7 @@
 </div>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id100" id="filetype-extensions" name="filetype-extensions">Filetype extensions</a></h2>
+<h2><a class="toc-backref" href="#id101" id="filetype-extensions" name="filetype-extensions">Filetype extensions</a></h2>
 <p>To change the default filetype extension used when saving a new file,
 see <a class="reference" href="#filetype-definition-files">Filetype definition files</a>.</p>
 <p>You can override the list of file extensions that Geany uses for each
@@ -2571,7 +2593,7 @@
 </pre>
 </div>
 <div class="section">
-<h2><a class="toc-backref" href="#id101" id="templates" name="templates">Templates</a></h2>
+<h2><a class="toc-backref" href="#id102" id="templates" name="templates">Templates</a></h2>
 <p>Geany supports the following templates:</p>
 <ul class="simple">
 <li>ChangeLog entry</li>
@@ -2594,7 +2616,7 @@
 function description won't contain the correct function name but "unknown"
 instead.</p>
 <div class="section">
-<h3><a class="toc-backref" href="#id102" id="template-metadata" name="template-metadata">Template metadata</a></h3>
+<h3><a class="toc-backref" href="#id103" id="template-metadata" name="template-metadata">Template metadata</a></h3>
 <p>Metadata can be used with all templates, but by default user set
 metadata is only used for the ChangeLog and File header templates.</p>
 <p>In the configuration dialog you can find a tab "Templates" (see
@@ -2604,7 +2626,7 @@
 at startup.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id103" id="filetype-templates" name="filetype-templates">Filetype templates</a></h3>
+<h3><a class="toc-backref" href="#id104" id="filetype-templates" name="filetype-templates">Filetype templates</a></h3>
 <p>Filetype templates are templates used as the basis of a new file. To
 use them, choose the <em>New (with Template)</em> menu item from the <em>File</em>
 menu.</p>
@@ -2625,7 +2647,7 @@
 the New command is used without a filetype. This is empty by default.</p>
 </div>
 <div class="section">
-<h3><a class="toc-backref" href="#id104" id="customizing-templates" name="customizing-templates">Customizing templates</a></h3>
+<h3><a class="toc-backref" href="#id105" id="customizing-templates" name="customizing-templates">Customizing templates</a></h3>
 <p>Each template can be customized to your needs. The templates are
 stored in the <tt class="docutils literal"><span class="pre">~/.geany/templates/</span></tt> directory (see the section called
 <a class="reference" href="#command-line-options">Command line options</a> for further information about the configuration
@@ -2633,7 +2655,7 @@
 Geany ;-) ) and edit the template to your needs. There are some
 wildcards which will be automatically replaced by Geany at startup.</p>
 <div class="section">
-<h4><a class="toc-backref" href="#id105" id="template-wildcards" name="template-wildcards">Template wildcards</a></h4>
+<h4><a class="toc-backref" href="#id106" id="template-wildcards" name="template-wildcards">Template wildcards</a></h4>
 <p>All wildcards must be enclosed by "{" and "}", e.g. {date}.</p>
 <table border="1" class="docutils">
 <colgroup>
@@ -2742,7 +2764,7 @@
 </div>
 </div>
 <div class="section">
-<h1><a class="toc-backref" href="#id106" id="contributing-to-this-document" name="contributing-to-this-document">Contributing to this document</a></h1>
+<h1><a class="toc-backref" href="#id107" id="contributing-to-this-document" name="contributing-to-this-document">Contributing to this document</a></h1>
 <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>
 (or "reST"). The source file for it is located in Geany's <tt class="docutils literal"><span class="pre">doc</span></tt>
 subdirectory.  If you intend on making changes, you should grab the
@@ -2762,7 +2784,7 @@
 and Fedora systems.</p>
 </div>
 <div class="section">
-<h1><a class="toc-backref" href="#id107" id="scintilla-keyboard-commands" name="scintilla-keyboard-commands">Scintilla keyboard commands</a></h1>
+<h1><a class="toc-backref" href="#id108" id="scintilla-keyboard-commands" name="scintilla-keyboard-commands">Scintilla keyboard commands</a></h1>
 <p>Copyright © 1998, 2006 Neil Hodgson <neilh(at)scintilla(dot)org></p>
 <p>This appendix is distributed under the terms of the License for
 Scintilla and SciTE. A copy of this license can be found in the file
@@ -2771,7 +2793,7 @@
 Scintilla and SciTE</a>.</p>
 <p>20 June 2006</p>
 <div class="section">
-<h2><a class="toc-backref" href="#id108" id="keyboard-commands" name="keyboard-commands">Keyboard commands</a></h2>
+<h2><a class="toc-backref" href="#id109" id="keyboard-commands" name="keyboard-commands">Keyboard commands</a></h2>
 <p>Keyboard commands for Scintilla mostly follow common Windows and GTK+
 conventions. All move keys (arrows, page up/down, home and end)
 allows to extend or reduce the stream selection when holding the
@@ -2871,7 +2893,7 @@
 </div>
 </div>
 <div class="section">
-<h1><a class="toc-backref" href="#id109" id="hidden-preferences" name="hidden-preferences">Hidden preferences</a></h1>
+<h1><a class="toc-backref" href="#id110" id="hidden-preferences" name="hidden-preferences">Hidden preferences</a></h1>
 <p>There are some uncommon preferences that are not shown in the Preferences
 dialog. These can be set by editing <tt class="docutils literal"><span class="pre">~/.geany/geany.conf</span></tt>, then
 restarting Geany. Search for the key name, then edit the value. Example:</p>
@@ -2943,7 +2965,7 @@
 </table>
 </div>
 <div class="section">
-<h1><a class="toc-backref" href="#id110" id="compile-time-options" name="compile-time-options">Compile-time options</a></h1>
+<h1><a class="toc-backref" href="#id111" id="compile-time-options" name="compile-time-options">Compile-time options</a></h1>
 <p>There are some options which can only be changed at compile time. To
 change these options, edit the file src/geany.h. Look for a block of
 lines starting with <tt class="docutils literal"><span class="pre">#define</span> <span class="pre">GEANY_*</span></tt>. Any definitions which are
@@ -3093,7 +3115,7 @@
 </table>
 </div>
 <div class="section">
-<h1><a class="toc-backref" href="#id111" id="gnu-general-public-license" name="gnu-general-public-license">GNU General Public License</a></h1>
+<h1><a class="toc-backref" href="#id112" id="gnu-general-public-license" name="gnu-general-public-license">GNU General Public License</a></h1>
 <pre class="literal-block">
             GNU GENERAL PUBLIC LICENSE
                Version 2, June 1991
@@ -3438,7 +3460,7 @@
 </pre>
 </div>
 <div class="section">
-<h1><a class="toc-backref" href="#id112" id="license-for-scintilla-and-scite" name="license-for-scintilla-and-scite">License for Scintilla and SciTE</a></h1>
+<h1><a class="toc-backref" href="#id113" id="license-for-scintilla-and-scite" name="license-for-scintilla-and-scite">License for Scintilla and SciTE</a></h1>
 <p>Copyright 1998-2003 by Neil Hodgson <neilh(at)scintilla(dot)org></p>
 <p>All Rights Reserved</p>
 <p>Permission to use, copy, modify, and distribute this software and
@@ -3458,7 +3480,7 @@
 <div class="footer">
 <hr class="footer" />
 <a class="reference" href="geany.txt">View document source</a>.
-Generated on: 2008-03-12 17:42 UTC.
+Generated on: 2008-03-13 07:03 UTC.
 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.
 
 </div>

Modified: trunk/doc/geany.txt
===================================================================
--- trunk/doc/geany.txt	2008-03-12 18:01:15 UTC (rev 2327)
+++ trunk/doc/geany.txt	2008-03-13 08:37:29 UTC (rev 2328)
@@ -840,6 +840,30 @@
 removed by selecting the Remove Markers command from the Document menu.
 
 
+Change font in search dialog text fields
+````````````````````````````````````````
+
+All search related dialogs use a Monospace for the text input fields to
+increase the readibility of input text. This is useful when you are
+typing e.g. regular expressions with spaces, periods and commas which
+might it hard to read with a proportional font.
+
+If you want to change the font for some reason, you can do this easily
+by inserting the following style into your ``.gtkrc-2.0``
+(usually found in your home directory on UNIX-like systems and in the
+etc subdirectory of your Geany installation on Windows)::
+
+    style "search_style"
+    {
+        font_name="Monospace 8"
+    }
+    widget "GeanyDialogSearch.*.GtkEntry" style:highest "search_style"
+
+Please note the addition ":highest" in the last line which sets the priority
+of this style to the highest available. Otherwise, the style is ignored
+for the search dialogs.
+
+
 Find usage
 ^^^^^^^^^^
 

Modified: trunk/src/search.c
===================================================================
--- trunk/src/search.c	2008-03-12 18:01:15 UTC (rev 2327)
+++ trunk/src/search.c	2008-03-13 08:37:29 UTC (rev 2328)
@@ -259,6 +259,28 @@
 }
 
 
+/* this will load a GTK rc style to set a monospace font for text fields(GtkEntry) in all
+ * search dialogs. This needs to be done only once.
+ * The monospace font should increase readibility of regular expressions containing spaces, points,
+ * commas and similar (#1907117). */
+static void load_monospace_style()
+{
+	static const gchar *rcstyle =
+		"style \"geany-monospace\"\n" \
+		"{\n" \
+		"    font_name=\"Monospace 16\"\n" \
+		"}\n" \
+		"widget \"GeanyDialogSearch.*.GtkEntry\" style \"geany-monospace\"";
+	static gboolean load = TRUE;
+
+	if (load)
+	{
+		gtk_rc_parse_string(rcstyle);
+		load = FALSE;
+	}
+}
+
+
 void search_show_find_dialog(void)
 {
 	gint idx = document_get_cur_idx();
@@ -274,6 +296,8 @@
 		GtkWidget *exp, *bbox, *button, *check_close;
 		GtkTooltips *tooltips = GTK_TOOLTIPS(lookup_widget(app->window, "tooltips"));
 
+		load_monospace_style();
+
 		widgets.find_dialog = gtk_dialog_new_with_buttons(_("Find"),
 			GTK_WINDOW(app->window), GTK_DIALOG_DESTROY_WITH_PARENT,
 			GTK_STOCK_CLOSE, GTK_RESPONSE_CANCEL, NULL);
@@ -394,6 +418,8 @@
 		GtkSizeGroup *label_size;
 		GtkTooltips *tooltips = GTK_TOOLTIPS(lookup_widget(app->window, "tooltips"));
 
+		load_monospace_style();
+
 		widgets.replace_dialog = gtk_dialog_new_with_buttons(_("Replace"),
 			GTK_WINDOW(app->window), GTK_DIALOG_DESTROY_WITH_PARENT,
 			GTK_STOCK_CLOSE, GTK_RESPONSE_CANCEL, NULL);
@@ -542,6 +568,8 @@
 		GtkSizeGroup *size_group;
 		GtkTooltips *tooltips = GTK_TOOLTIPS(lookup_widget(app->window, "tooltips"));
 
+		load_monospace_style();
+
 		widgets.find_in_files_dialog = gtk_dialog_new_with_buttons(
 			_("Find in Files"), GTK_WINDOW(app->window), GTK_DIALOG_DESTROY_WITH_PARENT,
 			GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, NULL);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list