39
<publishername> GNOME Documentation Project </publishername>
44
Sun GNOME Documentation Team
47
<firstname>Eric</firstname>
48
<surname>Baudais</surname>
50
<orgname>GNOME Documentation Project</orgname>
51
<address> <email>baudais@okstate.edu</email> </address>
54
<author role="maintainer">
55
<firstname>Rodrigo</firstname>
56
<surname>Moya</surname>
59
<othercredit role="reviewer">
60
<firstname>Baris</firstname>
61
<surname>Cicek provided information from earlier revisions of the gedit application.</surname>
62
<contrib>Acknowledgements</contrib>
64
<othercredit role="reviewer">
65
<firstname>Ajit</firstname>
66
<surname>George provided information about plugins.</surname>
67
<contrib>Acknowledgements</contrib>
35
<publishername>GNOME Documentation Project</publishername>
39
<author role="maintainer">
40
<firstname>Rodrigo</firstname>
41
<surname>Moya</surname>
71
44
<!-- This is appropriate place for other contributors: translators,
72
maintainers, etc. Commented out by default.
45
maintainers, etc. Commented out by default.
73
46
<othercredit role="translator">
74
<firstname>Latin</firstname>
75
<surname>Translator 1</surname>
77
<orgname>Latin Translation Team</orgname>
78
<address> <email>translator@gnome.org</email> </address>
80
<contrib>Latin translation</contrib>
47
<firstname>Latin</firstname>
48
<surname>Translator 1</surname>
50
<orgname>Latin Translation Team</orgname>
51
<address> <email>translator@gnome.org</email> </address>
53
<contrib>Latin translation</contrib>
85
58
<!-- According to GNU FDL, revision history is mandatory if you are -->
86
59
<!-- modifying/reusing someone else's document. If not, you can omit it. -->
88
61
<!-- Remember to remove the &manrevision; entity from the revision entries other
89
62
than the current revision. -->
91
<revnumber>&app; Manual V&manrevision;</revnumber>
94
<para role="author">Sun GNOME Documentation Team</para>
95
<para role="publisher">GNOME Documentation Project</para>
99
<revnumber>gedit Manual V2.6</revnumber>
100
<date>September 2003</date>
102
<para role="author">Sun GNOME Documentation Team</para>
103
<para role="publisher">GNOME Documentation Project</para>
107
<revnumber>gedit Manual V2.5</revnumber>
108
<date>March 2003</date>
110
<para role="author">Sun GNOME Documentation Team</para>
111
<para role="publisher">GNOME Documentation Project</para>
115
<revnumber>gedit Manual V2.4</revnumber>
116
<date>January 2003</date>
118
<para role="author">Sun GNOME Documentation Team</para>
119
<para role="publisher">GNOME Documentation Project</para>
123
<revnumber>gedit Manual V2.3</revnumber>
124
<date>September 2002</date>
126
<para role="author">Sun GNOME Documentation Team</para>
127
<para role="publisher">GNOME Documentation Project</para>
131
<revnumber>gedit Manual V2.2</revnumber>
132
<date>August 2002</date>
134
<para role="author">Sun GNOME Documentation Team</para>
135
<para role="publisher">GNOME Documentation Project</para>
139
<revnumber>gedit Manual V2.1</revnumber>
140
<date>June 2002</date>
142
<para role="author">Sun GNOME Documentation Team</para>
143
<para role="publisher">GNOME Documentation Project</para>
147
<revnumber>gedit Manual V2.0</revnumber>
148
<date>March 2002</date>
150
<para role="author">Sun GNOME Documentation Team</para>
151
<para role="publisher">GNOME Documentation Project</para>
155
<revnumber>gedit V1.0</revnumber>
158
<para role="author">Eric Baudais <email>baudais@okstate.edu</email>
160
<para role="publisher">GNOME Documentation Project</para>
164
<releaseinfo> This manual describes version &appversion; of &app;.
167
<title>Feedback</title>
168
<para>To report a bug or make a suggestion regarding the <application>&app;</application> application or this manual, follow the directions in the <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>.
64
<revnumber>gnome-nettool V2.17.1</revnumber>
67
<para role="publisher">GNOME Documentation Project</para>
71
<releaseinfo> This manual describes version &appversion; of &app;.
74
<title>Feedback</title>
75
<para>To report a bug or make a suggestion regarding the <application>&app;</application> application or this manual, follow the directions in the <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>.
170
77
<!-- Translators may also add here feedback address for translations -->
173
<indexterm><primary>gedit</primary></indexterm>
174
<indexterm><primary>text editor</primary></indexterm>
81
<indexterm><primary>gnome-nettool</primary></indexterm>
82
<indexterm><primary>network tool application</primary></indexterm>
176
84
<!-- ============= Document Body ============================= -->
177
85
<!-- ============= Introduction ============================== -->
178
<sect1 id="gedit-intro">
179
<title>Introduction</title>
180
<para>The <application>&app;</application> application enables you to create and edit text files. You can use <application>&app;</application> plugins to perform a variety of tasks related to text-editing from within the <application>&app;</application> window.</para>
182
<!-- ============= Getting Started =========================== -->
183
<sect1 id="gedit-getting-started">
184
<title>Getting Started</title>
186
<!-- ============= To Start gedit ============================ -->
187
<sect2 id="gedit-to-start">
188
<title>To Start &app;</title>
189
<para>You can start <application>&app;</application> in the following ways:</para>
192
<term><guimenu>Applications</guimenu> menu</term>
194
<para>Choose <menuchoice><guisubmenu>Accessories</guisubmenu><guimenuitem>Text Editor</guimenuitem></menuchoice>. </para>
198
<term>Command line</term>
200
<para>Execute the following command: <command>gedit</command></para>
206
<sect2 id="gedit-when-you-start">
208
<title>When You Start &app;</title>
209
<para>When you start <application>&app;</application>, the following window is displayed:</para>
211
<figure id="gedit-window">
212
<title>&app; Window</title>
216
<imagedata fileref="figures/gedit_window.png" format="PNG"/>
218
<textobject> <phrase>Shows gedit main window.</phrase>
224
<para>The <application>&app;</application> window contains the following
227
<varlistentry> <term>Menubar</term>
229
<para>The menus on the menubar contain all of the commands you need to work with files in <application>&app;</application>.</para>
232
<varlistentry> <term>Toolbar</term>
234
<para> The toolbar contains a subset of the commands that you can access from the menubar.</para>
237
<varlistentry> <term>Display area</term>
239
<para> The display area contains the text of the file that you are editing. </para>
242
<varlistentry> <term>Output window</term>
244
<para>The output window displays the output returned by the Shell command plugin and the Compare files plugin. </para>
247
<varlistentry> <term>Statusbar</term>
249
<para>The statusbar displays information about current <application>&app;</application> activity and contextual information about the menu items. The statusbar also displays the following information:</para>
252
<para>Cursor position: the line number and column number where the cursor is located.</para>
255
<para>Edit mode: If the editor is in insert mode, the statusbar contains the text <guilabel>INS</guilabel>. If the editor is in overwrite mode, the statusbar contains the text <guilabel>OVR</guilabel>. Press the <keycap>Insert</keycap> key to change edit mode.</para>
261
<para>When you right-click in the <application>&app;</application> window, the application displays a popup menu. The popup menu contains the most common text editing commands. </para>
264
In <application>&app;</application>, you can perform the same action in several ways. For example, you can open a file in the following ways:
265
<informaltable frame="all">
266
<tgroup cols="2" colsep="1" rowsep="1">
267
<colspec colname="COLSPEC0" colwidth="50*"/>
268
<colspec colname="COLSPEC1" colwidth="50*"/>
271
<entry colname="COLSPEC0">
272
<para>UI Component</para></entry>
273
<entry colname="COLSPEC1" align="left">
274
<para>Action</para></entry>
279
<entry><para>Window</para></entry>
280
<entry><para>Drag a file into the <application>&app;</application> window from another application such as a file manager.</para></entry>
283
<entry><para>Menubar</para></entry>
284
<entry><para>Choose <menuchoice><guimenu>File</guimenu><guimenuitem>Open</guimenuitem></menuchoice>.</para>
285
<para>If you have recently opened the file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Open Recent</guimenuitem></menuchoice>.</para>
289
<entry><para>Toolbar</para></entry>
290
<entry><para>Click on the <guibutton>Open</guibutton> toolbar button.</para></entry>
293
<entry><para>Right-click popup menu</para></entry>
294
<entry><para>Right-click on the file in a file manager window, then choose <guilabel>Open With</guilabel> from the popup menu. </para></entry>
297
<entry><para>Shortcut keys</para></entry>
298
<entry><para>Press <keycombo><keycap>Ctrl</keycap><keycap>O</keycap></keycombo>.</para></entry>
305
This manual documents functionality from the menubar.
308
<!-- ============= To Open a File ============================= -->
309
<sect2 id="gedit-open-file">
310
<title>To Open a File</title>
311
<para>To open a file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Open</guimenuitem></menuchoice> to display the <guilabel>Open File</guilabel> dialog. Select the file that you want to open, then click <guibutton>Open</guibutton>. The file is displayed in the <application>&app;</application> window. </para>
312
<para>You can open multiple files in <application>&app;</application>. The application displays one file at a time in the application window. The application adds a tab for each open file to the window. To display another open file, click on the tab that corresponds to the file. To create a new <application> &app;</application> window for each file that is open, drag the tab corresponding to each file to the desktop background. </para>
313
<para>You can also use the <guimenu>Documents</guimenu> menu to move between the open files. You can choose <menuchoice> <guimenu>Documents</guimenu> <guimenuitem>Move to New Window</guimenuitem> </menuchoice> to move a document to a new <application> &app;</application> window.
315
<para>The application records the paths and filenames of the five most recent files that you edited and displays the files as menu items on the <menuchoice><guimenu>File</guimenu></menuchoice> menu. You can also click on the <inlinemediaobject><imageobject><imagedata fileref="figures/gedit_recent_files_menu_icon.png" format="PNG"/></imageobject><textobject><phrase>Shows Recent Files menu icon.</phrase></textobject></inlinemediaobject> icon on the toolbar to display the list of recent files. </para>
317
<!-- ============= To Open Multiple Files from the Command Line ========= -->
318
<sect2 id="gedit-run-from-cmd-line">
319
<title>To Open Multiple Files from a Command Line</title>
320
<para>You can run <application>&app;</application> from a command line and open a single file or multiple files. To open multiple files from a command line, type the following command, then press <keycap>Return</keycap>:</para>
321
<para><command>gedit <replaceable>file1.txt file2.txt file3.txt</replaceable></command></para>
322
<para>When the application starts, the files that you specify are displayed in the <application>&app;</application> window.</para>
323
<para>For more information on how to run <application>&app;</application> from a command line, see <ulink url="man:gedit" type="man"><citerefentry><refentrytitle>&app;</refentrytitle><manvolnum>1</manvolnum></citerefentry></ulink>.</para>
326
<!-- ================ Usage ================================ -->
327
<sect1 id="gedit-usage">
330
<!-- ============= To Create a New File ======================== -->
331
<sect2 id="gedit-create-new-file">
332
<title>To Create a New File</title>
333
<para>To create a new file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>New</guimenuitem></menuchoice>. The application displays a new file in the <application>&app;</application> window.</para>
335
<!-- ============= To Save a File ============================== -->
336
<sect2 id="gedit-save-file">
337
<title>To Save a File</title>
338
<para>You can save files in the following ways:</para>
340
<listitem><para>To save changes to an existing file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Save</guimenuitem></menuchoice>. </para>
342
<listitem><para>To save a new file or to save an existing file under a new filename, choose <menuchoice> <guimenu>File</guimenu> <guimenuitem>Save As</guimenuitem> </menuchoice>. Enter a name for the file in the <guilabel>Save As</guilabel> dialog, then click <guibutton>Save</guibutton>. </para>
344
<listitem><para>To save all of the files that are currently open in <application>&app;</application>, choose <menuchoice> <guimenu>Documents</guimenu> <guimenuitem>Save All</guimenuitem> </menuchoice>.</para>
347
<para>To close all of the files that are currently open in <application>&app;</application>, choose <menuchoice> <guimenu>Documents</guimenu> <guimenuitem>Close All</guimenuitem> </menuchoice>.</para>
349
<!-- ============= To Edit Text ================================ -->
350
<sect2 id="gedit-edit-text">
351
<title>To Edit Text</title>
352
<para>You can edit the text of a file in the following ways:</para>
354
<listitem><para>Type new text from the keyboard. </para>
356
<listitem><para>To copy the selected text to a buffer, choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Copy</guimenuitem> </menuchoice>.</para>
358
<listitem><para>To delete the selected text from the file and move the selected text to a buffer, choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Cut</guimenuitem> </menuchoice>.</para>
360
<listitem><para>To permanently delete the selected text from the file, choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Delete</guimenuitem> </menuchoice>.</para>
362
<listitem><para>To insert the contents of the buffer at the cursor position, choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Paste</guimenuitem> </menuchoice>. You must cut or copy text before you can paste text into the file.</para>
364
<listitem><para>To select all of the text in a file, choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Select All</guimenuitem> </menuchoice>. </para>
368
<!-- ============== To Undo or Redo Edits ====================== -->
369
<sect2 id="gedit-undo-redo-edits">
370
<title>To Undo or Redo Edits</title>
371
<para>To undo an edit, choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Undo</guimenuitem> </menuchoice>. To redo an edit, choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Redo</guimenuitem> </menuchoice>. The number of previous edits that you can undo is determined by the <guilabel>Undo</guilabel> limit setting in the <xref linkend="gedit-prefs-editor"/> tabbed section of the <guilabel>Preferences</guilabel> dialog. </para>
373
<!-- ============= To Find Text ================================ -->
374
<sect2 id="gedit-find-text">
375
<title>To Find Text</title>
376
<para>To search a file for a string, perform the following steps:</para>
378
<listitem><para>Choose <menuchoice> <guimenu>Search</guimenu> <guimenuitem>Find</guimenuitem> </menuchoice> to display the <guilabel>Find</guilabel> dialog.</para>
380
<listitem><para>Type the string that you want to find, in the <guilabel>Search for</guilabel> field.</para>
381
<para>You can include the following escape sequences:</para>
384
<para><literal>\n</literal></para>
385
<para>Use this escape sequence to specify a new line.</para>
388
<para><literal>\t</literal></para>
389
<para>Use this escape sequence to specify a tab character.</para>
392
<para><literal>\r</literal></para>
393
<para>Use this escape sequence to specify a carriage return.</para>
397
<listitem><para>Select the <guilabel>Match case</guilabel> option to only find occurrences of the string that match the case of the text that you type. </para>
399
<listitem><para>Select the <guilabel>Match entire word only</guilabel> option to only find occurrences of the string that match the entire words of the text that you type. </para>
401
<listitem><para>Select the <guilabel>Search backwards</guilabel> option to search backwards to the beginning of the file. </para>
403
<listitem><para>Select the <guilabel>Wrap around</guilabel> option to search to one end of the file and then continue the search from the other end of the file. </para>
405
<listitem><para>Click <guibutton>Find</guibutton> to search the file for the first occurrence of the string. If <application>&app;</application> finds the string, the application moves the cursor to the string, and selects the string.</para>
407
<listitem><para>To find the next occurrence of the string, click <guibutton>Find</guibutton> or choose <menuchoice> <guimenu>Search</guimenu> <guimenuitem>Find Next</guimenuitem> </menuchoice>. To find the previous occurrence of the string, choose <menuchoice> <guimenu>Search</guimenu> <guimenuitem>Find Previous</guimenuitem> </menuchoice>.</para>
409
<listitem><para>To finish the search, click <guibutton>Close</guibutton>. </para>
413
<!-- ============= To Find and Replace Text =================== -->
414
<sect2 id="gedit-find-replace-text">
415
<title>To Find and Replace Text</title>
416
<para>To search a file for a string, and replace the string with an alternative string, perform the following steps:</para>
418
<listitem><para>Choose <menuchoice> <guimenu>Search</guimenu> <guimenuitem>Replace</guimenuitem> </menuchoice> to display the <guilabel>Replace</guilabel> dialog.</para>
420
<listitem><para>Type the string that you want to find, in the <guilabel>Search for</guilabel> field. </para>
421
<para>You can include the following escape sequences:</para>
424
<para><literal>\n</literal></para>
425
<para>Use this escape sequence to specify a new line.</para>
428
<para><literal>\t</literal></para>
429
<para>Use this escape sequence to specify a tab character.</para>
432
<para><literal>\r</literal></para>
433
<para>Use this escape sequence to specify a carriage return.</para>
437
<listitem><para>Type the string that you want to use to replace the string that you find, in the <guilabel>Replace with</guilabel> field.</para>
439
<listitem><para>Select the <guilabel>Match case</guilabel> option to only find occurrences of the string that match the case of the text that you enter. </para>
441
<listitem><para>Select the <guilabel>Match entire word only</guilabel> option to only find occurrences of the string that match the entire words of the text that you type. </para>
443
<listitem><para>Select the <guilabel>Search backwards</guilabel> option to search backwards to the beginning of the file. </para>
445
<listitem><para>Select the <guilabel>Wrap around</guilabel> option to search to one end of the file and then continue the search from the other end of the file. </para>
447
<listitem><para>Click <guibutton>Find</guibutton> to search the file for the first occurrence of the string. If <application>&app;</application> finds the string, the application moves the cursor to the string, and selects the string. </para>
449
<listitem><para>Click <guibutton>Replace</guibutton> to replace the occurrence of the string with the text in the <guilabel>Replace with</guilabel> field. Click <guibutton>Replace All</guibutton> to replace all occurrences of the string.</para>
451
<listitem><para>To find the next occurrence of the string, click <guibutton>Find</guibutton>.</para>
453
<listitem><para>To finish the search, click <guibutton>Close</guibutton>. </para>
457
<!-- ============= To Open a File from a URI ======================= -->
458
<sect2 id="gedit-open-from-uri">
459
<title>To Open a File from a URI</title>
460
<para>To open a file from a Uniform Resource Identifier (URI), perform the following steps:</para>
463
<para>Choose <menuchoice> <guimenu>File</guimenu> <guimenuitem>Open Location</guimenuitem> </menuchoice> to display the <guilabel>Open Location</guilabel> dialog. </para>
466
<para>Enter the URI of the file that you want to open.</para>
469
<para>Use the <guilabel>Character coding</guilabel> drop-down list to select the appropriate character coding. </para>
472
<para>Click <guibutton>Open</guibutton>.</para>
475
<para>Alternatively, type <command>gedit <replaceable>URI</replaceable></command> at a command line, where <replaceable>URI</replaceable> is the URI of the file that you want to open, then press <keycap>Return</keycap>. Valid types of <replaceable>URI</replaceable> include <literal>http:</literal>, <literal>ftp:</literal>, <literal>file:</literal>, and all of the methods supported by <literal>gnome-vfs</literal>.</para>
476
<para>The application opens the file located at the URI in read-only mode.</para>
478
<!-- ============= To Pipe the Output of a Command to a File ======= -->
479
<sect2 id="gedit-pipe-output">
480
<title>To Pipe the Output of a Command to a File</title>
481
<para>You can use <application>&app;</application> to pipe the output of a command to a text file. For example, to pipe the output of an <command>ls</command> command to a text file, type <command>ls | gedit</command>, then press <keycap>Return</keycap>.</para>
482
<para>The output of the <command>ls</command> command is displayed in a new text file in the <application>&app;</application> window.</para>
483
<para>Alternatively, you can use the Shell command plugin to pipe command output to the current file. For information about how to use the Shell command plugin, see <xref linkend="gedit-shell-command-plugin"/>.</para>
485
<!-- ============= To Position the Cursor on a Specific Line ======================= -->
486
<sect2 id="gedit-goto-line">
487
<title>To Position the Cursor on a Specific Line</title>
488
<para>To position the cursor on a specific line in the current file, perform the following steps:</para>
490
<listitem><para>Choose <menuchoice> <guimenu>Search</guimenu> <guimenuitem>Go to Line</guimenuitem> </menuchoice> to display the <guilabel>Go to Line</guilabel> dialog.</para>
492
<listitem><para>Type the number of the line that you want to move the cursor to in the <guilabel>Line number</guilabel> field.</para>
494
<listitem><para>Click <guibutton>Go to Line</guibutton>. The application moves the cursor to the line number that you specify.</para>
496
<listitem><para>To close the <guilabel>Go to Line</guilabel> dialog, click <guibutton>Close</guibutton>.</para>
500
<!-- ============= To Set the Page Options ============================ -->
501
<sect2 id="gedit-page-setup">
502
<title>To Set the Page Options</title>
504
<para>To set the page options, choose <menuchoice> <guimenu>File</guimenu> <guimenuitem>Page Setup</guimenuitem> </menuchoice> to display the <guilabel>Page Setup</guilabel> dialog.</para>
506
<para>The <guilabel>Page Setup</guilabel> dialog enables you to specify the following print options:</para>
508
<sect3 id="gedit-page-setup-general">
509
<title>General Tabbed Section</title>
511
<varlistentry> <term><guilabel>Print syntax highlighting</guilabel> </term>
513
<para>Select this option to print syntax highlighting. For more information about syntax highlighting, see <xref linkend="gedit-set-highlightmode"/>. </para>
516
<varlistentry> <term><guilabel>Print page headers</guilabel> </term>
518
<para>Select this option to include a header on each page that you print. You cannot configure the header. </para>
521
<varlistentry> <term><guilabel>Line Numbers</guilabel>
524
<para>Select the <guilabel>Print line numbers</guilabel> option to include line numbers when you print a file. </para>
525
<para>Use the <guilabel>Number every ... lines </guilabel> spin box to specify how often to print the line numbers, for example every 5 lines, every 10 lines, and so on. </para>
528
<varlistentry> <term><guilabel>Text Wrapping</guilabel> </term>
530
<para>Select the <guilabel>Enable text wrapping</guilabel> option to wrap text onto the next line, at a character level, when you print a file. The application counts wrapped lines as one line for line numbering purposes.
532
<para>Select the <guilabel>Do not split words over two lines</guilabel> option to wrap text onto the next line, at a word level, when you print a file.
539
<sect3 id="gedit-page-setup-fonts">
542
<varlistentry> <term><guilabel>Body</guilabel> </term>
544
<para>Click on this button to select the font to use to print the body text of a file.</para>
547
<varlistentry> <term><guilabel>Line numbers</guilabel>
550
<para>Click on this button to select the font to use to print line numbers.</para>
553
<varlistentry> <term><guilabel>Headers and footers</guilabel> </term>
555
<para>Click on this button to select the font to use to print the headers and footers in a file. </para>
559
<para>To reset the fonts to the default fonts for printing a file from <application>&app;</application>, click <guibutton>Restore Default Fonts</guibutton>.</para>
564
<!-- ============= To Print a File ============================ -->
565
<sect2 id="gedit-print-file">
566
<title>To Print a File</title>
567
<para>You can use <application>&app;</application> to perform the following print operations:</para>
569
<listitem><para>Print a file to a printer. </para>
571
<listitem><para>Print the output of the print command to a file.</para>
574
<para>If you print to a file, <application>&app;</application> sends the output of the file to a pre-press format file. The most common pre-press formats are PostScript and Portable Document Format (PDF).</para>
576
<para>To preview the pages that you want to print, choose <menuchoice> <guimenu>File</guimenu> <guimenuitem>Print Preview</guimenuitem> </menuchoice>.</para>
578
<para>To print the current file to a printer or a file, choose <menuchoice> <guimenu>File</guimenu> <guimenuitem>Print</guimenuitem> </menuchoice> to display the <guilabel>Print</guilabel> dialog.</para>
580
<para>The <guilabel>Print</guilabel> dialog enables you to specify the following print options:</para>
582
<sect3 id="print-dialog-job">
583
<title>Job Tabbed Section</title>
585
<varlistentry> <term><guilabel>Print range</guilabel> </term>
587
<para>Select one of the following options to determine how many pages to print:</para>
590
<para><guilabel>All</guilabel></para>
591
<para>Select this option to print all of the pages in the file.</para>
594
<para><guilabel>Lines</guilabel></para>
595
<para>Select this option to print the specified lines only. Use the <guilabel>From</guilabel> and <guilabel>To</guilabel> spin boxes to specify the line range.</para>
598
<para><guilabel>Selection</guilabel></para>
599
<para>Select this option to print the selected text only. This option is only available if you select text.</para>
605
<varlistentry> <term><guilabel>Copies</guilabel> </term>
607
<para>Use the <guilabel>Number of copies</guilabel> spin box to specify the number of copies of the file that you want to print.</para>
608
<para>If you print multiple copies of the file, select the <guilabel>Collate</guilabel> option to collate the printed copies.</para>
614
<sect3 id="print-dialog-printer">
615
<title>Printer Tabbed Section</title>
617
<varlistentry> <term><guilabel>Printer</guilabel> </term>
619
<para>Use this drop-down list to select the printer to which you want to print the file.</para>
622
<varlistentry> <term><guilabel>Settings</guilabel> </term>
624
<para>Use this drop-down list to select the printer settings.
626
<para>To configure the printer, click <guibutton>Configure</guibutton>. For example, you can enable or disable duplex printing, or schedule delayed printing, if this functionality is supported by the printer.
630
<varlistentry> <term><guilabel>Location</guilabel> </term>
633
Use this drop-down list to select one of the following print destinations:
637
<term><guilabel>CUPS</guilabel></term>
640
Print the file to a CUPS printer.
644
If the selected printer is a CUPS printer, <guilabel>CUPS</guilabel> is the only entry in this drop-down list.
650
<term><guilabel>lpr</guilabel></term>
653
Print the file to a printer.
658
<term><guilabel>File</guilabel></term>
661
Print the file to a PostScript file.
664
Click <guibutton>Save As</guibutton> to display a dialog where you specify the name and location of the PostScript file.
669
<term><guilabel>Custom</guilabel></term>
672
Use the specified command to print the file.
675
Type the name of the command in the text box. Include all command-line arguments.
682
<varlistentry> <term><guilabel>State</guilabel> </term>
684
<para>This functionality is not supported in this version of &app;.
688
<varlistentry> <term><guilabel>Type</guilabel> </term>
690
<para>This functionality is not supported in this version of &app;.
694
<varlistentry> <term><guilabel>Comment</guilabel> </term>
696
<para>This functionality is not supported in this version of &app;.
703
<sect3 id="print-dialog-paper">
704
<title>Paper Tabbed Section</title>
706
<varlistentry> <term><guilabel>Paper size</guilabel> </term>
708
<para>Use this drop-down list to select the size of the paper to which you want to print the file.</para>
711
<varlistentry> <term><guilabel>Width</guilabel> </term>
713
<para>Use this spin box to specify the width of the paper. Use the adjacent drop-down list to change the measurement unit.</para>
716
<varlistentry> <term><guilabel>Height</guilabel> </term>
718
<para>Use this spin box to specify the height of the paper.</para>
721
<varlistentry> <term><guilabel>Feed orientation</guilabel> </term>
723
<para>Use this drop-down list to select the orientation of the paper in the printer.</para>
726
<varlistentry> <term><guilabel>Page orientation</guilabel> </term>
728
<para>Use this drop-down list to select the page orientation.</para>
731
<varlistentry> <term><guilabel>Layout</guilabel> </term>
733
<para>Use this drop-down list to select the page layout. A preview of each layout that you select is displayed in the <guilabel>Preview</guilabel> area.</para>
736
<varlistentry> <term><guilabel>Paper tray</guilabel> </term>
738
<para>Use this drop-down list to select the paper tray.
746
<sect2 id="gedit-customize-toolbar">
747
<title>To Customize the Toolbar</title>
748
<para>To display or hide the toolbar, choose <menuchoice> <guimenu>View</guimenu> <guimenuitem>Toolbar</guimenuitem> </menuchoice>. To customize how <application>&app;</application> displays the toolbar, choose <menuchoice> <guimenu>View</guimenu> <guisubmenu>Customize Toolbar</guisubmenu> </menuchoice>, then select one of the following menu items:</para>
751
<para><guimenuitem>Desktop Default</guimenuitem></para>
752
<para>Display the default toolbar.</para>
755
<para><guimenuitem>Icons Only</guimenuitem></para>
756
<para>Display icons only.</para>
759
<para><guimenuitem>Text for All Icons</guimenuitem></para>
760
<para>Display icons, and display text for all icons.</para>
763
<para><guimenuitem>Text for Important Icons</guimenuitem></para>
764
<para>Display icons, and display text for the important icons.</para>
767
<para>To display or hide the output window, choose <menuchoice> <guimenu>View</guimenu> <guimenuitem>Output Window</guimenuitem> </menuchoice>.</para>
771
<sect2 id="gedit-set-highlightmode">
772
<title>To Set the Syntax Highlighting Mode</title>
773
<para>To set the syntax highlighting mode, choose <menuchoice> <guimenu>View</guimenu> <guimenuitem>Highlight Mode</guimenuitem> </menuchoice>, then select one of the following menu items:</para>
776
<term><guimenuitem>Normal</guimenuitem></term>
778
<para>Do not display any syntax highlighting.</para>
782
<term><guisubmenu>Sources</guisubmenu></term>
784
<para>Display syntax highlighting to edit source code. Use the <guisubmenu>Sources</guisubmenu> submenu to select one of the following source code types: <guimenuitem>Verilog</guimenuitem>, <guimenuitem>PHP</guimenuitem>, <guimenuitem>SQL</guimenuitem>, <guimenuitem>IDL</guimenuitem>, <guimenuitem>C</guimenuitem>, <guimenuitem>Ada</guimenuitem>, <guimenuitem>C++</guimenuitem>, <guimenuitem>C#</guimenuitem>, or <guimenuitem>Java</guimenuitem>.</para>
788
<term><guisubmenu>Markup</guisubmenu></term>
790
<para>Display syntax highlighting to edit markup code. Use the <guisubmenu>Markup</guisubmenu> submenu to select one of the following markup code types: <guimenuitem>HTML</guimenuitem>, <guimenuitem>LaTeX</guimenuitem>, or <guimenuitem>XML</guimenuitem>.</para>
794
<term><guisubmenu>Scripts</guisubmenu></term>
796
<para>Display syntax highlighting to edit script code. Use the <guisubmenu>Scripts</guisubmenu> submenu to select one of the following script code types: <guimenuitem>Python</guimenuitem> or <guimenuitem>Perl</guimenuitem>.</para>
800
<term><guisubmenu>Others</guisubmenu></term>
802
<para>Display syntax highlighting to edit other types of code. Use the <guisubmenu>Others</guisubmenu> submenu to select one of the following code types: <guimenuitem>MSIL</guimenuitem>, <guimenuitem>gettext translation</guimenuitem>, <guimenuitem>.desktop</guimenuitem>, or <guimenuitem>Diff</guimenuitem>.</para>
806
<para>For more information about how to configure syntax highlighting, see <xref linkend="gedit-prefs-syntax"/>.
811
<!-- ============= Preferences ============================= -->
812
<sect1 id="gedit-prefs">
813
<title>Preferences</title>
815
<para>To configure <application>&app;</application>, choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Preferences</guimenuitem> </menuchoice>. The <guilabel>Preferences</guilabel> dialog contains the following categories:</para>
817
<listitem><para><xref linkend="gedit-prefs-editor"/></para></listitem>
818
<listitem><para><xref linkend="gedit-prefs-view"/></para></listitem>
819
<listitem><para><xref linkend="gedit-prefs-fontsandcolors"/></para></listitem>
820
<listitem><para><xref linkend="gedit-prefs-syntax"/></para></listitem>
821
<listitem><para><xref linkend="gedit-prefs-plugins"/></para></listitem>
824
<sect2 id="gedit-prefs-editor">
825
<title>Editor</title>
827
<varlistentry> <term><guilabel>Tabs</guilabel> </term>
829
<para>Use the <guilabel>Tabs width</guilabel> spin box to specify the width of the space that <application> &app;</application> inserts when you press the <keycap>Tab</keycap> key. </para>
830
<para>Select the <guilabel>Insert spaces instead of tabs</guilabel> option to specify that <application> &app;</application> inserts spaces instead of a tab character when you press the <keycap>Tab</keycap> key. </para>
833
<varlistentry> <term><guilabel>Auto Indentation</guilabel> </term>
834
<listitem> <para>Select the <guilabel>Enable auto indentation</guilabel> option to specify that the next line starts at the indentation level of the current line. </para>
837
<varlistentry> <term><guilabel>File Saving</guilabel> </term>
839
<para>Select the <guilabel>Create a backup copy of files before saving</guilabel> option to create a backup copy of a file each time you save the file. The backup copy of the file contains a ~ at the end of the filename.</para>
840
<para>Select the <guilabel>Autosave files every ... minutes</guilabel> option to automatically save the current file at regular intervals. Use the spin box to specify how often you want to save the file.</para>
843
<varlistentry> <term><guilabel>Undo</guilabel> </term>
845
<para>Select the <guilabel>Limit to ... actions</guilabel> option to set a limit on the number of editing actions that you can undo. Use the spin box to specify the maximum number of actions that you can undo. </para>
846
<para>Select the <guilabel>Unlimited undo</guilabel> option to set no limit on the number of editing actions that you can undo. </para>
852
<sect2 id="gedit-prefs-view">
855
<varlistentry> <term><guilabel>Text Wrapping</guilabel> </term>
857
<para>Select the <guilabel>Enable text wrapping</guilabel> option to wrap text onto the next line, at a character level, when you reach the text window boundary. </para>
858
<para>Select the <guilabel>Do not split words over two lines</guilabel> option to wrap text onto the next line, at a word level, when you reach the text window boundary. </para>
862
<term><guilabel>Line Numbers</guilabel></term>
864
<para>Select the <guilabel>Display line numbers</guilabel> option to display line numbers on the left side of the <application>&app;</application> window. </para>
868
<term><guilabel>Right Margin</guilabel></term>
870
<para>Select the <guilabel>Display right margin</guilabel> option to display a vertical line that indicates the right margin. </para>
871
<para>Use the <guilabel>Right margin at column</guilabel> spin box to specify the location of the vertical line. </para>
877
<sect2 id="gedit-prefs-fontsandcolors">
878
<title>Font & Colors</title>
880
<varlistentry> <term><guilabel>Font</guilabel> </term>
882
<para>Select the <guilabel>Use default theme font</guilabel> option to use the default system font for the text in the <application>&app;</application> text window. </para>
883
<para>The <guilabel>Editor font</guilabel> field displays the font that <application>&app;</application> uses to display text. Click on the button to specify the font type, style, and size to use for text. </para>
886
<varlistentry> <term><guilabel>Colors</guilabel> </term>
888
<para>Select the <guilabel>Use default theme colors</guilabel> option to use the default theme colors in the <application>&app;</application> text window. </para>
889
<para>Click on the <guibutton>Normal text color</guibutton> color button to display the color selector dialog. Select a color to use to display normal text in the <application>&app;</application> text window. </para>
890
<para>Click on the <guibutton>Background color</guibutton> color button to display the color selector dialog. Select a background color for the <application>&app;</application> text window. </para>
891
<para>Click on the <guibutton>Selected text color</guibutton> color button to display the color selector dialog. Select a color to use to display selected text.
893
<para>Click on the <guibutton>Selection color</guibutton> color button to display the color selector dialog. Select a background color to use to highlight a text selection. </para>
899
<sect2 id="gedit-prefs-syntax">
900
<title>Syntax Highlighting</title>
902
<varlistentry> <term><guilabel>Enable syntax highlighting</guilabel> </term>
904
<para>Select this option to highlight the syntax of the text that you edit. </para>
907
<varlistentry> <term><guilabel>Highlight mode</guilabel> </term>
909
<para>Use this drop-down list to select a syntax mode to configure. </para>
912
<varlistentry> <term><guilabel>Elements</guilabel> </term>
914
<para>Use this list box to select a syntax element to configure. </para>
917
<varlistentry> <term>Format buttons </term>
919
<para>Use the following buttons to change the format of the selected syntax element: </para>
920
<informaltable frame="all">
921
<tgroup cols="2" colsep="1" rowsep="1">
922
<colspec colname="COLSPEC0" colwidth="50*"/>
923
<colspec colname="COLSPEC1" colwidth="50*"/>
926
<entry colname="COLSPEC0">
927
<para>Button</para></entry>
928
<entry colname="COLSPEC1">
929
<para>Format</para></entry>
938
<imagedata fileref="figures/gedit_format_bold.png" format="PNG"/>
941
<phrase>Shows icon for bold format.</phrase>
957
<imagedata fileref="figures/gedit_format_italic.png" format="PNG"/> </imageobject>
959
<phrase>Shows icon for italic format.</phrase>
975
<imagedata fileref="figures/gedit_format_underline.png" format="PNG"/> </imageobject>
977
<phrase>Shows icon for underline.</phrase>
993
<imagedata fileref="figures/gedit_format_strikethrough.png" format="PNG"/> </imageobject>
995
<phrase>Shows icon for strikethrough.</phrase>
1011
<varlistentry> <term><guilabel>Foreground</guilabel> </term>
1013
<para>Select this option to change the font color of the selected syntax element. Click on the color button to display the color selector dialog, then select the font color.</para>
1016
<varlistentry> <term><guilabel>Background</guilabel> </term>
1018
<para>Select this option to change the background color of the selected syntax element. Click on the color button to display the color selector dialog, then select the background color.</para>
1021
<varlistentry> <term><guibutton>Reset to Default</guibutton> </term>
1023
<para>Click on this button to reset the foreground color and background color of the selected syntax element to the default values.</para>
1029
<sect2 id="gedit-prefs-plugins">
1030
<title>Plugins</title>
1031
<para>For information about how to use the <guilabel>Plugins</guilabel> category of the <guilabel>Preferences</guilabel> dialog, see <xref linkend="gedit-install-plugins"/>. </para>
1035
<!-- ============= To Use the gedit Plugins ========================= -->
1036
<sect1 id="gedit-plugins">
1037
<title>Working with Plugins</title>
1038
<para>A plugin is a supplementary program that enhances the functionality of an application. The <application>&app;</application> plugins enable you to perform a variety of functions related to text editing from within the <application> &app;</application> window. The following table lists the <application> &app;</application> plugins.</para>
1039
<informaltable frame="topbot">
1041
<colspec colname="col1"/>
1042
<colspec colname="col2"/>
1045
<entry colname="col1" colsep="0" valign="top"><para>Plugin Name</para></entry>
1046
<entry colname="col2" valign="top"><para>Purpose</para></entry>
1051
<entry><para>ASCII table</para></entry>
1052
<entry><para>Displays a dialog that contains an ASCII table. You can use the ASCII table to insert characters into a file.</para></entry>
1055
<entry><para>Compare files</para></entry>
1056
<entry><para>Compares two files and displays the differences between the files in the output window. This plugin uses the <command>diff</command> command to compare the files.</para></entry>
1059
<entry><para>CVS ChangeLog</para></entry>
1060
<entry><para>Opens the log messages associated with CVS commit commands.</para></entry>
1063
<entry><para>Document Statistics</para></entry>
1064
<entry><para>Counts the number of lines, words, characters with spaces, characters without spaces, and bytes in the current file. The plugin displays the results in a <guilabel>Document Statistics</guilabel> dialog. </para></entry>
1067
<entry><para>Indent lines</para></entry>
1068
<entry><para>Indents the selected lines, or removes the indentation from the selected lines.</para></entry>
1071
<entry><para>Insert Date/Time</para></entry>
1072
<entry><para>Inserts the current date and time into a file.</para></entry>
1075
<entry><para>Shell command</para></entry>
1076
<entry><para>Displays the text output of a shell command in the output window. </para></entry>
1079
<entry><para>Sort</para></entry>
1080
<entry><para>Sorts the selected text. </para></entry>
1083
<entry><para>Spell checker</para></entry>
1084
<entry><para>Checks the spelling in the selected text. You can configure <application>&app;</application> to check the spelling automatically, or you can check the spelling manually, in the specified language.</para></entry>
1088
<entry><para>Tag list</para></entry>
1089
<entry><para>Displays a window that contains a list of common tags. You can use the window to insert a tag into a file. </para></entry>
1092
<entry><para>User name</para></entry>
1093
<entry><para>Inserts the username of the current user into the file. </para></entry>
1098
<para>When you choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Preferences</guimenuitem> </menuchoice>, the <guilabel>Plugins</guilabel> tabbed section displays the following information:</para>
1100
<listitem><para>A table that contains two columns: </para>
1103
<term><guilabel>Enabled</guilabel></term>
1105
<para>Displays check boxes that you select to load the plugins.</para>
1109
<term><guilabel>Plugin</guilabel></term>
1111
<para>Displays a list of the plugins that you can use with <application>&app;</application>.</para>
1116
<listitem><para>An <guibutton>About Plugin</guibutton> button: use this button to display a brief description of the selected plugin, including details about the author of the plugin. </para>
1118
<listitem><para>A <guibutton>Configure Plugin</guibutton> button: use this button to open a configuration dialog for the selected plugin, if that plugin is configurable. For example, see <xref linkend="gedit-compare-files-configure"/> and <xref linkend="gedit-date-time-configure"/>.</para>
1121
<para>When you load a plugin, <application>&app;</application> adds the plugin to the appropriate <application>&app;</application> menu, as described in the following table.</para>
1122
<informaltable frame="topbot">
1124
<colspec colname="col1"/>
1125
<colspec colname="col2"/>
1128
<entry colname="col1" colsep="0" valign="top"><para>Plugin Name</para></entry>
1129
<entry colname="col2" valign="top"><para>Added to Menu</para></entry>
1134
<entry><para>ASCII table</para></entry>
1135
<entry><para><menuchoice><guimenu>View</guimenu>
1136
<guimenuitem>ASCII Table</guimenuitem></menuchoice></para></entry>
1139
<entry><para>Compare files</para></entry>
1140
<entry><para><menuchoice><guimenu>Tools</guimenu>
1141
<guimenuitem>Compare Files</guimenuitem></menuchoice></para></entry>
1144
<entry><para>CVS ChangeLog</para></entry>
1145
<entry><para><menuchoice><guimenu>File</guimenu>
1146
<guimenuitem>Open CVS ChangeLogs</guimenuitem></menuchoice></para></entry>
1149
<entry><para>Document Statistics</para></entry>
1150
<entry><para><menuchoice><guimenu>Tools</guimenu>
1151
<guimenuitem>Document Statistics</guimenuitem></menuchoice></para></entry>
1154
<entry><para>Indent lines</para></entry>
1155
<entry><para><menuchoice><guimenu>Edit</guimenu>
1156
<guimenuitem>Indent</guimenuitem></menuchoice></para>
1157
<para><menuchoice><guimenu>Edit</guimenu>
1158
<guimenuitem>Unindent</guimenuitem></menuchoice></para></entry>
1161
<entry><para>Insert Date/Time</para></entry>
1162
<entry><para><menuchoice><guimenu>Edit</guimenu>
1163
<guimenuitem>Insert Date and Time</guimenuitem></menuchoice></para></entry>
1166
<entry><para>Shell command</para></entry>
1167
<entry><para><menuchoice><guimenu>Tools</guimenu>
1168
<guimenuitem>Run Command</guimenuitem></menuchoice></para></entry>
1171
<entry><para>Sort</para></entry>
1172
<entry><para><menuchoice><guimenu>Edit</guimenu>
1173
<guimenuitem>Sort</guimenuitem></menuchoice></para></entry>
1176
<entry><para>Spell checker</para></entry>
1178
<para><menuchoice><guimenu>Tools</guimenu>
1179
<guimenuitem>Check Spelling</guimenuitem></menuchoice></para>
1180
<para><menuchoice><guimenu>Tools</guimenu>
1181
<guimenuitem>Autocheck Spelling</guimenuitem></menuchoice></para>
1182
<para><menuchoice><guimenu>Tools</guimenu>
1183
<guimenuitem>Set Language</guimenuitem></menuchoice></para>
1187
<entry><para>Tag list</para></entry>
1188
<entry><para><menuchoice><guimenu>View</guimenu>
1189
<guimenuitem>Tag List</guimenuitem></menuchoice></para></entry>
1192
<entry><para>User name</para></entry>
1193
<entry><para><menuchoice><guimenu>Edit</guimenu>
1194
<guimenuitem>Insert User Name</guimenuitem></menuchoice></para></entry>
1199
<!-- ============= To Load gedit Plugins ========================= -->
1200
<sect2 id="gedit-install-plugins">
1201
<title>To Load a &app; Plugin</title>
1202
<para>To load a <application>&app;</application> plugin, perform the following steps:</para>
1205
<para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Preferences</guimenuitem> </menuchoice>. </para>
1208
<para>Select the <guilabel>Plugins</guilabel> tab. </para>
1211
<para>Select the check box next to the name of the plugin that you want to load.</para>
1214
<para>Click <guibutton>Close</guibutton> to close the <guilabel>Preferences</guilabel> dialog. </para>
1219
<!-- ============= To Remove gedit Plugins ========================= -->
1220
<sect2 id="gedit-remove-plugins">
1221
<title>To Remove a &app; Plugin</title>
1222
<para>A plugin remains loaded when you quit <application>&app;</application>. </para>
1223
<para>To remove a <application>&app;</application> plugin, perform the following steps:</para>
1226
<para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Preferences</guimenuitem> </menuchoice>. </para>
1229
<para>Select the <guilabel>Plugins</guilabel> tab. </para>
1232
<para>Deselect the check box next to the name of the plugin that you want to remove.</para>
1235
<para>Click <guibutton>Close</guibutton> to close the <guilabel>Preferences</guilabel> dialog. </para>
1241
<sect2 id="gedit-ascii-table-plugin">
1242
<title>To Use the ASCII Table Plugin</title>
1243
<para>The ASCII table plugin displays a dialog that contains an ASCII table. You can use the ASCII table to insert characters into a file. To use the ASCII table plugin, perform the following steps:</para>
1245
<listitem><para>Load the ASCII table plugin. </para>
1247
<listitem><para>Choose <menuchoice> <guimenu>View</guimenu> <guimenuitem>ASCII Table</guimenuitem> </menuchoice> to display the <guilabel>ASCII Table</guilabel> dialog. </para>
1249
<listitem><para>Scroll through the list to find the character that you require, then select the character with a single click.
1252
<listitem><para>Click <guibutton>Insert char</guibutton> to insert the character at the cursor position in the current file.
1255
<listitem><para>When you finish entering ASCII characters, click <guibutton>Close</guibutton> to close the <guilabel>ASCII Table</guilabel> dialog.
1263
<sect2 id="gedit-compare-files-plugin">
1264
<title>To Use the Compare Files Plugin</title>
1265
<para>The Compare files plugin compares two files and displays the differences between the files in the output window. This plugin uses the <command>diff</command> command to compare the files. To use the Compare files plugin, perform the following steps:</para>
1267
<listitem><para>Load the Compare files plugin. </para>
1269
<listitem><para>Choose <menuchoice> <guimenu>Tools</guimenu> <guimenuitem>Compare Files</guimenuitem> </menuchoice>. When you choose this option for the first time, you are prompted to confirm the location of the <command>diff</command> command. You are not prompted for this location again. See <xref linkend="gedit-compare-files-configure"/> for information about how to change this location later.</para>
1270
<para> Click <guibutton>OK</guibutton> to display the <guilabel>Compare Files</guilabel> dialog. </para>
1272
<listitem><para>Specify the files that you want to compare. To specify an open file, select the <guilabel>From document</guilabel> option then select the file from the drop-down list. To specify a closed file, select the <guilabel>From a file on disk</guilabel> option then enter the location of the file in the text box. </para>
1274
<listitem><para>To ignore changes in the amount of white space, select the <guilabel>Ignore blanks (-b option)</guilabel> option. </para>
1276
<listitem><para>To use the unified output format, showing three lines of context, select the <guilabel>Use the unified output format (-u option)</guilabel> option.
1279
<listitem><para>Click <guibutton>Compare</guibutton> to compare the contents of the specified files. The command output is displayed in the output window. </para>
1282
<para>For more information, see <ulink url="man:diff" type="man"><citerefentry><refentrytitle>diff</refentrytitle><manvolnum>1</manvolnum></citerefentry></ulink>. </para>
1284
<sect3 id="gedit-compare-files-configure">
1285
<title>To Configure the Compare Files Plugin</title>
1286
<para>To change the location of the command that the Compare files plugin uses, perform the following steps:</para>
1288
<listitem> <para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Preferences</guimenuitem> </menuchoice>.
1291
<listitem> <para>Select the <guilabel>Plugins</guilabel> tab.
1294
<listitem> <para>Select the <guilabel>Compare Files</guilabel> plugin.
1297
<listitem> <para>Click <guibutton>Configure Plugin</guibutton> to display the <guilabel>Set program location</guilabel> dialog.
1300
<listitem> <para>Specify the location of the <command>diff</command> command in the <guilabel>Location to search for</guilabel> text box.
1303
<listitem> <para>Click <guibutton>OK</guibutton> to close the <guilabel>Set program location</guilabel> dialog.
1306
<listitem> <para>To close the <guilabel>Preferences</guilabel> dialog, click <guibutton>Close</guibutton>.</para>
1312
<sect2 id="gedit-cvs-changelog-plugin">
1313
<title>To Use the CVS ChangeLog Plugin</title>
1314
<para>The CVS ChangeLog plugin opens the log messages associated with CVS commit commands. This plugin enables you to easily paste text into the commit message from the ChangeLog file. To use the CVS ChangeLog plugin, perform the following steps:</para>
1316
<listitem><para>Set the environment variable CVSEDITOR to <application>&app;</application>. For example, if you are using the <command>bash</command> shell, run the following command at the operating system prompt:
1317
<screen> <userinput>export CVSEDITOR=&app;</userinput> </screen>
1320
<listitem><para>Commit a file to CVS in the usual way. A <application>&app;</application> window opens, to enable you to enter the commit message.
1323
<listitem><para>Load the CVS ChangeLog plugin.</para>
1325
<listitem><para>Choose <menuchoice> <guimenu>File</guimenu> <guimenuitem>Open CVS ChangeLogs</guimenuitem> </menuchoice> to open all of the ChangeLog files referenced in the commit message. <application>&app;</application> opens each ChangeLog file in a new tab.</para>
1327
<listitem><para>Copy the ChangeLog entries that you want to add to the commit message from the <application>&app;</application> ChangeLog files.
1330
<listitem><para>Insert the copied ChangeLog entries in the <application>&app;</application> commit message tab.
1333
<listitem><para>Save your changes to the commit message, then close all files.
1336
<listitem><para>Quit <application>&app;</application>. </para>
1341
<sect2 id="gedit-document-statistics-plugin">
1342
<title>To Use the Document Statistics Plugin</title>
1343
<para>The Document Statistics plugin counts the number of lines, words, characters with spaces, characters without spaces, and bytes in the current file. The plugin displays the results in a <guilabel>Document Statistics</guilabel> dialog. To use the Document Statistics plugin, perform the following steps:</para>
1345
<listitem><para>Load the Document Statistics plugin. </para>
1347
<listitem><para>Choose <menuchoice> <guimenu>Tools</guimenu> <guimenuitem>Document Statistics</guimenuitem> </menuchoice> to display the <guilabel>Document Statistics</guilabel> dialog. The <guilabel>Document Statistics</guilabel> dialog displays the following information about the file:
1350
<listitem><para>Number of lines in the current document.
1353
<listitem><para>Number of words in the current document.
1356
<listitem><para>Number of characters, including spaces, in the current document.
1359
<listitem><para>Number of characters, not including spaces, in the current document.
1362
<listitem><para>Number of bytes in the current document.
1367
<listitem><para>You can continue to update the <application>&app;</application> file while the <guilabel>Document Statistics</guilabel> dialog is open. To refresh the contents of the <guilabel>Document Statistics</guilabel> dialog, click <guibutton>Update</guibutton>.
1370
<listitem><para>To close the <guilabel>Document Statistics</guilabel> dialog, click <guibutton>Close</guibutton>.
1376
<sect2 id="gedit-indent-lines-plugin">
1377
<title>To Use the Indent Lines Plugin</title>
1378
<para>The Indent lines plugin indents the selected lines, or removes the indentation from the selected lines. To use the Indent lines plugin, perform the following steps:</para>
1380
<listitem><para>Load the Indent lines plugin. </para>
1382
<listitem><para>Select the lines that you want to indent. To indent or unindent a single line, place the cursor anywhere on that line.
1385
<listitem><para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Indent</guimenuitem> </menuchoice>. </para>
1387
<listitem><para>To remove the indentation, select the lines and choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Unindent</guimenuitem> </menuchoice>.
1393
<sect2 id="gedit-insert-date-time-plugin">
1394
<title>To Use the Insert Date/Time Plugin</title>
1395
<para>The Insert Date/Time plugin inserts the current date and time into a file. To use the Insert Date/Time plugin, perform the following steps:</para>
1397
<listitem><para>Load the Insert Date/Time plugin. </para>
1399
<listitem><para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Insert Date and Time</guimenuitem> </menuchoice>. </para>
1400
<para>If you have not configured the Insert Date/Time plugin to automatically insert the date/time without prompting you for the format, <application>&app;</application> displays the <guilabel>Insert Date and Time</guilabel> dialog. Select the appropriate date/time format from the list. Click <guibutton>Insert</guibutton> to close the <guilabel>Insert Date and Time</guilabel> dialog. <application>&app;</application> inserts the date/time at the cursor position in the current file. </para>
1401
<para>If you have configured <application>&app;</application> to use one particular date/time format, the <guilabel>Insert Date and Time</guilabel> dialog is not displayed. The date/time is automatically entered at the cursor position in the current file. </para>
1402
<para>See <xref linkend="gedit-date-time-configure"/> for information about how to configure the Insert Date/Time plugin.</para>
1406
<sect3 id="gedit-date-time-configure">
1407
<title>To Configure the Insert Date/Time Plugin</title>
1408
<para>To configure the Insert Date/Time plugin, perform the following steps:</para>
1410
<listitem> <para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Preferences</guimenuitem> </menuchoice>.
1413
<listitem> <para>Select the <guilabel>Plugins</guilabel> tab.
1416
<listitem> <para>Select the <guilabel>Insert Date/Time</guilabel> plugin.
1419
<listitem> <para>Click <guibutton>Configure Plugin</guibutton> to display the <guilabel>Configure insert date/time plugin</guilabel> dialog.
1422
<listitem> <para>Select one of the options, as follows: </para>
1424
<listitem><para>To specify the date/time format each time you insert the date/time, select the <guilabel>Prompt for a format</guilabel> option.
1427
<listitem><para>To use the same <application>&app;</application>-provided date/time format each time you insert the date/time, select the <guilabel>Use the selected format</guilabel> option, then select the appropriate format from the list. When you select this option, <application>&app;</application> does not prompt you for the date/time format when you choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Insert Date and Time</guimenuitem> </menuchoice>.
1430
<listitem><para>To use the same customized date/time format each time you insert the date/time, select the <guilabel>Use custom format</guilabel> option, then enter the appropriate format in the text box. For more information about how to specify a custom format, see <ulink url="man:strftime" type="man"><citerefentry><refentrytitle>strftime</refentrytitle><manvolnum>3</manvolnum></citerefentry></ulink>. When you select this option, <application>&app;</application> does not prompt you for the date/time format when you choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Insert Date and Time</guimenuitem> </menuchoice>.
1435
<listitem> <para>Click <guibutton>OK</guibutton> to close the <guilabel>Configure insert date/time plugin</guilabel> dialog.
1438
<listitem> <para>To close the <guilabel>Preferences</guilabel> dialog, click <guibutton>Close</guibutton>.</para>
1444
<sect2 id="gedit-shell-command-plugin">
1445
<title>To Use the Shell Command Plugin</title>
1447
<para>The Shell Command plugin enables you to capture the output from a shell command in <application>&app;</application>, by displaying the text output of the shell command in the output window. To use the Shell command plugin, perform the following steps:</para>
1449
<listitem><para>Load the Shell command plugin. </para>
1452
<listitem><para>Choose <menuchoice> <guimenu>Tools</guimenu> <guimenuitem>Run Command</guimenuitem> </menuchoice> to display the <guilabel>Run Command</guilabel> dialog.
1455
<listitem><para>Type the shell command that you want to execute in the <guilabel>Command</guilabel> field. </para>
1456
<para> You can include the following special characters:</para>
1459
<para><literal>%f</literal></para>
1460
<para>Use these special characters to specify the filename of the current active document, including the path. </para>
1463
<para><literal>%n</literal></para>
1464
<para>Use these special characters to specify the filename of the current active document, without the path. In this case, <application>&app;</application> looks for the file in the Working directory. </para>
1468
<listitem><para>Edit the <guilabel>Working directory</guilabel> field if necessary. By default, the Shell command plugin executes the command you specify in the current directory. </para>
1470
<listitem><para>Select the <guilabel>Show results in Output Window</guilabel> option to display the results of the command in the output window. If you do not select this option, <application>&app;</application> discards the results of the command.
1473
<listitem><para>Click <guibutton>Run</guibutton>. The Shell command plugin executes the command and inserts the text output into the output window.
1476
<listitem><para>Use the <keycap>Shift</keycap> key to select the text in the output window. </para>
1478
<listitem><para>Click <guibutton>Copy selected lines</guibutton> to copy the selected text into the buffer.
1481
<listitem><para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Paste</guimenuitem> </menuchoice> to paste the selected text into the file.
1484
<listitem><para>Click <guibutton>Close the output window</guibutton> to close the output window.
1490
<sect2 id="gedit-sort-plugin">
1491
<title>To Use the Sort Plugin</title>
1492
<para>The Sort plugin sorts the selected text.</para>
1493
<note><para>You cannot undo the Sort operation, so you should save the file before performing the sort. To revert to the saved version of the file after the sort operation, choose <menuchoice> <guimenu>File</guimenu> <guimenuitem>Revert</guimenuitem> </menuchoice>.
1496
<para>To use the Sort plugin, perform the following steps:</para>
1498
<listitem><para>Load the Sort plugin. </para>
1500
<listitem><para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Sort</guimenuitem> </menuchoice> to display the <guilabel>Sort</guilabel> dialog.
1503
<listitem><para>To arrange the text in reverse sort order, select the <guilabel>Reverse order</guilabel> option.
1506
<listitem><para>To delete duplicate lines, select the <guilabel>Remove duplicates</guilabel> option.
1509
<listitem><para>To ignore case sensitivity, select the <guilabel>Ignore case</guilabel> option.
1512
<listitem><para>To specify the start position of the sort, use the <guilabel>Start at column</guilabel> spin box.
1515
<listitem><para>To perform the sort operation, click <guibutton>Sort</guibutton>.
1521
<sect2 id="gedit-spell-checker-plugin">
1522
<title>To Use the Spell Checker Plugin</title>
1523
<para>The Spell checker plugin checks the spelling in the selected text. You can configure <application>&app;</application> to check the spelling automatically, or you can check the spelling manually, in the specified language. The language setting, and the autocheck spelling properties, apply per document. To use the Spell checker plugin, perform the following steps:</para>
1525
<listitem><para>Load the Spell checker plugin. </para>
1527
<listitem><para>Choose <menuchoice> <guimenu>Tools</guimenu> <guimenuitem>Set Language</guimenuitem> </menuchoice> to display the <guilabel>Set language</guilabel> dialog. Select the appropriate language from the list. Click <guibutton>OK</guibutton> to close the <guilabel>Set language</guilabel> dialog.
1530
<listitem><para>To check the spelling automatically, choose <menuchoice> <guimenu>Tools</guimenu> <guimenuitem>Autocheck Spelling</guimenuitem> </menuchoice>. To unset the automatic spell check, choose <menuchoice> <guimenu>Tools</guimenu> <guimenuitem>Autocheck Spelling</guimenuitem> </menuchoice> again. When automatic spell checking is set, an icon is displayed beside the <guimenuitem>Autocheck Spelling</guimenuitem> menu item. Automatic spell checking is unset by default, each time <application>&app;</application> starts.</para>
1531
<para>Unknown spellings are displayed in a different color, and underlined. Right-click on an unknown spelling, then select <guimenu>Spelling Suggestions</guimenu> from the popup menu:
1534
<listitem><para>To replace the unknown spelling with another spelling in the list, select the replacement spelling from the <guimenu>Spelling Suggestions</guimenu> popup menu.
1537
<listitem><para>To add the unknown spelling to your personal dictionary, select <menuchoice> <guimenu>Spelling Suggestions</guimenu> <guimenuitem>Add</guimenuitem> </menuchoice>.
1540
<listitem><para>To ignore all occurrences of the unknown spelling, so that they are no longer flagged as unknown but are not added to your personal dictionary, select <menuchoice> <guimenu>Spelling Suggestions</guimenu> <guimenuitem>Ignore All</guimenuitem> </menuchoice>. The unknown word is ignored in the current <application>&app;</application> session only.
1545
<listitem><para>To check the spelling manually, choose <menuchoice> <guimenu>Tools</guimenu> <guimenuitem>Check Spelling</guimenuitem> </menuchoice>.
1547
<para>If there are no spelling errors, an <guilabel>Information</guilabel> dialog displays a message stating that the document does not contain misspelled words. Click <guibutton>OK</guibutton> to close the <guilabel>Information</guilabel> dialog.
1549
<para>If there are spelling errors, the <guilabel>Check Spelling</guilabel> dialog is displayed:
1552
<listitem><para>The <guilabel>Misspelled word</guilabel> is displayed at the top of the dialog.
1555
<listitem><para>A suggested known spelling is displayed in the <guilabel>Change to</guilabel> text box. You can replace this with another known spelling by selecting a spelling from the <guilabel>Suggestions</guilabel> list, or you can enter text directly into the <guilabel>Change to</guilabel> text box.
1558
<listitem><para>To check the spelling of the text in the <guilabel>Change to</guilabel> text box, click <guibutton>Check Word</guibutton>. If this is a known word, the <guilabel>Suggestions</guilabel> list is replaced with the text <literal>(correct spelling)</literal>. If the word is not known, new entries appear in the <guilabel>Suggestions</guilabel> list.
1561
<listitem><para>To ignore the current occurrence of the unknown word, click <guibutton>Ignore</guibutton>. To ignore all occurrences of the unknown word, click <guibutton>Ignore All</guibutton>. The unknown word is ignored in the current <application>&app;</application> session only.
1564
<listitem><para>To change the current occurrence of the unknown word to the text in the <guilabel>Change to</guilabel> text box, click <guibutton>Change</guibutton>. To change all occurrences of the unknown word to the text in the <guilabel>Change to</guilabel> text box, click <guibutton>Change All</guibutton>.
1567
<listitem><para>To add the unknown word to your personal dictionary, click <guibutton>Add word</guibutton>.
1570
<listitem><para>To close the <guilabel>Check Spelling</guilabel> dialog, click <guibutton>Close</guibutton>.
1578
<sect2 id="gedit-tag-list-plugin">
1579
<title>To Use the Tag List Plugin</title>
1580
<para>The Tag List plugin displays a window that contains a list of common tags. You can use the window to insert a tag into a file. To use the Tag List plugin, perform the following steps:</para>
1582
<listitem><para>Load the Tag List plugin. </para>
1584
<listitem><para>Choose <menuchoice> <guimenu>View</guimenu> <guimenuitem>Tag List</guimenuitem> </menuchoice> to display the <guilabel>Tag list plugin</guilabel> window.
1587
<listitem><para>Select the appropriate tag category from the drop-down list. For example, <literal>HTML - Tags</literal>.
1590
<listitem><para>Scroll through the tag list to find the required tag.
1593
<listitem><para>To insert a tag at the cursor position in the current file, double-click on the tag in the tag list. You can also insert a tag as follows:</para>
1595
<listitem><para>To insert a tag in the current file and change the focus from the <guilabel>Tag list plugin</guilabel> window to the editor window, press <keycap>Return</keycap>.
1598
<listitem><para>To insert a tag in the current file and maintain the focus on the <guilabel>Tag list plugin</guilabel> window, press <keycombo><keycap>Shift</keycap><keycap>Return</keycap></keycombo>.
1603
<listitem><para>To close the <guilabel>Tag list plugin</guilabel> window, click on the <guibutton>Close Window</guibutton> button in the window frame. Alternatively, press <keycombo><keycap>Ctrl</keycap><keycap>W</keycap></keycombo> when the focus is on the <guilabel>Tag list plugin</guilabel> window.
1609
<sect2 id="gedit-user-name-plugin">
1610
<title>To Use the User Name Plugin</title>
1611
<para>The User name plugin inserts the username of the current user into the file. To use the User name plugin, perform the following steps:</para>
1613
<listitem><para>Load the User name plugin. </para>
1615
<listitem><para>Choose <menuchoice> <guimenu>Edit</guimenu> <guimenuitem>Insert User Name</guimenuitem> </menuchoice> to insert your username at the cursor position in the current file.
86
<sect1 id="gnome-nettool-intro">
87
<title>Introduction</title>
88
<para>This is only a template to get the documentation done.
89
It should not be translated.</para>
94
<!-- vi:set ts=2 sw=2 expandtab: -->