PageRenderTime 33ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 1ms

/jEdit/tags/jedit-4-0-pre3/doc/users-guide/files.xml

#
XML | 558 lines | 555 code | 1 blank | 2 comment | 0 complexity | 1632f78bb99911d3dc15360ad3008cd8 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!-- jEdit buffer-local properties: -->
  2. <!-- :tabSize=1:indentSize=1:noTabs=true: -->
  3. <chapter id="files"><title>Working With Files</title>
  4. <sect1 id="creating"><title>Creating New Files</title>
  5. <para>
  6. <guimenu>File</guimenu>&gt;<guimenuitem>New</guimenuitem> (shortcut:
  7. <keycombo><keycap>Control</keycap><keycap>N</keycap></keycombo>) opens a new
  8. untitled buffer. When it is saved, a file will be created on disk.
  9. Another way to create a new file is to specify a non-existent file
  10. name when starting jEdit from your operating system's command line.
  11. </para>
  12. </sect1>
  13. <sect1 id="opening"><title>Opening Files</title>
  14. <para>
  15. <guimenu>File</guimenu>&gt;<guimenuitem>Open</guimenuitem> (shortcut:
  16. <keycombo><keycap>Control</keycap><keycap>O</keycap></keycombo>) displays
  17. a file selector dialog box and loads the specified file into a new
  18. buffer. Multiple files can be opened at once by holding down
  19. <keycap>Control</keycap> while clicking on them in the file system browser.
  20. </para>
  21. <para>
  22. <guimenu>File</guimenu>&gt;<guimenuitem>Insert</guimenuitem> displays
  23. a file selector dialog box and inserts the specified file into the current
  24. buffer.
  25. </para>
  26. <para>
  27. The <guimenu>File</guimenu>&gt;<guimenuitem>Current Directory</guimenuitem>
  28. menu lists all files in the current buffer's directory.
  29. </para>
  30. <para>
  31. The <guimenu>File</guimenu>&gt;<guimenuitem>Recent Files</guimenuitem> menu
  32. lists recent files. When a recent file is opened, the caret
  33. is automatically moved to its previous location in that file.
  34. The number of recent files to remember can be changed and caret
  35. position saving can be disabled in the <guibutton>General</guibutton> pane of
  36. the <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  37. dialog box; see <xref linkend="global-opts" />.
  38. </para>
  39. <para>
  40. Files that you do not have write access to are opened in read-only
  41. mode, and editing will not be permitted.
  42. </para>
  43. <tip>
  44. <para>
  45. jEdit supports transparent editing of GZipped files; files with
  46. the <filename>.gz</filename> extension are automatically decompressed before
  47. loading, and compressed when saving.
  48. </para>
  49. </tip>
  50. </sect1>
  51. <sect1 id="saving"><title>Saving Files</title>
  52. <para>
  53. Changed made to a buffer do not affect the file on disk until the
  54. buffer is <firstterm>saved</firstterm>.
  55. </para>
  56. <para>
  57. <guimenu>File</guimenu>&gt;<guimenuitem>Save</guimenuitem> (shortcut:
  58. <keycombo><keycap>Control</keycap><keycap>S</keycap></keycombo>)
  59. saves the current buffer to disk.
  60. </para>
  61. <para>
  62. <guimenu>File</guimenu>&gt;<guimenuitem>Save All</guimenuitem>
  63. (shortcut: <keycombo><keycap>Control</keycap><keycap>E</keycap></keycombo>
  64. <keycombo><keycap>Control</keycap><keycap>S</keycap></keycombo>) saves all
  65. open buffers to disk, asking for confirmation first.
  66. </para>
  67. <para>
  68. <guimenu>File</guimenu>&gt;<guimenuitem>Save As</guimenuitem> saves the
  69. buffer to a different specified file on disk. The buffer is then
  70. renamed, and subsequent saves also save to the specified file.
  71. </para>
  72. <para>
  73. <guimenu>File</guimenu>&gt;<guimenuitem>Save a Copy As</guimenuitem> saves
  74. the buffer to a different specified file on disk, but doesn't rename the
  75. buffer, and doesn't clear the <quote>modified</quote> flag.
  76. </para>
  77. <sidebar><title>How files are saved</title>
  78. <para>
  79. To prevent data loss in the unlikely case that jEdit should crash in the
  80. middle of saving a file, files are first saved to
  81. <filename>#<replaceable>filename</replaceable>#save#</filename>. If this
  82. operation is successful, the original file is replaced with the temporary
  83. file.
  84. </para>
  85. <para>
  86. However, in some situations, this behavior is undesirable. For example,
  87. on Unix saving files this way will result in the owner and group of the
  88. file being reset. If this bothers you, you can disable this so-called
  89. <quote>two-stage save</quote> in the <guibutton>Loading and Saving</guibutton>
  90. pane of the
  91. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  92. dialog box.
  93. </para>
  94. </sidebar>
  95. <sect2><title>Autosave and Crash Recovery</title>
  96. <para>
  97. The autosave feature protects your work from computer crashes and
  98. such. Every 30 seconds, all buffers with unsaved changes are
  99. written out to their respective file names, enclosed in hash
  100. (<quote>#</quote>) characters. For example, <filename>program.c</filename>
  101. will be autosaved to <filename>#program.c#</filename>.
  102. </para>
  103. <para>
  104. Saving a buffer using
  105. one of the commands in the previous section automatically deletes the
  106. autosave file, so they will only ever be visible in the unlikely
  107. event of a jEdit (or operating system) crash.
  108. </para>
  109. <para>
  110. If an autosave file is
  111. found while a buffer is being loaded, jEdit will offer to recover the
  112. autosaved data.
  113. </para>
  114. <para>
  115. The autosave feature can be configured
  116. in the <guibutton>Loading and Saving</guibutton> pane of the
  117. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  118. dialog box; see <xref linkend="global-opts" />.
  119. </para>
  120. </sect2>
  121. <sect2><title>Backups</title>
  122. <para>
  123. The backup feature can be used to roll back to the previous version
  124. of a file after changes were made. When a buffer is saved
  125. for the first time after being opened, its original contents are
  126. <quote>backed up</quote> under a different file name.
  127. </para>
  128. <para>
  129. The default behavior is to back up the original contents
  130. to the buffer's file name suffixed with a tilde (<quote>~</quote>).
  131. For example, <filename>paper.tex</filename> will be backed up to
  132. <filename>paper.tex~</filename>.
  133. </para>
  134. <para>
  135. The backup feature can also be configured to do any of the following:
  136. </para>
  137. <itemizedlist>
  138. <listitem><para>
  139. Save numbered backups, named
  140. <filename><replaceable>filename</replaceable>~<replaceable>number</replaceable>~</filename>
  141. </para></listitem>
  142. <listitem><para>
  143. Add a prefix to the backed-up file name
  144. </para></listitem>
  145. <listitem><para>
  146. Adds a suffix, other than <quote>~</quote>, to the backed-up file name
  147. </para></listitem>
  148. <listitem><para>
  149. Backups can optionally be saved in a specified backup directory, instead of
  150. the directory of the original file. This can reduce clutter
  151. </para></listitem>
  152. <listitem><para>
  153. Backups can also optionally be created every time a buffer is saved;
  154. as mentioned above, the default is to only create a backup the first
  155. time a buffer is saved after being opened.
  156. </para></listitem>
  157. </itemizedlist>
  158. <para>
  159. The above features can be configured
  160. in the <guibutton>Loading and Saving</guibutton> pane of the
  161. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  162. dialog box; see <xref linkend="global-opts" />.
  163. </para>
  164. </sect2>
  165. </sect1>
  166. <sect1 id="line-separators"><title>Line Separators</title>
  167. <para>
  168. The three major operating systems use different conventions to mark
  169. line endings in text files.
  170. The MacOS uses Carriage-Return characters (<literal>\r</literal> in
  171. Java-speak) for that purpose. Unix
  172. uses Newline characters (<literal>\n</literal>). Windows uses both
  173. (<literal>\r\n</literal>). jEdit can read and write files in all three formats.
  174. </para>
  175. <para>
  176. When loading a file, the line separator used within is automatically
  177. detected, and will be used when saving a file back to disk. The line
  178. separator used when saving the current buffer can be changed in the
  179. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Buffer
  180. Options</guimenuitem> dialog box; see <xref linkend="buffer-opts" />.
  181. </para>
  182. <para>
  183. By default, new files are saved with your operating system's native line
  184. separator. This can be changed in the
  185. <guibutton>Loading and Saving</guibutton> pane of the
  186. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  187. dialog box; see <xref linkend="global-opts" />. Note that changing this
  188. setting has no effect on existing files.
  189. </para>
  190. </sect1>
  191. <sect1 id="encodings"><title>Character Encodings</title>
  192. <para>
  193. Internally, Java programs like jEdit store text as a stream of
  194. 16-bit numerical values, with each value a character in the Unicode character
  195. set. Unicode is a
  196. standardized character set that can represent characters in almost all human
  197. languages.
  198. </para>
  199. <para>
  200. Unfortunately, most other computer programs use far less flexible methods of
  201. storing
  202. text; therefore, if jEdit loaded and saved all files as raw Unicode, it would
  203. be useless.
  204. </para>
  205. <para>
  206. To get around this, jEdit converts Unicode text to other character
  207. encodings and vice versa when loading and saving files. jEdit can use any
  208. encoding supported by the Java platform.
  209. </para>
  210. <para>
  211. The default encoding, used to load and save files for which no
  212. other encoding is specified, can be set in the <guibutton>Loading and
  213. Saving</guibutton> pane of the
  214. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  215. dialog box; see <xref linkend="global-opts" />. The setting is presented as
  216. an editable combo box; the combo box
  217. contains a few of the more frequently used encodings, but the Java platform
  218. defines practically hundreds more you can use.
  219. </para>
  220. <para>
  221. Unfortunately, there
  222. is no programmical way to obtain a list of all supported encodings, and the
  223. set is constantly changing with each Java version. So to play it safe, jEdit
  224. has a few pre-defined defaults, but allows you to use any other supported
  225. encoding, assuming you know its name.
  226. </para>
  227. <para>
  228. Unless you change the default encoding, jEdit will use your operating
  229. system's native encoding; <literal>MacRoman</literal> on the MacOS,
  230. <literal>Cp1252</literal> on Windows, and <literal>8859_1</literal> on
  231. Unix.
  232. </para>
  233. <para>
  234. The <guimenu>File</guimenu>&gt;<guisubmenu>Open With Encoding</guisubmenu>
  235. lets you open a file with an encoding other than the default. The menu
  236. contains a set of items, one for each common encoding, along with
  237. <guimenuitem>System Default</guimenuitem> and <guimenuitem>jEdit
  238. Default</guimenuitem> commands. Invoking a menu item displays the usual
  239. file dialog box, and opens the selected file with the chosen encoding.
  240. </para>
  241. <para>
  242. The <guimenu>Open With Other Encoding</guimenu> command in the same menu
  243. lets you enter an arbitriary encoding name, assuming it is supported by
  244. your Java implementation.
  245. </para>
  246. <para>
  247. Once a file has been opened, the encoding to use when saving it
  248. can be set in the <guimenu>Utilities</guimenu>&gt;<guimenuitem>Buffer
  249. Options</guimenuitem> dialog box.
  250. </para>
  251. <para>
  252. The current buffer's encoding is shown in the status bar. If a file is opened
  253. without an explicit encoding specified, jEdit will use the encoding last used
  254. when working with that file, if the file is in the recent file list.
  255. Otherwise, the default encoding will be used.
  256. </para>
  257. <sect2><title>Commonly Used Encodings</title>
  258. <para>
  259. The most frequently-used character encoding is ASCII, or <quote>American
  260. Standard Code for Information Interchange</quote>. ASCII encodes Latin
  261. letters used in English, in addition to numbers and a range of punctuation
  262. characters.
  263. The ASCII character set consists of 127 characters only, and it is unsuitable
  264. for anything but English text (and other file types which only use English
  265. characters, like most program source). jEdit will load and save files as
  266. 7-bit ASCII if the <literal>ASCII</literal> encoding is used.
  267. </para>
  268. <para>
  269. Because ASCII is unsuitable for international use, most operating
  270. systems use an 8-bit extension of ASCII, with the first 127 characters
  271. remaining the same, and the rest used to encode accents, ulmauts, and
  272. various less frequently used typographical marks. Unfortunately, the three
  273. major
  274. operating systems all extend ASCII in a different way. Files written by
  275. Macintosh programs can be read using the <literal>MacRoman</literal>
  276. encoding; Windows text files are usually stored as
  277. <literal>Cp1252</literal>. In the Unix world, the <literal>8859_1</literal>
  278. (otherwise known as Latin1) character encoding has found widespread usage.
  279. </para>
  280. <para>
  281. Windows users are accustomized to dealing with files in a wide range of
  282. character sets, known as <firstterm>code pages</firstterm>. Java supports a
  283. large number of code pages; the encoding name consists of the text
  284. <quote>Cp</quote>, followed by a number.
  285. </para>
  286. <para>
  287. Raw Unicode files are quite rare, but can be read and written with the
  288. <literal>Unicode</literal> encoding.
  289. One reason raw Unicode has not found widespread usage for storing files on
  290. disk is that each character takes up 16 bits. Most other character sets
  291. devote 8 bits per character, which saves space. The <literal>UTF8</literal>
  292. encoding encodes frequently-used Unicode characters as 8 bits, with
  293. less-frequent ones stretching up to 24 bits. This saves space but allows the
  294. full range of Unicode characters to be represented.
  295. </para>
  296. <para>
  297. Many common cross-platform international character sets are supported;
  298. <literal>KOI8_R</literal> for Russian text, <literal>Big5</literal> and
  299. <literal>GBK</literal> for Chinese, and <literal>SJIS</literal> for
  300. Japanese.
  301. </para>
  302. <para>
  303. Java even supports a few downright obscure encodings, such as the
  304. <literal>EBCDIC</literal> character encoding used on IBM mainframes.
  305. </para>
  306. </sect2>
  307. </sect1>
  308. <sect1 id="vfs-browser"><title>The File System Browser</title>
  309. <para>
  310. <guimenu>Utilities</guimenu>&gt;<guimenuitem>File System
  311. Browser</guimenuitem> displays a file system browser.
  312. By default, the file system browser is shown in a floating window;
  313. it can be set to dock into the view in the <guibutton>Docking</guibutton>
  314. pane of the <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global
  315. Options</guimenuitem> dialog box; see <xref linkend="docking" />.
  316. </para>
  317. <para>
  318. The file system browser can be customized in the
  319. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  320. dialog box.
  321. </para>
  322. <sect2><title>Navigating the File System</title>
  323. <para>
  324. The directory to browse is specified in the <guibutton>Path</guibutton> text
  325. field. Clicking the mouse in the text field automatically selects its
  326. contents allowing a new path to be quickly typed in. If a relative path is
  327. entered, it will be resolved relative to the current path. This text field
  328. remembers previously entered strings; see <xref linkend="history" />.
  329. Previously browsed directories are also listed in the
  330. <guimenu>File</guimenu>&gt;<guisubmenu>Recent Directories</guisubmenu>
  331. menu; selecting one opens it in the file system browser.
  332. </para>
  333. <para>
  334. To browse higher up in the directory hierarchy, click one of the parent
  335. directories in the parent directory list.
  336. </para>
  337. <para>
  338. Files and directories in the file list are shown in different colors
  339. depending on what glob patterns their names match. The patterns and colors
  340. can be customized in the
  341. <guibutton>File System Browser</guibutton>&gt;<guibutton>Colors</guibutton>
  342. pane of the
  343. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  344. dialog box.
  345. </para>
  346. <para>
  347. To browse a listed directory, double-click it (or if you have a three-button
  348. mouse, click the middle mouse button). Alternatively, click the disclosure
  349. widget next to a directory to list its contents in place.
  350. </para>
  351. <para>
  352. Open files in the file list have a vertical black bar next to their icon.
  353. Single-clicking an open file will select the appropriate buffer in the current
  354. view. Unopened files can be opened for editing by double-clicking (or by
  355. clicking the middle mouse button).
  356. </para>
  357. <para>
  358. Clicking a file or directory with the right mouse button displays a popup
  359. menu containing file manipulation commands. Note that attempting to delete
  360. a directory containing files will give an error;
  361. only empty directories can be deleted.
  362. </para>
  363. <para>
  364. If you only want to see a specific set of files (for example,
  365. those whose names end with <filename>.java</filename>), enter a glob pattern
  366. in the <guibutton>Filter</guibutton> text field.
  367. See <xref linkend="globs" /> for information about glob patterns.
  368. This text fields remembers previously entered strings;
  369. see <xref linkend="history" />.
  370. </para>
  371. <tip>
  372. <para>
  373. The file list sorting algorithm used in jEdit handles numbers in file names
  374. in an intelligent manner. For example, a file named
  375. <filename>section10.xml</filename> will be placed after a file named
  376. <filename>section5.xml</filename>. A conventional letter-by-letter
  377. sort would have placed these two files in the wrong order.
  378. </para>
  379. </tip>
  380. </sect2>
  381. <sect2><title>The Commands Menu</title>
  382. <para>
  383. Clicking the <guibutton>Commands</guibutton> button displays a menu
  384. containing the following items:
  385. </para>
  386. <itemizedlist>
  387. <listitem><para><guimenuitem>Parent Directory</guimenuitem> - displays the
  388. directory containing the one currently being viewed.</para></listitem>
  389. <listitem><para><guimenuitem>Reload Directory</guimenuitem> - reloads the
  390. file list from disk.</para></listitem>
  391. <listitem><para><guimenuitem>Local Drives</guimenuitem> - displays all
  392. local drives. On Windows, this will be a list of
  393. drive letters; on Unix, the list will only contain one entry, the
  394. root directory.</para></listitem>
  395. <listitem><para><guimenuitem>Home Directory</guimenuitem> - displays your
  396. home directory.</para></listitem>
  397. <listitem><para><guimenuitem>Directory of Current Buffer - displays the
  398. directory containing the currently active buffer.</guimenuitem></para></listitem>
  399. <listitem><para><guimenuitem>New File</guimenuitem> - opens an
  400. <filename>Untitled</filename> file in the current directory. The file will
  401. not actually be created on disk until it is saved.</para></listitem>
  402. <listitem><para><guimenuitem>New Directory</guimenuitem> - creates a new
  403. directory after prompting for the desired name.</para></listitem>
  404. <listitem><para><guimenuitem>Search in Directory</guimenuitem> -
  405. displays the
  406. search and
  407. replace dialog box for searching in all files in the current directory. If a
  408. file is selected, its extension becomes the file name filter for the search;
  409. otherwise, the file name filter entered in the browser is used.
  410. See <xref linkend="search-replace" /> for details.</para></listitem>
  411. <listitem><para><guimenuitem>Show Hidden Files</guimenuitem> - toggles if
  412. hidden files are to be shown in the file list.</para></listitem>
  413. </itemizedlist>
  414. </sect2>
  415. <sect2><title>The Plugins Menu</title>
  416. <para>
  417. Clicking the <guibutton>Plugins</guibutton> button displays a menu
  418. containing commands for browsing plugin file systems. For information
  419. about plugins, see <xref linkend="using-plugins" />.
  420. </para>
  421. </sect2>
  422. <sect2><title>The Favorites Menu</title>
  423. <para>
  424. Clicking the <guibutton>Favorites</guibutton> button displays a menu
  425. showing all directories in the favorites list, along with an
  426. <guimenuitem>Add to Favorites</guimenuitem> command that adds the current
  427. directory to the favorites, and an <guimenuitem>Edit Favorites</guimenuitem>
  428. command that shows the favorites list in the file system view, allowing items
  429. to be removed by right-clicking on them and selecting
  430. <guimenuitem>Delete</guimenuitem> from the resulting popup menu.
  431. </para>
  432. </sect2>
  433. <sect2><title>Keyboard Shortcuts</title>
  434. <para>
  435. The file system browser can be navigated from the keyboard:
  436. </para>
  437. <itemizedlist>
  438. <listitem><para><keycap>Enter</keycap> - opens the currently selected file or
  439. directory.</para></listitem>
  440. <listitem><para><keycap>Left</keycap> - goes to the current directory's parent.
  441. </para></listitem>
  442. <listitem><para><keycap>Up</keycap> - selects previous file in list.
  443. </para></listitem>
  444. <listitem><para><keycap>Down</keycap> - selects next file in list.
  445. </para></listitem>
  446. <listitem><para><keycap>/</keycap> - displays all
  447. local drives.</para></listitem>
  448. <listitem><para><keycap>~</keycap> - displays your home directory.
  449. </para></listitem>
  450. <listitem><para><keycap>-</keycap> - displays the directory containing
  451. the current buffer.</para></listitem>
  452. <listitem><para>Typing the first few characters of
  453. a file's name will select that file.
  454. </para></listitem>
  455. </itemizedlist>
  456. <para>
  457. The file system view, and not the <guibutton>Path</guibutton> or
  458. <guibutton>Filter</guibutton> text fields must have keyboard focus for these
  459. shortcuts to work.
  460. </para>
  461. </sect2>
  462. </sect1>
  463. <sect1 id="reloading"><title>Reloading Files</title>
  464. <para>
  465. If an open buffer is modified on disk by another application, a warning
  466. dialog box is displayed, offering to either continue editing
  467. (and lose changes made by the other application)
  468. or reload the buffer from disk (and lose any usaved changes). This
  469. feature can be disabled in the <guibutton>General</guibutton> pane of the
  470. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  471. dialog box; see <xref linkend="global-opts" />.
  472. </para>
  473. <para>
  474. <guimenu>File</guimenu>&gt;<guimenuitem>Reload</guimenuitem> can be used to
  475. discard unsaved changes and reload the current buffer from disk at any other
  476. time; a confirmation dialog box will be displayed first if the buffer
  477. has unsaved changes.
  478. </para>
  479. <para>
  480. <guimenu>File</guimenu>&gt;<guimenuitem>Reload All</guimenuitem>
  481. discards unsaved changes in all open buffers and reload them from disk,
  482. asking for confirmation first.
  483. </para>
  484. </sect1>
  485. <sect1 id="threaded-io"><title>Multi-Threaded I/O</title>
  486. <para>
  487. To improve responsiveness and perceived performance,
  488. jEdit executes all input/output operations asynchronously.
  489. While I/O is in progress, the status bar displays the number of
  490. remaining I/O operations. When I/O is complete, the status bar shows a message
  491. to this effect.
  492. The <guimenu>Utilities</guimenu>&gt;<guimenuitem>I/O Progress
  493. Monitor</guimenuitem> command displays a window with more detailed status
  494. information and progress meters. Requests can also be aborted in this window.
  495. Note that aborting a buffer save can result in data loss.
  496. </para>
  497. <para>
  498. By default, four I/O threads are created, which means that up
  499. to four buffers can be loaded or saved simultaneously. The number of
  500. threads can be changed in the
  501. <guibutton>Loading and Saving</guibutton> pane of the
  502. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  503. dialog box; see <xref linkend="global-opts" />. Setting the number to zero
  504. disables multi-threaded I/O completely; doing this is not recommended.
  505. </para>
  506. </sect1>
  507. <sect1 id="printing"><title>Printing Files</title>
  508. <para>
  509. <guimenu>File</guimenu>&gt;<guimenuitem>Print</guimenuitem>
  510. (shortcut: <keycombo><keycap>Control</keycap><keycap>P</keycap></keycombo>)
  511. will print the current buffer. By default, the printed output will have
  512. syntax highlighting, and each page will have a header with the file name,
  513. and a footer with the current date/time and page number. The appearance of
  514. printed output
  515. can be customized in the <guibutton>Printing</guibutton> pane of the
  516. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global
  517. Options</guimenuitem> dialog box. The following settings can be changed:
  518. </para>
  519. <itemizedlist>
  520. <listitem><para>The font to use when printing</para></listitem>
  521. <listitem><para>If a header with the file name should be printed on each
  522. page</para></listitem>
  523. <listitem><para>If a footer with the page number and current date should be
  524. printed on each page</para></listitem>
  525. <listitem><para>If line numbers should be printed</para></listitem>
  526. <listitem><para>If the output should be styled according to the current
  527. mode's syntax highlighting rules</para></listitem>
  528. <listitem><para>If the output should be colored according to the current
  529. mode's syntax highlighting rules (might look bad on grayscale
  530. printers)</para></listitem>
  531. <listitem><para>The page margins</para></listitem>
  532. </itemizedlist>
  533. </sect1>
  534. <sect1 id="closing-exiting"><title>Closing Files and Exiting jEdit</title>
  535. <para>
  536. <guimenu>File</guimenu>&gt;<guimenuitem>Close</guimenuitem>
  537. (shortcut: <keycombo><keycap>Control</keycap><keycap>W</keycap></keycombo>)
  538. closes the current buffer. If it has unsaved changes, jEdit
  539. will ask if they should be saved first.
  540. </para>
  541. <para>
  542. <guimenu>File</guimenu>&gt;<guimenuitem>Close All</guimenuitem>
  543. (shortcut: <keycombo><keycap>Control</keycap><keycap>E</keycap></keycombo>
  544. <keycombo><keycap>Control</keycap><keycap>W</keycap></keycombo>)
  545. closes all buffers. If any buffers have unsaved
  546. changes, they will be listed in a dialog box where they can be saved
  547. or discarded. In the dialog box, multiple buffers to operate on at
  548. once can be selected by clicking on them in the list while holding
  549. down <keycap>Control</keycap>.
  550. </para>
  551. <para>
  552. <guimenu>File</guimenu>&gt;<guimenuitem>Exit</guimenuitem>
  553. (shortcut: <keycombo><keycap>Control</keycap><keycap>Q</keycap></keycombo>)
  554. will completely exit jEdit.
  555. </para>
  556. </sect1>
  557. </chapter>