diff --git a/doc/geany.html b/doc/geany.html index da90e810..10bd0ac1 100644 --- a/doc/geany.html +++ b/doc/geany.html @@ -143,7 +143,7 @@ Stylesheet for Geany's documentation based on a version of John Gabriele.
Copyright © 2005-2012
@@ -268,265 +268,269 @@ of this program, and also in the chapter Default global tags files% make install+
Or via sudo:
++% sudo make install +
Find usage searches all open files. It is similar to the Find All In -Session option in the Find dialog.
+Find Usage searches all open files. It is similar to the Find All In +Session option in the Find dialog.
If there is a selection, then it is used as the search text; otherwise the current word is used. The current word is either taken from the word nearest the edit cursor, or the word underneath the popup menu click position when the popup menu is used. The search results are shown in the Messages tab of the Message Window.
+Note
+You can also use Find Usage for symbol list items from the popup +menu.
+Find in files is a more powerful version of Find usage that searches +
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 utility. GNU Grep is recommended (see note below).
@@ -2005,22 +2018,24 @@ corresponding filetype is first used. Currently these are for:Global tags files can have two different formats:
+Global tags files can have three different formats:
The first line of global tags files should be a comment, introduced -by # followed by a space and a string like format=pipe -or format=tagmanager respectively, these are case-sensitive. -This helps Geany to read the file properly. If this line -is missing, Geany tries to auto-detect the used format but this +by # followed by a space and a string like format=pipe, +format=ctags or format=tagmanager respectively, these are +case-sensitive. This helps Geany to read the file properly. If this +line is missing, Geany tries to auto-detect the used format but this might fail.
The Tagmanager format is a bit more complex and is used for files created by the geany -g command. There is one tag per line. Different tag attributes like the return value or the argument list are separated with different characters indicating the type of the -following argument.
+following argument. This is the more complete and recommended tag +format.The Pipe-separated format is easier to read and write. @@ -2042,9 +2057,18 @@ empty but the pipe separator must appear for them.
Just save them in your tags directory, as described earlier in the section Global tags.This is the format that ctags generates, and that is used by Vim. +This format is compatible with the format historically used by Vi.
+The format is described at http://ctags.sourceforge.net/FORMAT, but +for the full list of existing extensions please refer to ctags. +However, note that Geany may actually only honor a subset of the +existing extensions.
+You can generate your own global tags files by parsing a list of source files. The command is:
@@ -2067,7 +2091,7 @@ don't want to specify the CFLAGS environment variable. geany -g wxd.d.tags /home/username/wxd/wx/*.d
You may need to first setup the C ignore.tags file.
For C/C++ tag files gcc is required by default, so that header files can be preprocessed to include any other headers they depend upon. If @@ -2083,7 +2107,7 @@ CFLAGS=`pkg-config --cflags libgnomeui-2.0` geany -g gnomeui.c.tags \ for whichever libraries you want.
This works basically the same as on other platforms:
"c:\program files\geany\bin\geany" -g c:\mytags.php.tags c:\code\somefile.php @@ -2092,7 +2116,7 @@ for whichever libraries you want.
You can ignore certain tags for C-based languages if they would lead to wrong parsing of the code. Use the Tools->Configuration Files->ignore.tags menu item to open the user ignore.tags file. @@ -2130,7 +2154,7 @@ that items like G_GNUC_PRINTF+ get parsed correctly.
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 @@ -2147,10 +2171,10 @@ when restarting Geany.
comes after the screenshot of that tab.Affects the main toolbar underneath the menu bar.
See Indentation for more information.
Geany can automatically insert a closing bracket and quote characters when you open them. For instance, you type a ( and Geany will automatically insert ). With the following options, you can define for which @@ -2535,11 +2562,11 @@ characters this should work.
This is for visual elements displayed in the editor window.
The long line marker helps to indicate overly-long lines, or as a hint to the user for when to break the line.
Virtual space is space beyond the end of each line. The cursor may be moved into virtual space but no real space will be added to the document until there is some text typed or some other @@ -2605,10 +2632,10 @@ text insertion command is used.
Perform formatting operations when a document is saved. These can each be undone with the Undo command.
This data is used as meta data for various template text to insert into a document, such as the file header. You only need to set fields that you want to use in your template files.
There are some commands listed in the keybinding dialog that are not, by default, bound to a key combination, and may not be available as a menu item.
@@ -2758,7 +2785,7 @@ bound to a key combination, and may not be available as a menu item.Rarely used preferences, explained in the table below. A few of them require restart to take effect, and a few other will only affect newly opened or created documents before restart.
Key | @@ -2876,7 +2903,7 @@ tab.|||
---|---|---|---|
statusbar_template | The status bar statistics line format. -(Search in src/ui_utils.c for details). | +(See Statusbar Templates for details).See below. | immediately | true | immediately | - -
By default, statusbar_template is empty. This tells Geany to use its -internal default, which is currently:
-line: %l / %L\t col: %c\t sel: %s\t %w %t %mmode: %M encoding: %e filetype: %f scope: %S
-Note that \t = tab.
-Key | -Description | -Default | -Applies | -
---|---|---|---|
VTE related | @@ -3055,13 +3061,84 @@ execute section of the Build menu. |
The extract_filetype_regex has the default value GEANY_DEFAULT_FILETYPE_REGEX.
+The default statusbar template is (note \t = tab):
+line: %l / %L\t col: %c\t sel: %s\t %w %t %mmode: %M encoding: %e filetype: %f scope: %S
+Settings the preference to an empty string will also cause Geany to use this +internal default.
+The following format characters are available for the statusbar template:
+Placeholder | +Description | +
---|---|
%l | +The current line number starting at 1 | +
%L | +The total number of lines | +
%c | +The current column number starting at 0 | +
%C | +The current column number starting at 1 | +
%s | +The number of selected characters or if only whole lines +selected, the number of selected lines. | +
%w | +Shows RO when the document is in read-only mode, +otherwise shows whether the editor is in overtype (OVR) +or insert (INS) mode. | +
%t | +Shows the indentation mode, either tabs (TAB), +spaces (SP) or both (T/S). | +
%m | +Shows whether the document is modified (MOD) or nothing. | +
%M | +The name of the document's line-endings (ex. Unix (LF)) | +
%e | +The name of the document's encoding (ex. UTF-8). | +
%f | +The filetype of the document (ex. None, Python, C, etc). | +
%S | +The name of the scope where the caret is located. | +
%p | +The caret position in the entire document starting at 0. | +
%r | +Shows whether the document is read-only (RO) or nothing. | +
%Y | +The Scintilla style number at the caret position. This is +useful if you're debugging color schemes or related code. | +
See also: Virtual terminal emulator widget (VTE).
Project management is optional in Geany. Currently it can be used for:
The project menu items are detailed below.
To create a new project, fill in the Name field. By default this will setup a new project file ~/projects/name.geany. Usually it's best to store all your project files in the same directory (they are @@ -3130,7 +3207,7 @@ can safely be set to any existing path -- it will not touch the file structure contained in it.
You can set an optional description for the project. Currently it's only used for a template wildcard - see Template wildcards.
The Base path field is used as the directory to run the Build menu commands. @@ -3142,7 +3219,7 @@ project, which can be used in the Indentation settings.
The Open command displays a standard file chooser, starting in ~/projects. Choose a project file named with the .geany extension.
@@ -3150,14 +3227,14 @@ extension. open files and open the session files associated with the project.Project file settings are saved when the project is closed.
When project session support is enabled, Geany will close the project session files and open any previously closed default session files.
Indicators are red squiggly underlines which are used to highlight errors which occurred while compiling the current file. So you can easily see where your code failed to compile. You can remove them by @@ -3193,7 +3270,7 @@ selecting Remove Error Indicators in the Document menu.
preferences.This is similar to running 'Make' 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".
Make object will run "make current_file.o" in the same directory as the current file, using the filename for 'current_file'. It is useful for building just the current file without building the whole project.
The previous error item will move to the previous detected error in the file.
Execute will run the corresponding executable file, shell script or interpreted script in a terminal window. The command set in the "Set Build Commands" dialog is run in a script to ensure the terminal @@ -3274,7 +3351,7 @@ output from the program before the terminal window is closed.
When there is a running program, the Execute menu item in the menu and the Run button in the toolbar each become a stop button so you can stop the current running program (and @@ -3283,7 +3360,7 @@ any child processes). This works by sending the SIGQUIT signal to the process. cannot be stopped. For example this can happen when the process creates more than one child process.
The Terminal field of the tools preferences tab requires a command to execute the terminal program and to pass it the name of the Geany run script that it should execute in a Bourne compatible shell (eg /bin/sh). @@ -3297,7 +3374,7 @@ xterm -e "/bin/sh %c"
By default Compile, Build and Execute are fairly basic commands. You may wish to customise them using Set Build Commands.
E.g. for C you can add any include paths and compile flags for the @@ -3306,7 +3383,7 @@ arguments you want to use when running Execute.
Since Geany 0.13 there has been 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).
@@ -3594,7 +3671,7 @@ command line). gtklp or similar programs can be used.Plugins are loaded at startup, if the Enable plugin support general preference is set. There is also a command-line option, -p, which prevents plugins being loaded. Plugins are scanned in @@ -3610,7 +3687,7 @@ the following directories:
See also Plugin documentation for information about single plugins which are included in Geany.
The Plugin Manager dialog lets you choose which plugins should be loaded at startup. You can also load and unload plugins on the fly using this dialog. Once you click the checkbox for a specific plugin @@ -3621,13 +3698,13 @@ provides any.
Geany supports the default keyboard shortcuts for the Scintilla editing widget. For a list of these commands, see Scintilla keyboard commands. The Scintilla keyboard shortcuts will be overridden by any custom keybindings with the same keyboard shortcut.
There are some non-configurable bindings to switch between documents, listed below. These can also be overridden by custom keybindings.
geanyversion | The actual Geany version, e.g. -"Geany 1.23". | +"Geany 1.24".file templates, file header, function description, ChangeLog entry, bsd, gpl, snippets. | @@ -5765,7 +5842,7 @@ will only be replaced in file templates.
The {command:} wildcard is a special one because it can execute a specified command and put the command's output (stdout) into the template.
@@ -5800,14 +5877,14 @@ standard error and in the Help->Debug Messages dialog.You can add, remove and reorder the elements in the toolbar by using the toolbar editor, or by manually editing the configuration file ui_toolbar.xml.
The toolbar editor can be opened from the preferences editor on the Toolbar tab or by right-clicking on the toolbar itself and choosing it from the menu.
To override the system-wide configuration file, copy it to your user configuration directory (see Configuration file paths).
For example:
@@ -5829,7 +5906,7 @@ will be used instead.