Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / doc / kwrite / index.docbook
blobb1762a20168381a2a9bab1c050b477e240ebda5f
1 <?xml version="1.0" ?>
2 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN"
3 "dtd/kdex.dtd" [
4 <!ENTITY kappname "&kwrite;">
5 <!ENTITY package "kdebase">
6 <!ENTITY % addindex "IGNORE">
7 <!ENTITY % English "INCLUDE" > <!-- change language only here -->
8 ]>
10 <book lang="&language;">
12 <bookinfo>
13 <title>The &kwrite; Handbook</title>
14 <authorgroup>
15 <author>&Thad.McGinnis; &Thad.McGinnis.mail;</author>
16 <author>&Anne-Marie.Mahfouf; &Anne-Marie.Mahfouf.mail;</author>
17 <author>&Anders.Lund; &Anders.Lund.mail;</author>
18 <othercredit role="developer">
19 &Christoph.Cullmann; &Christoph.Cullmann.mail;
20 <!-- <contrib>Core Developer and Maintainer</contrib> -->
21 </othercredit>
23 <othercredit role="reviewer">
24 &Lauri.Watts; &Lauri.Watts.mail;
25 <!-- <contrib>Reviewer</contrib> -->
26 </othercredit>
28 <!-- TRANS:ROLES_OF_TRANSLATORS -->
30 </authorgroup>
32 <copyright>
33 <year>2000</year><year>2001</year>
34 <holder>&Thad.McGinnis;</holder>
35 </copyright>
36 <copyright>
37 <year>2005</year>
38 <holder>&Anne-Marie.Mahfouf; &Anne-Marie.Mahfouf.mail;</holder>
39 <holder>&Anders.Lund; &Anders.Lund.mail;</holder>
40 </copyright>
41 <legalnotice>&FDLNotice;</legalnotice>
43 <date>2005-12-27</date>
44 <releaseinfo>4.5.0</releaseinfo>
46 <abstract>
47 <para>&kwrite; is a text editor for &kde;</para>
48 </abstract>
50 <keywordset>
51 <keyword>KDE</keyword>
52 <keyword>KWrite</keyword>
53 <keyword>text</keyword>
54 <keyword>editor</keyword>
55 </keywordset>
57 </bookinfo>
59 <chapter id="introduction">
60 <title>Introduction</title>
62 <para>
63 &kwrite; is more than a text editor for the &kde; Desktop. It is meant
64 to be a programmer's editor, and could be considered as at least a
65 partial alternative to more powerful editors. It may be best used in
66 conjunction with &konqueror; for source file browsing for different
67 languages. &kwrite; also works very well as a simple text editor. One
68 of &kwrite;'s main features is the colorized syntax, customized for many
69 different programming languages such as: C/C++, &Java;, Python, Perl,
70 Bash, Modula 2, &HTML;, and Ada.
71 </para>
73 </chapter>
75 <chapter id="on-screen-fundamentals">
76 <title>Some Fundamentals</title>
78 <para>
79 &kwrite; is very simple to use. Anyone that has used a text editor
80 should have no problems.
81 </para>
83 <sect1 id="drag-and-drop">
84 <title>Drag and Drop</title>
86 <para>
87 &kwrite; uses the &kde; Drag and Drop protocol. Files may be dragged and
88 dropped onto &kwrite; from the Desktop, &konqueror; or some remote &FTP;
89 site opened in one of &konqueror;'s windows.
90 </para>
91 </sect1>
93 <sect1 id="command-line-options">
94 <title>Command Line Options</title>
96 <para>
97 Though &kwrite; may most often be started from the &kde; program menu, or
98 a desktop icon, it can also be opened at the command line prompt of a
99 terminal window. There are a few useful options that are available when
100 doing this.
101 </para>
103 <sect2 id="specify-a-file">
104 <title>Specify a File</title>
106 <para>By specifying the path and name of a particular file the user can
107 have &kwrite; open (or create) that file immediately upon startup. This
108 option might look something like the following:</para>
110 <informalexample><screen>
111 <prompt>%</prompt> <userinput><command>kwrite</command>
112 <option><replaceable>/home/myhome/docs/myfile.txt</replaceable></option>
113 </userinput>
114 </screen>
115 </informalexample>
116 </sect2>
117 <sect2 id="editing-files-on-the-internet">
118 <title>Specify a file on the internet</title>
120 <para>The above-mentioned method could even be used to open files on the
121 internet (if the user has an active connection at the time.) An example of
122 this might look like the following:</para>
124 <informalexample><screen>
125 <prompt>%</prompt> <userinput><command>kwrite</command>
126 <option><replaceable>ftp://ftp.kde.org/pub/kde/Welcome.msg</replaceable>
127 </option></userinput>
128 </screen>
129 </informalexample>
131 </sect2>
133 <sect2 id="other-command-line-options">
134 <title>Other Command Line Options</title>
136 <para>The following command line help options are available</para>
138 <variablelist>
139 <varlistentry>
140 <term><userinput><command>kwrite</command>
141 <option>--help</option></userinput></term>
142 <listitem><para>This lists the most basic options available at the command
143 line.</para></listitem>
144 </varlistentry>
145 <varlistentry>
146 <term><userinput><command>kwrite</command>
147 <option>--help-qt</option></userinput></term>
148 <listitem><para>This lists the options available for changing the way
149 &kwrite; interacts with &Qt;.</para></listitem>
150 </varlistentry>
151 <varlistentry>
152 <term><userinput><command>kwrite</command>
153 <option>--help-kde</option></userinput></term>
154 <listitem><para>This lists the options available for changing the way
155 &kwrite; interacts with &kde;.</para></listitem>
156 </varlistentry>
157 <varlistentry>
158 <term><userinput><command>kwrite</command>
159 <option>--help-all</option></userinput></term>
160 <listitem><para>This lists all of the command line options.</para></listitem>
161 </varlistentry>
162 <varlistentry>
163 <term><userinput><command>kwrite</command>
164 <option>--author</option></userinput></term>
165 <listitem><para>Lists &kwrite;'s authors in the terminal
166 window</para></listitem>
167 </varlistentry>
168 <varlistentry>
169 <term><userinput><command>kwrite</command>
170 <option>--version</option></userinput></term>
171 <listitem><para>Lists version information for &Qt;, &kde;, and &kwrite;. Also
172 available through <userinput><command>kwrite</command>
173 <option>-v</option></userinput> </para></listitem>
174 </varlistentry>
175 <varlistentry>
176 <term><userinput><command>kwrite</command>
177 <option>--stdin</option></userinput></term>
178 <listitem><para>Causes &kwrite; to read the document content from STDIN. This
179 is similar to the common option <option>-</option> used in many command line
180 programs, and allows you to pipe command output into &kwrite;.</para></listitem>
181 </varlistentry>
182 <varlistentry>
183 <term><userinput><command>kwrite</command>
184 <option>--encoding</option> <parameter>encoding</parameter>
185 <parameter>&URL;</parameter></userinput></term>
186 <listitem><para>Causes &kwrite; to use the specified encoding for the document.
187 </para></listitem>
188 </varlistentry>
189 <varlistentry>
190 <term><userinput><command>kwrite</command>
191 <option>--line</option> <parameter>line</parameter>
192 <parameter>&URL;</parameter></userinput></term>
193 <listitem><para>Navigate to the specified line after opening the document.
194 </para></listitem>
195 </varlistentry>
196 <varlistentry>
197 <term><userinput><command>kwrite</command>
198 <option>--column</option> <parameter>column</parameter>
199 <parameter>&URL;</parameter></userinput></term>
200 <listitem><para>Navigate to the specified column after opening the document.
201 </para></listitem>
202 </varlistentry>
204 </variablelist>
205 </sect2>
206 </sect1>
208 <sect1 id="keybindings">
209 <title>Shortcuts</title>
211 <para>Many of the shortcuts are configurable by way of the <link
212 linkend="settings">Settings</link> menu. By default &kwrite; honors the
213 following shortcuts:</para>
214 <informaltable>
215 <tgroup cols="2">
216 <tbody>
218 <row><entry><para><keycombo
219 action="simul"><keycap>Insert</keycap></keycombo></para></entry>
220 <entry><para> Toggle between Insert and Overwrite mode. When in insert mode the
221 editor will add any typed characters to the text while pushing along any data to
222 the right of the text cursor. Overwrite mode causes the entry of each character
223 to eliminate the character immediately to the right of the text
224 cursor.</para></entry>
225 </row>
226 <row>
227 <entry><para><keycombo action="simul"><keycap>Left
228 Arrow</keycap></keycombo></para></entry>
229 <entry><para>Move the cursor one character to the left </para></entry>
230 </row>
231 <row>
232 <entry><para><keycombo action="simul"><keycap>Right
233 Arrow</keycap></keycombo></para></entry>
234 <entry><para> Move the cursor one character to the right </para></entry>
235 </row>
236 <row>
237 <entry><para><keycombo action="simul"><keycap>Up
238 Arrow</keycap></keycombo></para></entry>
239 <entry><para> Move the cursor up one line </para></entry>
240 </row>
241 <row>
242 <entry><para><keycombo action="simul"><keycap>Down
243 Arrow</keycap></keycombo></para></entry>
244 <entry><para> Move the cursor down one line </para></entry>
245 </row>
246 <row>
247 <entry><para><keycombo action="simul"><keycap>Page
248 Up</keycap></keycombo></para></entry>
249 <entry><para> Move the cursor up one page </para></entry>
250 </row>
251 <row>
252 <entry><para><keycombo action="simul">&Alt;<keycap>Page
253 Up</keycap></keycombo></para></entry>
254 <entry><para>Previous Bookmark </para></entry>
255 </row>
256 <row>
257 <entry><para><keycombo action="simul"><keycap>Page
258 Down</keycap></keycombo></para></entry>
259 <entry><para>Move the cursor down one page </para></entry>
260 </row>
261 <row>
262 <entry><para><keycombo action="simul">&Alt;<keycap>Page
263 Down</keycap></keycombo></para></entry>
264 <entry><para>Next Bookmark </para></entry>
265 </row>
266 <row>
267 <entry><para><keycombo
268 action="simul"><keycap>Backspace</keycap></keycombo></para></entry>
269 <entry><para> Delete the character to the left of the cursor </para></entry>
270 </row>
271 <row>
272 <entry><para><keycombo
273 action="simul"><keycap>Home</keycap></keycombo></para></entry>
274 <entry><para> Move the cursor to the beginning of the line </para></entry>
275 </row>
276 <row>
277 <entry><para><keycombo
278 action="simul"><keycap>End</keycap></keycombo></para></entry>
279 <entry><para> Move the cursor to the end of the line </para></entry>
280 </row>
281 <row>
282 <entry><para><keycombo
283 action="simul"><keycap>Delete</keycap></keycombo></para></entry>
284 <entry><para>Delete the character to the right of the cursor (or any selected
285 text)</para></entry>
286 </row>
287 <row>
288 <entry><para><keycombo action="simul">&Shift;<keycap>Left
289 Arrow</keycap></keycombo></para></entry>
290 <entry><para> Mark text one character to the left </para></entry>
291 </row>
292 <row>
293 <entry><para><keycombo action="simul">&Shift;<keycap>Right
294 Arrow</keycap></keycombo></para></entry>
295 <entry><para> Mark text one character to the right </para></entry>
296 </row>
297 <row>
298 <entry><para><keycombo
299 action="simul"><keycap>F1</keycap></keycombo></para></entry>
300 <entry><para> Help</para></entry>
301 </row>
302 <row>
303 <entry><para><keycombo
304 action="simul">&Shift;<keycap>F1</keycap></keycombo></para></entry>
305 <entry><para>What's this?</para></entry>
306 </row>
307 <row>
308 <entry><para><keycombo
309 action="simul"><keycap>F3</keycap></keycombo></para></entry>
310 <entry><para><link linkend="find-again"> Find again</link></para></entry>
311 </row>
312 <row>
313 <entry><para><keycombo
314 action="simul">&Shift;<keycap>F3</keycap></keycombo></para></entry>
315 <entry><para><link linkend="find-previous"> Find Previous</link></para></entry>
316 </row>
317 <row>
318 <entry><para><keycombo
319 action="simul">&Ctrl;<keycap>A</keycap></keycombo></para></entry>
320 <entry><para>Select All</para></entry>
321 </row>
322 <row>
323 <entry><para><keycombo
324 action="simul">&Ctrl;&Shift;<keycap>A</keycap></keycombo></para></entry>
325 <entry><para>Deselect</para></entry>
326 </row>
327 <row>
328 <entry><para><keycombo
329 action="simul">&Ctrl;&Shift;<keycap>B</keycap></keycombo></para></entry>
330 <entry><para>Block Selection Mode</para></entry>
331 </row>
332 <row>
333 <entry><para><keycombo
334 action="simul">&Ctrl;<keycap>B</keycap></keycombo></para></entry>
335 <entry><para>Set a Bookmark</para></entry>
336 </row>
337 <row>
338 <entry><para><keycombo
339 action="simul">&Ctrl;<keycap>C</keycap></keycombo></para></entry>
340 <entry><para> Copy the marked text to the clipboard. </para></entry>
341 </row>
342 <row>
343 <entry><para><keycombo
344 action="simul">&Ctrl;<keycap>D</keycap></keycombo></para></entry>
345 <entry><para> Comment</para></entry>
346 </row>
347 <row>
348 <entry><para><keycombo
349 action="simul">&Ctrl;&Shift;<keycap>D</keycap></keycombo></para></entry>
350 <entry><para> Uncomment</para></entry>
351 </row>
352 <row>
353 <entry><para><keycombo
354 action="simul">&Ctrl;<keycap>F</keycap></keycombo></para></entry>
355 <entry><para><link linkend="find"> Find</link></para></entry>
356 </row>
357 <row>
358 <entry><para><keycombo
359 action="simul">&Ctrl;<keycap>G</keycap></keycombo></para></entry>
360 <entry><para> Go to line...</para></entry>
361 </row>
362 <row>
363 <entry><para><keycombo
364 action="simul">&Ctrl;<keycap>I</keycap></keycombo></para></entry>
365 <entry><para> Indent selection</para></entry>
366 </row>
367 <row>
368 <entry><para><keycombo
369 action="simul">&Ctrl;&Shift;<keycap>I</keycap></keycombo></para></entry>
370 <entry><para> Unindent selection</para></entry>
371 </row>
372 <row>
373 <entry><para><keycombo
374 action="simul">&Ctrl;<keycap>J</keycap></keycombo></para></entry>
375 <entry><para>Join Lines</para></entry>
376 </row>
377 <row>
378 <entry><para><keycombo
379 action="simul">&Ctrl;<keycap>N</keycap></keycombo></para></entry>
380 <entry><para> <link linkend="new">New</link> document</para></entry>
381 </row>
382 <row>
383 <entry><para><keycombo
384 action="simul">&Ctrl;<keycap>O</keycap></keycombo></para></entry>
385 <entry><para><link linkend="open">Open a document</link> </para></entry>
386 </row>
387 <row>
388 <entry><para><keycombo
389 action="simul">&Ctrl;<keycap>P</keycap></keycombo></para></entry>
390 <entry><para><link linkend="print">Print</link> </para></entry>
391 </row>
392 <row>
393 <entry><para><keycombo
394 action="simul">&Ctrl;<keycap>Q</keycap></keycombo></para></entry>
395 <entry><para>Quit - close active copy of editor </para></entry>
396 </row>
397 <row>
398 <entry><para><keycombo
399 action="simul">&Ctrl;<keycap>R</keycap></keycombo></para></entry>
400 <entry><para><link linkend="replace"> Replace</link></para></entry>
401 </row>
402 <row>
403 <entry><para><keycombo
404 action="simul">&Ctrl;<keycap>S</keycap></keycombo></para></entry>
405 <entry><para>Invokes the <link
406 linkend="save"><guilabel>Save</guilabel></link> command.</para></entry>
407 </row>
408 <row>
409 <entry><para><keycombo
410 action="simul">&Ctrl;<keycap>U</keycap></keycombo></para></entry>
411 <entry><para>Uppercase</para></entry>
412 </row>
413 <row>
414 <entry><para><keycombo
415 action="simul">&Ctrl;&Shift;<keycap>U</keycap></keycombo></para></entry>
416 <entry><para>Lowercase</para></entry>
417 </row>
418 <row>
419 <entry><para><keycombo
420 action="simul">&Alt;&Ctrl;<keycap>U</keycap></keycombo></para></entry>
421 <entry><para>Capitalize</para></entry>
422 </row>
423 <row>
424 <entry><para><keycombo
425 action="simul">&Ctrl;<keycap>V</keycap></keycombo></para></entry>
426 <entry><para> Paste the clipboard text into line edit. </para></entry>
427 </row>
428 <row>
429 <entry><para><keycombo
430 action="simul">&Ctrl;<keycap>W</keycap></keycombo></para></entry>
431 <entry><para><link linkend="close">Close</link> </para></entry>
432 </row>
433 <row>
434 <entry><para><keycombo
435 action="simul">&Ctrl;<keycap>X</keycap></keycombo></para></entry>
436 <entry><para>Delete the marked text and copy it to the clipboard.
437 </para></entry>
438 </row>
439 <row>
440 <entry><para><keycombo
441 action="simul">&Ctrl;<keycap>Z</keycap></keycombo></para></entry>
442 <entry><para><link linkend="undo">Undo</link></para></entry>
443 </row>
444 <row>
445 <entry><para><keycombo
446 action="simul">&Ctrl;&Shift;<keycap>Z</keycap></keycombo></para></entry>
447 <entry><para><link linkend="redo">Redo</link></para></entry>
448 </row>
449 <row>
450 <entry><para><keycombo
451 action="simul">&Ctrl;<keycap>-</keycap></keycombo></para></entry>
452 <entry><para>Collapse One Local Level</para></entry>
453 </row>
454 <row>
455 <entry><para><keycombo
456 action="simul">&Ctrl;&Shift;<keycap>-</keycap></keycombo></para></entry>
457 <entry><para>Collapse Toplevel</para></entry>
458 </row>
459 <row>
460 <entry><para><keycombo
461 action="simul">&Ctrl;<keycap>+</keycap></keycombo></para></entry>
462 <entry><para>Expand One Local Level</para></entry>
463 </row>
464 <row>
465 <entry><para><keycombo
466 action="simul">&Ctrl;&Shift;<keycap>+</keycap></keycombo></para></entry>
467 <entry><para>Expand Toplevel</para></entry>
468 </row>
469 <row>
470 <entry><para><keycombo
471 action="simul"><keycap>F5</keycap></keycombo></para></entry>
472 <entry><para><link linkend="reload"> Reload</link></para></entry>
473 </row>
474 <row>
475 <entry><para><keycombo
476 action="simul"><keycap>F6</keycap></keycombo></para></entry>
477 <entry><para>Show/Hide Icon Border</para></entry>
478 </row>
479 <row>
480 <entry><para><keycombo
481 action="simul"><keycap>F7</keycap></keycombo></para></entry>
482 <entry><para> Switch to Command Line</para></entry>
483 </row>
484 <row>
485 <entry><para><keycombo
486 action="simul"><keycap>F9</keycap></keycombo></para></entry>
487 <entry><para> Show/Hide Folding Markers</para></entry>
488 </row>
489 <row>
490 <entry><para><keycombo
491 action="simul"><keycap>F10</keycap></keycombo></para></entry>
492 <entry><para> Dynamic Word Wrap</para></entry>
493 </row>
494 <row>
495 <entry><para><keycombo
496 action="simul"><keycap>F11</keycap></keycombo></para></entry>
497 <entry><para> Show/Hide Line Numbers</para></entry>
498 </row>
499 </tbody>
500 </tgroup>
501 </informaltable>
502 </sect1>
503 </chapter>
505 <chapter id="the-menu-entries">
506 <title>The Menu Entries</title>
508 <sect1 id="file">
509 <title>The <guimenu>File</guimenu> Menu</title>
511 <variablelist>
513 <varlistentry>
514 <term id="new">
515 <menuchoice>
516 <shortcut>
517 <keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
518 </shortcut>
519 <guimenu>File</guimenu>
520 <guimenuitem>New</guimenuitem></menuchoice></term>
521 <listitem>
522 <para>
523 This starts a new Document in the editor. If there is a current
524 document with unsaved changes the user is given a chance to save it.
525 </para>
526 </listitem>
527 </varlistentry>
529 <varlistentry>
530 <term id="open">
531 <menuchoice>
532 <shortcut>
533 <keycombo action="simul">&Ctrl;<keycap>O</keycap></keycombo>
534 </shortcut>
535 <guimenu>File</guimenu>
536 <guimenuitem>Open...</guimenuitem>
537 </menuchoice>
538 </term>
540 <listitem>
541 <!--
542 This is description of a standard dialog and so should go in the UG,
543 with a pointer to it. In fact, I'll probably nick this very stuff for
544 the UG
545 - Phil
546 <para>
547 This command opens a file. It does this by means of a dialog box which
548 allows the user to navigate the file system. The dialog operates like a
549 small file manager. Clicking on folders displayed in the central
550 window directs the dialog to enter that folder - displaying its
551 contents. There is an entry/dropdown box which can be used to type in
552 directly the location and name of the file or by clicking the arrow at
553 the side choose from a drop down box of recently used locations. Below
554 this is a filter which similarly may have data entered directly or
555 chosen from a drop down box of recent filter types. The filter facility
556 lets only files that meet its specifications be displayed in the central
557 window. If the filter contained text such as <literal
558 role="extension">*.txt</literal> then only files with the <literal
559 role="extension">txt</literal> extension would be visible in the
560 selection window. Below the filter is a status bar giving information
561 about the number of files and subfolders within the current
562 folder.
563 </para>
565 <para>
566 The toolbar, which is located at the top of the dialog, has left and
567 right arrow buttons that let the user move back and forth through
568 previously selected folders as well as an up arrow button for moving
569 up the folder tree. The button with the little house takes the user
570 to his or her home folder and the one with the two arrows curved in
571 on each other updates the view of the current folder. The flag button
572 lets the user set a new bookmark at the current folder or go to one
573 that was previously set.
574 </para>
576 <para>
577 The last button on the toolbar allows you to create a new folder, and
578 even change some basic settings for the dialog box, and finally there is
579 dropdown box with a list of some commonly frequented folders.
580 </para>
582 <para>Displays a standard &kde; <guilabel>Open File</guilabel>
583 dialog. Use the file view to select the file you want to open, and
584 click on <guibutton>Open</guibutton> to open it. You can find more
585 information about the &kde; <guilabel>Open File</guilabel> dialog in
586 the &kde; User Guide.</para>
588 </listitem>
589 </varlistentry>
591 <varlistentry>
592 <term id="open-recent">
593 <menuchoice>
594 <guimenu>File</guimenu>
595 <guisubmenu>Open Recent</guisubmenu>
596 </menuchoice>
597 </term>
598 <listitem>
599 <para>
600 This is a shortcut to open recently saved documents. Clicking on this
601 item opens a list to the side of the menu with several of the most
602 recently saved files. Clicking on a specific file will open it in
603 &kwrite; - if the file still resides at the same
604 location.
605 </para>
606 </listitem>
607 </varlistentry>
609 <varlistentry>
610 <term id="save">
611 <menuchoice>
612 <shortcut>
613 <keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo>
614 </shortcut>
615 <guimenu>File</guimenu>
616 <guimenuitem>Save</guimenuitem>
617 </menuchoice>
618 </term>
619 <listitem>
620 <para>
621 This saves the current document. If there has already been a save of
622 the document then this will overwrite the previously saved file without
623 asking for the user's consent. If it is the first save of a new
624 document the save as dialog (described below) will be invoked.
625 </para>
626 </listitem>
627 </varlistentry>
629 <varlistentry>
630 <term id="save-as">
631 <menuchoice>
632 <guimenu>File</guimenu>
633 <guimenuitem>Save As...</guimenuitem>
634 </menuchoice>
635 </term>
636 <listitem>
637 <para>
638 This allows a document to be saved with a new file name. This is done by
639 means of the file dialog box described above in the <link
640 linkend="open">Open</link> section of this help file.
641 </para>
642 </listitem>
643 </varlistentry>
645 <varlistentry>
646 <term id="reload">
647 <menuchoice>
648 <shortcut>
649 <keycombo action="simul"><keycap>F5</keycap></keycombo>
650 </shortcut>
651 <guimenu>File</guimenu>
652 <guimenuitem>Reload</guimenuitem>
653 </menuchoice>
654 </term>
655 <listitem>
656 <para>
657 Reloads the active file from disk. This command is useful if another program or
658 process has changed the file while you have it open in &kwrite;.
659 </para>
660 </listitem>
661 </varlistentry>
663 <varlistentry>
664 <term id="print">
665 <menuchoice>
666 <shortcut>
667 <keycombo action="simul">&Ctrl;<keycap>P</keycap></keycombo>
668 </shortcut>
669 <guimenu>File</guimenu>
670 <guimenuitem>Print...</guimenuitem>
671 </menuchoice>
672 </term>
673 <listitem>
674 <para>
675 Opens a simple print dialog allowing the user to specify what, where,
676 and how to print.
677 </para>
678 </listitem>
679 </varlistentry>
681 <varlistentry>
682 <term id="export-as-html">
683 <menuchoice>
684 <guimenu>File</guimenu>
685 <guimenuitem>Export as HTML...</guimenuitem>
686 </menuchoice>
687 </term>
688 <listitem>
689 <para>
690 Export your file in HTML format so your document can be viewed as a web page.
691 </para>
692 </listitem>
693 </varlistentry>
695 <varlistentry>
696 <term id="close">
697 <menuchoice>
698 <shortcut>
699 <keycombo action="simul">&Ctrl;<keycap>W</keycap></keycombo>
700 </shortcut>
701 <guimenu>File</guimenu>
702 <guimenuitem>Close</guimenuitem>
703 </menuchoice>
704 </term>
705 <listitem>
706 <para>
707 Close the active file with this command. If you have made unsaved changes, you
708 will be prompted to save the file before &kwrite; closes it.
709 </para>
710 </listitem>
711 </varlistentry>
713 <varlistentry>
714 <term id="quit">
715 <menuchoice>
716 <shortcut>
717 <keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
718 </shortcut>
719 <guimenu>File</guimenu>
720 <guimenuitem>Quit</guimenuitem>
721 </menuchoice>
722 </term>
723 <listitem>
724 <para>
725 This will close the editor window, if you have more than one instance of
726 &kwrite; running, through the <guimenuitem>New View</guimenuitem> or
727 <guimenuitem>New Window</guimenuitem> menu items, those instances will
728 not be closed.
729 </para>
730 </listitem>
731 </varlistentry>
733 </variablelist>
735 </sect1>
737 <sect1 id="edit">
738 <title>The <guimenu>Edit</guimenu> Menu</title>
740 <variablelist>
741 <varlistentry>
742 <term id="undo"><menuchoice>
743 <shortcut><keycombo
744 action="simul">&Ctrl;<keycap>Z</keycap></keycombo></shortcut>
745 <guimenu>Edit</guimenu>
746 <guimenuitem>Undo</guimenuitem></menuchoice></term>
747 <listitem>
748 <para>This is used to eliminate or reverse the most recent user action
749 or operation.
750 <!--
751 Just what constitutes such an action may be better
752 understood by referring to the <link linkend="group-undos">Group
753 Undos</link> portion of this help file.
755 </para>
756 </listitem>
757 </varlistentry>
759 <varlistentry>
760 <term><anchor id="redo"/><menuchoice>
761 <shortcut><keycombo
762 action="simul">&Ctrl;&Shift;<keycap>Z</keycap></keycombo></shortcut>
763 <guimenu>Edit</guimenu><guimenuitem>Redo</guimenuitem></menuchoice></term>
764 <listitem>
765 <para>This will reverse the most recent change (if any) made using Undo</para>
766 </listitem>
767 </varlistentry>
769 <varlistentry>
770 <term><anchor id="cut"/><menuchoice>
771 <shortcut><keycombo
772 action="simul">&Ctrl;<keycap>X</keycap></keycombo></shortcut>
773 <guimenu>Edit</guimenu><guimenuitem>Cut</guimenuitem></menuchoice></term>
774 <listitem>
775 <para>This command deletes the current selection and places it on the
776 clipboard.
777 The clipboard is a feature of &kde; that works invisibly to provide a way to
778 transfer data between applications.</para>
779 </listitem>
780 </varlistentry>
782 <varlistentry>
783 <term><anchor id="copy"/><menuchoice>
784 <shortcut><keycombo
785 action="simul">&Ctrl;<keycap>C</keycap></keycombo></shortcut>
786 <guimenu>Edit</guimenu><guimenuitem>Copy</guimenuitem></menuchoice></term>
787 <listitem>
788 <para>This copies the currently selected text to the clipboard so that it may
789 be pasted elsewhere. The clipboard is a feature of &kde; that works invisibly
790 to provide a way to transfer data between applications.</para>
791 </listitem>
792 </varlistentry>
794 <varlistentry>
795 <term><anchor id="copy-as-html"/><menuchoice>
796 <guimenu>Edit</guimenu><guimenuitem>Copy as
797 HTML</guimenuitem></menuchoice></term>
798 <listitem>
799 <para>This copies the currently selected text to the clipboard as HTML.</para>
800 </listitem>
801 </varlistentry>
803 <varlistentry>
804 <term><anchor id="paste"/><menuchoice>
805 <shortcut><keycombo
806 action="simul">&Ctrl;<keycap>V</keycap></keycombo></shortcut>
807 <guimenu>Edit</guimenu><guimenuitem>Paste</guimenuitem></menuchoice></term>
808 <listitem>
809 <para>This will insert the contents of the clipboard at the cursor position.
810 The clipboard is feature of &kde; that works invisibly to provide a way to
811 transfer data between applications.</para>
812 </listitem>
813 </varlistentry>
815 <varlistentry>
816 <term><anchor id="select-all"/><menuchoice>
817 <shortcut><keycombo
818 action="simul">&Ctrl;<keycap>A</keycap></keycombo></shortcut>
819 <guimenu>Edit</guimenu><guimenuitem>Select All</guimenuitem></menuchoice></term>
820 <listitem>
821 <para>This will select the entire document. This could be very useful for
822 copying the entire file to another application.</para>
823 </listitem>
824 </varlistentry>
826 <varlistentry>
827 <term><anchor id="deselect"/><menuchoice>
828 <shortcut>
829 <keycombo action="simul">&Ctrl;&Shift;<keycap>A</keycap></keycombo>
830 </shortcut>
831 <guimenu>Edit</guimenu><guimenuitem>Deselect</guimenuitem></menuchoice></term>
832 <listitem>
833 <para>Deselects the selected text in the editor if any.</para>
834 </listitem>
835 </varlistentry>
837 <varlistentry>
838 <term><anchor id="block-selection-mode"/><menuchoice>
839 <shortcut>
840 <keycombo action="simul">&Ctrl;&Shift;<keycap>B</keycap></keycombo>
841 </shortcut>
842 <guimenu>Edit</guimenu><guimenuitem>Bloc
843 Selection Mode</guimenuitem></menuchoice></term>
844 <listitem>
845 <para>Toggles Selection Mode. When the Selection Mode is “BLOCK”, you can make
846 vertical selections, ie select column 5 to 10 in lines 9 to 15.
847 The status bar shows the current state of the Selection Mode, either “NORM” or
848 “BLK”.</para>
849 </listitem>
850 </varlistentry>
852 <varlistentry>
853 <term><anchor id="overwrite-mode"/><menuchoice>
854 <shortcut>
855 <keycombo action="simul"><keycap>Insert</keycap></keycombo>
856 </shortcut>
857 <guimenu>Edit</guimenu><guimenuitem>Overwrite
858 Mode</guimenuitem></menuchoice></term>
859 <listitem>
860 <para>Toggles the Insert/Overwrite modes. When the mode is "INS", you
861 insert characters where the cursor is. When the mode is "OVR", writing
862 characters will replace the current characters if your cursor is positioned
863 before any character. The status bar shows the current state of the Overwrite
864 Mode, either “INS” or “OVR”.</para>
865 </listitem>
866 </varlistentry>
868 <varlistentry>
869 <term><anchor id="find"/><menuchoice>
870 <shortcut><keycombo
871 action="simul">&Ctrl;<keycap>F</keycap></keycombo></shortcut>
872 <guimenu>Edit</guimenu><guimenuitem>Find</guimenuitem></menuchoice></term>
873 <listitem>
874 <para>This opens the find dialog which is used to specify the <guilabel>Text to
875 Find</guilabel> in the document. There is small text box for entering the search
876 pattern which also doubles as a dropdown box. Clicking on the dropdown arrow at
877 the side of the box makes available other recent search patterns. Other
878 parameters are included to make the search more efficient. Selecting
879 <guilabel>Case Sensitive</guilabel> will limit finds to entries that match the
880 case (upper or lower) of each of the characters in the search pattern.
881 <guilabel>Find Backwards</guilabel> directs the search to proceed in an upwardly
882 direction. The <guilabel>Selected Text</guilabel> option keeps the search
883 within currently selected text. Checking <guilabel>Whole Words Only</guilabel>
884 prevents the search from stopping on words that contain the searched for
885 pattern. The <guilabel>Search from Cursor</guilabel> option begins the search
886 from the current position of the cursor within the document rather than from
887 the beginning.</para>
888 </listitem>
889 </varlistentry>
891 <varlistentry>
892 <term><anchor id="find-again"/><menuchoice>
893 <shortcut><keycombo action="simul"><keycap>F3</keycap></keycombo></shortcut>
894 <guimenu>Edit</guimenu><guimenuitem>Find Next</guimenuitem></menuchoice></term>
895 <listitem>
896 <para>This repeats the last find operation, if any, without calling the find
897 dialog box.
898 </para>
899 </listitem>
900 </varlistentry>
902 <varlistentry>
903 <term id="find-previous">
904 <menuchoice>
905 <shortcut>
906 <keycombo action="simul">&Shift;<keycap>F3</keycap></keycombo>
907 </shortcut>
908 <guimenu>Edit</guimenu>
909 <guimenuitem>Find Previous</guimenuitem>
910 </menuchoice>
911 </term>
912 <listitem>
913 <para>
914 This repeats the last find operation, if any, without calling the find
915 dialog box, and searching backwards instead of forwards through the
916 document.
917 </para>
918 </listitem>
919 </varlistentry>
921 <varlistentry>
922 <term><anchor id="replace"/><menuchoice>
923 <shortcut><keycombo
924 action="simul">&Ctrl;<keycap>R</keycap></keycombo></shortcut>
925 <guimenu>Edit</guimenu><guimenuitem>Replace...</guimenuitem></menuchoice></term>
926 <listitem>
927 <para>This command opens the replace dialog box. The replace dialog is
928 almost identical to the above-mentioned find dialog. In addition to the features
929 in the find dialog it contains a <guilabel>Replace With:</guilabel> text
930 entry/dropdown box. Using this dialog the user can specify both the text to be
931 found and text with which to replace it. The additional <guilabel>Prompt
932 On Replace</guilabel> option allows the user to have &kwrite; ask for
933 confirmation before each replacement.
934 </para>
935 </listitem>
936 </varlistentry>
938 <varlistentry>
939 <term id="go-to-line">
940 <menuchoice>
941 <shortcut>
942 <keycombo action="simul">&Ctrl;<keycap>G</keycap></keycombo>
943 </shortcut>
944 <guimenu>Edit</guimenu>
945 <guimenuitem>Go to line</guimenuitem></menuchoice></term>
946 <listitem>
947 <para>
948 This opens the goto line dialog box which is used to have the cursor
949 jump to a particular line (specified by number) in the document. The
950 line number may be entered directly into the text box or graphically by
951 clicking on the up or down arrow spin controls at the side of the text
952 box. The little up arrow will increase the line number and the down
953 arrow decrease it. There is also a slide control to the right of the
954 text box which allows the user to move the goto point in the document in
955 an analog manner.
956 </para>
957 </listitem>
958 </varlistentry>
959 </variablelist>
961 </sect1>
962 <sect1 id="view-menu">
963 <title>The <guimenu>View</guimenu> menu</title>
965 <para>The <guimenu>View</guimenu> menu allows you to manage settings
966 specific to the active editor, and to manage frames.</para>
968 <variablelist>
970 <varlistentry>
971 <term>
972 <anchor id="view-new-window"/>
973 <menuchoice>
974 <guimenu>View</guimenu>
975 <guimenuitem>New Window</guimenuitem>
976 </menuchoice>
977 </term>
978 <listitem>
979 <para>Opens a new window with the same text.</para>
980 </listitem>
981 </varlistentry>
983 <varlistentry>
984 <term>
985 <anchor id="view-command-line"/>
986 <menuchoice>
987 <shortcut><keycombo
988 action="simul"><keycap>F7</keycap></keycombo></shortcut>
989 <guimenu>View</guimenu>
990 <guimenuitem>Switch to Command Line</guimenuitem>
991 </menuchoice>
992 </term>
993 <listitem>
994 <para>Displays the Katepart command line at the bottom of the window.
995 In the command line, type "help" to get help and "help list" to get a list of
996 commands.</para>
997 </listitem>
998 </varlistentry>
1000 <varlistentry>
1001 <term>
1002 <anchor id="view-schema"/>
1003 <menuchoice>
1004 <guimenu>View</guimenu>
1005 <guimenuitem>Schema</guimenuitem>
1006 </menuchoice>
1007 </term>
1008 <listitem>
1009 <para>Select a font schema.</para>
1010 </listitem>
1011 </varlistentry>
1013 <varlistentry>
1014 <term>
1015 <anchor id="view-dynamic-word-wrap"/>
1016 <menuchoice>
1017 <shortcut><keycombo action="simul"><keycap>F10</keycap></keycombo></shortcut>
1018 <guimenu>View</guimenu>
1019 <guimenuitem>Dynamic Word Wrap</guimenuitem>
1020 </menuchoice>
1021 </term>
1022 <listitem>
1023 <para>The text lines will be wrapped at the view
1024 border on the screen.</para>
1025 </listitem>
1026 </varlistentry>
1028 <varlistentry>
1029 <term>
1030 <anchor id="view-dynamic-word-wrap-indicators"/>
1031 <menuchoice>
1032 <shortcut><keycombo action="simul"><keycap>F10</keycap></keycombo></shortcut>
1033 <guimenu>View</guimenu>
1034 <guimenuitem>Dynamic Word Wrap Indicators</guimenuitem>
1035 </menuchoice>
1036 </term>
1037 <listitem>
1038 <para>Choose when and how the dynamic word wrap indicators should be
1039 displayed. This is only available if the <guilabel>Dynamic Word
1040 Wrap</guilabel> option is checked.</para>
1041 </listitem>
1042 </varlistentry>
1044 <varlistentry>
1045 <term>
1046 <anchor id="view-show-static-word-wrap"/>
1047 <menuchoice>
1048 <guimenu>View</guimenu>
1049 <guimenuitem>Show Static Word Wrap Marker</guimenuitem>
1050 </menuchoice>
1051 </term>
1052 <listitem>
1053 <para>If this option is checked, a vertical line will be drawn at the
1054 word wrap column as defined in the <menuchoice>
1055 <guimenu>Settings</guimenu>
1056 <guimenuitem>Configure Editor...</guimenuitem></menuchoice> in the
1057 Editing tab. Please note that the word wrap marker is only drawn if you
1058 use a fixed pitch font.</para>
1059 </listitem>
1060 </varlistentry>
1062 <varlistentry>
1063 <term>
1064 <anchor id="view-show-icon-border"/>
1065 <menuchoice>
1066 <shortcut><keycombo action="simul"><keycap>F6</keycap></keycombo></shortcut>
1067 <guimenu>View</guimenu>
1068 <guimenuitem>Show Icon Border</guimenuitem>
1069 </menuchoice>
1070 </term>
1071 <listitem>
1072 <para>This is a toggle item. Setting it on checked will make the
1073 side of the active editor, and vice versa.</para>
1074 </listitem>
1075 </varlistentry>
1077 <varlistentry>
1078 <term>
1079 <anchor id="view-show-line-numbers"/>
1080 <menuchoice>
1081 <shortcut><keycombo action="simul"><keycap>F11</keycap></keycombo></shortcut>
1082 <guimenu>View</guimenu>
1083 <guimenuitem>Show Line Numbers</guimenuitem>
1084 </menuchoice>
1085 </term>
1086 <listitem>
1087 <para>This is a toggle Item. Setting it on checked will make a pane displaying
1088 the line numbers of the document visible in the left border of the active
1089 editor, and vice versa.</para>
1090 </listitem>
1091 </varlistentry>
1093 <varlistentry>
1094 <term>
1095 <anchor id="view-scrollbar-marks"/>
1096 <menuchoice>
1097 <guimenu>View</guimenu>
1098 <guisubmenu>Show Scrollbar Marks</guisubmenu>
1099 </menuchoice>
1100 </term>
1101 <listitem>
1102 <para>If this option is checked, the view will show marks on the vertical
1103 scrollbar.</para>
1104 </listitem>
1105 </varlistentry>
1107 <varlistentry>
1108 <term>
1109 <anchor id="view-hide-folding-markers"/>
1110 <menuchoice>
1111 <shortcut><keycombo action="simul"><keycap>F9</keycap></keycombo></shortcut>
1112 <guimenuitem>Hide Folding Markers</guimenuitem>
1113 </menuchoice>
1114 </term>
1115 <listitem>
1116 <para>If this option is checked, the marks for code folding will be
1117 hidden.</para>
1118 </listitem>
1119 </varlistentry>
1121 <varlistentry>
1122 <term>
1123 <anchor id="view-code-folding"/>
1124 <menuchoice>
1125 <guimenuitem>Code Folding</guimenuitem>
1126 </menuchoice>
1127 </term>
1128 <listitem>
1129 <variablelist>
1130 <varlistentry>
1131 <term><menuchoice><shortcut><keycombo action="simul"><keycap>Ctrl</keycap>
1132 <keycap>Shift</keycap><keycap>-</keycap></keycombo></shortcut>
1133 <guimenuitem>Collapse Toplevel</guimenuitem></menuchoice>
1134 </term>
1135 <listitem><para>Collapse all toplevel regions in the document.</para></listitem>
1136 </varlistentry>
1137 <varlistentry>
1138 <term><menuchoice><shortcut><keycombo action="simul"><keycap>Ctrl</keycap>
1139 <keycap>Shift</keycap><keycap>+</keycap></keycombo></shortcut>
1140 <guimenuitem>Expand Toplevel</guimenuitem></menuchoice>
1141 </term>
1142 <listitem><para>Expand all toplevel regions in the document.</para></listitem>
1143 </varlistentry>
1144 <varlistentry>
1145 <term><menuchoice><shortcut><keycombo action="simul"><keycap>Ctrl</keycap>
1146 <keycap>-</keycap></keycombo></shortcut>
1147 <guimenuitem>Collapse One Local Level</guimenuitem></menuchoice>
1148 </term>
1149 <listitem><para>Collapse the region closest to the cursor.</para></listitem>
1150 </varlistentry>
1151 <varlistentry>
1152 <term><menuchoice><shortcut><keycombo action="simul"><keycap>Ctrl</keycap>
1153 <keycap>+</keycap></keycombo></shortcut>
1154 <guimenuitem>Expand One Local Level</guimenuitem></menuchoice>
1155 </term>
1156 <listitem><para>Expand the region closest to the cursor.</para></listitem>
1157 </varlistentry>
1158 </variablelist>
1159 </listitem>
1160 </varlistentry>
1162 </variablelist>
1164 </sect1>
1166 <sect1 id="go">
1167 <title>The <guimenu>Bookmarks</guimenu> Menu</title>
1168 <variablelist>
1170 <varlistentry>
1171 <term id="set-bookmark">
1172 <menuchoice>
1173 <shortcut>
1174 <keycombo action="simul">&Ctrl;<keycap>B</keycap></keycombo>
1175 </shortcut>
1176 <guimenu>Bookmarks</guimenu>
1177 <guimenuitem>Set Bookmark</guimenuitem>
1178 </menuchoice>
1179 </term>
1180 <listitem>
1181 <para>
1182 Sets or removes a bookmark in the current line of the active document. (If it's
1183 there, it is removed, otherwise one is set).
1184 </para>
1185 </listitem>
1186 </varlistentry>
1188 <varlistentry>
1189 <term id="clear-bookmarks">
1190 <menuchoice>
1191 <guimenu>Bookmarks</guimenu>
1192 <guimenuitem>Clear All Bookmarks</guimenuitem>
1193 </menuchoice>
1194 </term>
1195 <listitem>
1196 <para>
1197 This command will remove all the markers from the document as well as
1198 the list of markers which is appended at the bottom of this menu item.
1199 </para>
1200 </listitem>
1201 </varlistentry>
1203 <varlistentry id="bookmarks-previous">
1204 <term><menuchoice><shortcut><keycombo action="simul"><keycap>Alt</keycap>
1205 <keycap>Page Up</keycap></keycombo></shortcut>
1206 <guimenu>Bookmarks</guimenu><guimenuitem>Previous</guimenuitem></menuchoice>
1207 </term>
1208 <listitem><para>This will move the cursor to beginning of the first above line
1209 with a bookmark. The menuitem text will include the line number and the first
1210 piece of text on the line. This item is only available when there is a bookmark
1211 in a line above the cursor.</para></listitem>
1212 </varlistentry>
1214 <varlistentry id="bookmarks-next">
1215 <term><menuchoice><shortcut><keycombo action="simul"><keycap>Alt</keycap>
1216 <keycap>Page Down</keycap></keycombo></shortcut>
1217 <guimenu>Bookmarks</guimenu><guimenuitem>Next</guimenuitem></menuchoice></term>
1218 <listitem><para>This will move the cursor to beginning of the next line with a
1219 bookmark. The menuitem text will include the line number and the first piece of
1220 text on the line. This item is only available when there is a bookmark in a line
1221 below the cursor.</para></listitem>
1222 </varlistentry>
1224 </variablelist>
1226 <para>
1227 At the bottom of this menu, a list of markers appears if any markers are
1228 available for this window.
1229 </para>
1231 </sect1>
1233 <sect1 id="tools">
1234 <title>The <guimenu>Tools</guimenu> Menu</title>
1236 <variablelist>
1237 <varlistentry>
1238 <term><anchor id="tools-read-only"/><menuchoice>
1239 <guimenu>Tools</guimenu>
1240 <guimenuitem>Read Only Mode</guimenuitem></menuchoice></term>
1241 <listitem>
1242 <para>Set the current document to Read Only mode. This prevents any text
1243 addition and any changes in the document formatting.</para>
1244 </listitem>
1245 </varlistentry>
1247 <varlistentry>
1248 <term><anchor id="tools-filetype"/><menuchoice>
1249 <guimenu>Tools</guimenu>
1250 <guimenuitem>Filletype</guimenuitem></menuchoice></term>
1251 <listitem>
1252 <para>Choose the filetype scheme you prefer for the active document. This
1253 overwrites the global filetype mode set in <menuchoice>
1254 <guimenu>Settings</guimenu>
1255 <guimenuitem>Configure
1256 Editor...</guimenuitem></menuchoice> in the Filetypes tab for your current
1257 document only.</para>
1258 </listitem>
1259 </varlistentry>
1261 <varlistentry>
1262 <term><anchor id="tools-highlighting"/><menuchoice>
1263 <guimenu>Tools</guimenu>
1264 <guimenuitem>Highlighting</guimenuitem></menuchoice></term>
1265 <listitem>
1266 <para>Choose the Highlighting scheme you prefer for the active document. This
1267 overwrites the global highlighting mode set in <menuchoice>
1268 <guimenu>Settings</guimenu>
1269 <guimenuitem>Configure
1270 Editor...</guimenuitem></menuchoice> for your current document only.</para>
1271 </listitem>
1272 </varlistentry>
1274 <varlistentry>
1275 <term><anchor id="tools-indentation"/><menuchoice>
1276 <guimenu>Tools</guimenu>
1277 <guimenuitem>Indentation</guimenuitem></menuchoice></term>
1278 <listitem>
1279 <para>Choose the style of indentation you want for your active document.
1280 This overwrites the global indentation mode set in <menuchoice>
1281 <guimenu>Settings</guimenu>
1282 <guimenuitem>Configure
1283 Editor...</guimenuitem></menuchoice> for your current document only.</para>
1284 </listitem>
1285 </varlistentry>
1287 <varlistentry>
1288 <term><anchor id="tools-encoding"/><menuchoice>
1289 <guimenu>Tools</guimenu>
1290 <guimenuitem>Encoding</guimenuitem></menuchoice></term>
1291 <listitem>
1292 <para>You can overwrite the default encoding set in <menuchoice>
1293 <guimenu>Settings</guimenu>
1294 <guimenuitem>Configure
1295 Editor...</guimenuitem></menuchoice> in the <guilabel>Open/Save</guilabel> tab
1296 to set a different encoding for your current document. The encoding you
1297 set here will be only valid for your current document.</para>
1298 </listitem>
1299 </varlistentry>
1301 <varlistentry>
1302 <term><anchor id="tools-end-of-line"/><menuchoice>
1303 <guimenu>Tools</guimenu>
1304 <guimenuitem>End of Line</guimenuitem></menuchoice></term>
1305 <listitem>
1306 <para>Choose your prefered end of line mode for your active
1307 document. This overwrites the global end of line mode set in <menuchoice>
1308 <guimenu>Settings</guimenu>
1309 <guimenuitem>Configure
1310 Editor...</guimenuitem></menuchoice> for your current document only.</para>
1311 </listitem>
1312 </varlistentry>
1314 <varlistentry>
1315 <term><anchor id="Spelling..."/><menuchoice>
1316 <guimenu>Tools</guimenu><guimenuitem>Spelling...</guimenuitem></menuchoice>
1317 </term>
1319 <listitem><para><action>This initiates the spellchecking program - a program
1320 designed to help the user catch and correct any spelling errors.</action>
1321 Clicking on this entry will start the checker and bring up the speller dialog
1322 box through which the user can control the process. There are four settings
1323 lined up vertically in the center of the dialog with their corresponding labels
1324 just to the left. Starting at the top they are:</para>
1326 <variablelist>
1327 <varlistentry>
1328 <term><guilabel>Unknown word:</guilabel></term>
1329 <listitem><para>Here, the spellchecker indicates the word currently under
1330 consideration. This happens when the checker encounters a word not in its
1331 dictionary - a file containing a list of correctly spelled words against which
1332 it compares each word in the editor.</para></listitem>
1333 </varlistentry>
1334 <varlistentry>
1335 <term><guilabel>Replace with:</guilabel></term>
1336 <listitem><para> If the checker has any similar words in its dictionary the
1337 first one will be listed here. The user can accept the suggestion, type in his
1338 or her own correction, or choose a different suggestion from the next
1339 box.</para></listitem>
1340 </varlistentry>
1341 <varlistentry>
1342 <term><guilabel>Suggested Words:</guilabel></term>
1343 <listitem><para> The checker may list here a number of possible replacements for
1344 the word under consideration. Clicking on any one of the suggestions will cause
1345 that word to be entered in the <guilabel>Replacement:</guilabel> box,
1346 above.</para></listitem>
1347 </varlistentry>
1348 <varlistentry>
1349 <term><guilabel>Language:</guilabel></term>
1350 <listitem><para> If you have installed multiple dictionaries, here you can
1351 select which dictionary/language should be used.</para></listitem>
1352 </varlistentry>
1353 </variablelist>
1355 <para>On the right side of the dialog box are 5 buttons that allow the user to
1356 control the spellcheck process. They are:</para>
1358 <variablelist>
1359 <varlistentry>
1360 <term><guibutton>Add to Dictionary</guibutton></term>
1361 <listitem><para>Pressing this button adds the word in the <guilabel>Misspelled
1362 Word:</guilabel> box to the checker's dictionary. This means that in the future
1363 the checker will always consider this word to be correctly
1364 spelled.</para></listitem>
1365 </varlistentry>
1366 <varlistentry>
1367 <term><guibutton>Replace</guibutton></term>
1368 <listitem><para> This button has the checker replace the word under
1369 consideration in the document with the word in the
1370 <guilabel>Replacement:</guilabel> box.</para></listitem>
1371 </varlistentry>
1372 <varlistentry>
1373 <term><guibutton>Replace All</guibutton></term>
1374 <listitem><para> This button causes the checker to replace not only the current
1375 <guilabel>Unknown word:</guilabel> but to automatically make the same
1376 substitution for any other occurrences of this <guilabel>Misspelled
1377 Word:</guilabel> in the document.</para></listitem>
1378 </varlistentry>
1379 <varlistentry>
1380 <term><guibutton>Ignore</guibutton></term>
1381 <listitem><para>Activating this button will have the checker move on without
1382 making any changes.</para></listitem>
1383 </varlistentry>
1384 <varlistentry>
1385 <term><guibutton>Ignore All</guibutton></term>
1386 <listitem><para> This button tells the checker to do nothing with the current
1387 <guilabel>Unknown word:</guilabel> and to pass over any other instances of
1388 the same word.</para> <note><para>This only applies to the current spellcheck
1389 run. If the checker is run again later it will stop on this same
1390 word.</para></note></listitem>
1391 </varlistentry>
1392 </variablelist>
1394 <!--<para>Located horizontally along the bottom of the spellcheck dialog is a
1395 progress bar. As the checking process proceeds the bar will fill from left to
1396 right providing a graphical representation of how far along in the document the
1397 process has reached. In addition, the progress is displayed numerically in
1398 the center of the progress bar.</para>//-->
1400 <!--<note><para>A numerical display of the spellcheck
1401 process is simultaneously displayed in the status bar of the editor. The <link
1402 linkend="show-statusbar">status bar</link> is the horizontal strip at the bottom
1403 of the editor just outside of the text entry area.</para></note>//-->
1405 <para>Three more buttons are located horizontally along the bottom of the
1406 spellcheck dialog. They are:</para>
1408 <variablelist>
1409 <varlistentry>
1410 <term><guibutton>Help</guibutton></term>
1411 <listitem><para> This invokes the &kde; help system starting at the &kwrite; help
1412 pages (this document).</para></listitem>
1413 </varlistentry>
1415 <varlistentry>
1416 <term><guibutton>Finished</guibutton></term>
1417 <listitem><para> This button ends the spellcheck process, and returns to the
1418 document.</para></listitem>
1419 </varlistentry>
1421 <varlistentry>
1422 <term><guibutton>Cancel</guibutton></term>
1423 <listitem><para> This button cancels the spellcheck process, all modifications
1424 are reverted, and you will return to your document.</para></listitem>
1425 </varlistentry>
1426 </variablelist>
1427 </listitem>
1428 </varlistentry>
1429 </variablelist>
1431 <variablelist>
1432 <varlistentry>
1433 <term><anchor id="tools-spelling-from-cursor"/><menuchoice>
1434 <guimenu>Tools</guimenu>
1435 <guimenuitem>Spelling (from cursor)...</guimenuitem></menuchoice></term>
1436 <listitem>
1437 <para>This initiates the spellchecking program but it starts where your cursor
1438 is instead of at the beginning of the document.</para>
1439 </listitem>
1440 </varlistentry>
1442 <varlistentry>
1443 <term><anchor id="tools-spellcheck-selection"/><menuchoice>
1444 <guimenu>Tools</guimenu>
1445 <guimenuitem>Spellcheck Selection...</guimenuitem></menuchoice></term>
1446 <listitem>
1447 <para>Spellchecks the current selection.</para>
1448 </listitem>
1449 </varlistentry>
1451 <varlistentry>
1452 <term><anchor id="indent"/><menuchoice>
1453 <shortcut>
1454 <keycombo action="simul">&Ctrl;<keycap>I</keycap></keycombo>
1455 </shortcut>
1456 <guimenu>Tools</guimenu><guimenuitem>Indent</guimenuitem></menuchoice></term>
1457 <listitem>
1458 <para>This increases the paragraph's indentation by one step. The size of the
1459 step depends on the <link linkend="pref-indent"> indentation
1460 settings</link>.</para>
1461 </listitem>
1462 </varlistentry>
1464 <varlistentry>
1465 <term><anchor id="unindent"/><menuchoice>
1466 <shortcut>
1467 <keycombo action="simul">&Ctrl;&Shift;<keycap>I</keycap></keycombo>
1468 </shortcut>
1469 <guimenu>Tools</guimenu><guimenuitem>Unindent</guimenuitem></menuchoice></term>
1471 <listitem>
1472 <para>This reduces the paragraph's indentation by one step. The size of the step
1474 depends on the <link linkend="pref-indent"> indentation settings</link>.</para>
1476 </listitem>
1477 </varlistentry>
1479 <varlistentry>
1480 <term><anchor id="cleanindent"/><menuchoice>
1481 <guimenu>Tools</guimenu><guimenuitem>Clean
1482 Indentation</guimenuitem></menuchoice></term> <listitem>
1483 <para>This cleans the indentation for the current selection or for the
1484 line the cursor is currently in. Cleaning the indentation ensures that
1485 all your selected text follows the indentation mode you choose.</para>
1486 </listitem>
1487 </varlistentry>
1489 <varlistentry>
1490 <term><anchor id="tools-align"/><menuchoice>
1491 <guimenu>Tools</guimenu>
1492 <guimenuitem>Align</guimenuitem>
1493 </menuchoice></term>
1494 <listitem>
1495 <para>Causes a realign of the current line or selected lines using the
1496 indentation mode and indentation settings in the doucment.</para>
1497 </listitem>
1498 </varlistentry>
1500 <varlistentry>
1501 <term><menuchoice>
1502 <shortcut>
1503 <keycombo action="simul">&Ctrl;<keycap>D</keycap></keycombo>
1504 </shortcut>
1505 <guimenu>Tools</guimenu>
1506 <guimenuitem>Comment</guimenuitem>
1507 </menuchoice></term>
1508 <listitem><para>This adds one space to the beginning of the line
1509 where the text cursor is located or to the beginning of any
1510 selected lines.</para>
1511 </listitem>
1512 </varlistentry>
1514 <varlistentry>
1515 <term><menuchoice>
1516 <shortcut>
1517 <keycombo action="simul">&Ctrl;&Shift;<keycap>D</keycap></keycombo>
1518 </shortcut>
1519 <guimenu>Tools</guimenu>
1520 <guimenuitem>Uncomment</guimenuitem>
1521 </menuchoice></term>
1522 <listitem><para>This removes one space (if any exist) from the beginning of the
1523 line where the text cursor is located or from the beginning of any
1524 selected lines.</para></listitem>
1525 </varlistentry>
1527 <varlistentry>
1528 <term><menuchoice>
1529 <shortcut>
1530 <keycombo action="simul">&Ctrl;<keycap>U</keycap></keycombo>
1531 </shortcut>
1532 <guimenu>Tools</guimenu>
1533 <guimenuitem>Uppercase</guimenuitem>
1534 </menuchoice></term>
1535 <listitem><para>Put the selected text or the letter after the cursor in
1536 uppercase.</para></listitem>
1537 </varlistentry>
1539 <varlistentry>
1540 <term><menuchoice>
1541 <shortcut>
1542 <keycombo action="simul">&Ctrl;&Shift;<keycap>U</keycap></keycombo>
1543 </shortcut>
1544 <guimenu>Tools</guimenu>
1545 <guimenuitem>Lowercase</guimenuitem>
1546 </menuchoice></term>
1547 <listitem><para>Put the selected text or the letter after the cursor in
1548 lowercase.</para></listitem>
1549 </varlistentry>
1551 <varlistentry>
1552 <term><menuchoice>
1553 <shortcut>
1554 <keycombo action="simul">&Alt;&Ctrl;<keycap>U</keycap></keycombo>
1555 </shortcut>
1556 <guimenu>Tools</guimenu>
1557 <guimenuitem>Capitalize</guimenuitem>
1558 </menuchoice></term>
1559 <listitem><para>Capitalize the selected text or the current
1560 word.</para></listitem>
1561 </varlistentry>
1563 <varlistentry>
1564 <term><menuchoice>
1565 <shortcut>
1566 <keycombo action="simul">&Ctrl;<keycap>J</keycap></keycombo>
1567 </shortcut>
1568 <guimenu>Tools</guimenu>
1569 <guimenuitem>Join Lines</guimenuitem>
1570 </menuchoice></term>
1571 <listitem><para>Joins the selected lines, or the current line and the line below
1572 with one white space character as a separator. Leading/trailing white space on
1573 joined lines is removed in the affected ends.</para></listitem>
1574 </varlistentry>
1576 <varlistentry>
1577 <term><menuchoice>
1578 <guimenu>Tools</guimenu>
1579 <guimenuitem>Word Wrap Document</guimenuitem>
1580 </menuchoice></term>
1581 <listitem><para>Apply static word wrapping on all the document. That means that
1582 a new line of text will automatically start when the current
1583 line exceeds the length specified by the Wrap words at: option
1584 in the Editing tab in <menuchoice>
1585 <guimenu>Settings</guimenu><guimenuitem>Configure
1586 Editor...</guimenuitem></menuchoice></para></listitem>
1587 </varlistentry>
1589 </variablelist>
1592 </sect1>
1594 <sect1 id="settings">
1595 <title>The <guimenu>Settings</guimenu> Menu</title>
1597 <variablelist>
1598 <varlistentry>
1599 <term><anchor id="show-toolbar"/><menuchoice>
1600 <guimenu>Settings</guimenu>
1601 <guimenuitem>Show Toolbar</guimenuitem>
1602 </menuchoice>
1603 </term>
1604 <listitem>
1605 <para>
1606 When checked, this displays a movable toolbar containing buttons used to
1607 initiate frequently used commands. When unchecked the toolbar is hidden.
1608 </para>
1609 </listitem>
1610 </varlistentry>
1612 <varlistentry>
1613 <term><anchor id="show-statusbar"/><menuchoice>
1614 <guimenu>Settings</guimenu><guimenuitem>Show
1615 Statusbar</guimenuitem></menuchoice></term>
1616 <listitem>
1617 <para>When checked, this displays a small bar at the bottom of the editor
1618 containing information about the status of the current document. When unchecked
1619 the statusbar is hidden.</para>
1620 </listitem>
1621 </varlistentry>
1623 <varlistentry>
1624 <term><anchor id="show-path"/><menuchoice>
1625 <guimenu>Settings</guimenu><guimenuitem>Show
1626 Path</guimenuitem></menuchoice></term>
1627 <listitem>
1628 <para>When selected, this displays in the titlebar the path (its location in the
1629 file system) of the current document. When unchecked the path is hidden.</para>
1630 </listitem>
1631 </varlistentry>
1633 <varlistentry>
1634 <term><anchor id="preferences"/><menuchoice>
1635 <guimenu>Settings</guimenu>
1636 <guimenuitem>Configure Editor...</guimenuitem>
1637 </menuchoice>
1638 </term>
1639 <listitem>
1640 <para>
1641 This menu item opens a dialog whereby several different <link
1642 linkend="pref-dialog">settings</link> may be adjusted.
1643 </para>
1644 </listitem>
1645 </varlistentry>
1647 <varlistentry>
1648 <term><anchor id="choose-editor"/><menuchoice>
1649 <guimenu>Settings</guimenu>
1650 <guimenuitem>Choose Editor...</guimenuitem>
1651 </menuchoice>
1652 </term>
1653 <listitem>
1654 <para>
1655 Choose the default text editing component that you wish to use in &kwrite;. You
1656 can choose <guilabel>System Default</guilabel>, <guilabel>Embedded
1657 Advanced Text Editor</guilabel> or <guilabel>&Qt; Designer Based
1658 Text Editor</guilabel> (note that the &Qt; Designer Based Text Editor is
1659 only available if you have KDevelop installed on your system). If you choose
1660 <guilabel>System Default</guilabel>, &kwrite; will honor your changes in
1661 &kcontrolcenter;. All other choices will override that setting.
1662 </para>
1663 </listitem>
1664 </varlistentry>
1666 <varlistentry>
1667 <term><anchor id="configure-keybindings"/><menuchoice>
1668 <guimenu>Settings</guimenu><guimenuitem>Configure
1669 Shortcuts...</guimenuitem></menuchoice></term>
1670 <listitem>
1671 <para>This command opens a dialog box whereby the <link
1672 linkend="keybindings">shortcuts</link> may be changed. A display window at the
1673 top of the dialog box shows the list of commands (actions) that can have
1674 keyboard shortcuts. Below the display are three radio buttons. The user may
1675 choose between No Key, Default Key, and Custom Key. (Note that a set of radio
1676 buttons only allows the selection of one of the offered items - in the way that
1677 buttons on a car radio only offer the selection of one preset station. Also,
1678 the Default Key selection is only available for those commands that actually
1679 have a 'default' shortcut.) Selecting the Custom Key option activates the three
1680 check boxes and key button at the bottom of the dialog. The user may then select
1681 a key combination for the command in question by means of the check boxes and
1682 key button. For example, with the About &kde; command selected in the display
1683 window, the user could select &Ctrl; and <keycap>Alt</keycap>, click on the key
1684 button, and then press the <keycap>K</keycap> key on the keyboard. This would
1685 mean that anytime he or she held down the &Ctrl; and <keycap>Alt</keycap>
1686 buttons and pressed <keycap>K</keycap> (while using
1687 &kwrite;) the About &kde; display box would be called. </para>
1688 </listitem>
1689 </varlistentry>
1691 <varlistentry>
1692 <term><anchor id="configure-toolbars"/><menuchoice>
1693 <guimenu>Settings</guimenu><guimenuitem>Configure
1694 Toolbars...</guimenuitem></menuchoice></term>
1695 <listitem><para>This will open the dialog whereby the toolbar configuration may
1696 be changed. The user can choose which shortcut buttons should appear on the
1697 toolbar. A display window on the left lists the commands available to placed
1698 on the toolbar. A display on the right lists those commands already on the
1699 toolbar. A set of four arrow buttons between the two displays manipulates the
1700 selections. The right pointing arrow places any command selected in the left
1701 pane onto the right pane, <abbrev>i.e.</abbrev>, it is added to the toolbar.
1702 The left arrow does just the opposite, removing any action selected in the right
1704 window from the toolbar. The up and down pointing arrows change the position of
1706 an action selected in the right window which changes the position of its button
1708 in the toolbar.</para> </listitem>
1709 </varlistentry>
1713 <!--
1714 <varlistentry>
1715 <term>
1716 <menuchoice><guimenu>>Settings</guimenu><guimenuitem>Configure
1717 Highlighting</guimenuitem></menuchoice></term>
1718 <listitem><para>Opens a dialog box allowing configuration of the syntax
1719 highlighting. The dialog is described in <xref
1720 linkend="pref-highlighting"/>.</para></listitem>
1721 </varlistentry> -->
1723 <!--<varlistentry>
1724 <term>
1725 <menuchoice>
1726 <shortcut>
1727 <keycombo action="simul"><keycap>F6</keycap></keycombo>
1728 </shortcut>
1729 <guimenu>Settings</guimenu>
1730 <guimenuitem>Show Icon Border</guimenuitem>
1731 </menuchoice>
1732 </term>
1733 <listitem>
1734 <para>
1735 Toggle the display of a border on the left of the editing window, where
1736 bookmarks are displayed next to the line they apply to.
1737 </para>
1738 </listitem>
1739 </varlistentry>//-->
1741 <!--<varlistentry>
1742 <term id="vertical-selection">
1743 <menuchoice>
1744 <shortcut>
1745 <keycombo action="simul"><keycap>F4</keycap></keycombo>
1746 </shortcut>
1747 <guimenu>Settings</guimenu>
1748 <guimenuitem>Vertical Selection</guimenuitem>
1749 </menuchoice>
1750 </term>
1751 <listitem>
1752 <para>
1753 This is used to turn on or off the vertical selection feature. Vertical
1754 selection allows text to be selected by column as well as by row. In other
1755 words with this feature the user is able to select text contained in only
1756 particular contiguous columns and rows. In affect the user can select a
1757 rectangular area of text anywhere in the document.
1758 </para>
1759 </listitem>
1760 </varlistentry> //-->
1762 <!--<varlistentry>
1763 <term id="set-highlight">
1764 <menuchoice>
1765 <guimenu>Settings</guimenu>
1766 <guisubmenu>Highlight Mode</guisubmenu>
1767 </menuchoice>
1768 </term>
1769 <listitem>
1770 <para>
1771 This allows the user to choose the style of color highlighting which the
1772 editor uses to display the text. The styles are selected by programming
1773 language. The font/color information is not stored with the document.
1774 </para>
1775 </listitem>
1776 </varlistentry> //-->
1778 <!--<varlistentry>
1779 <term><anchor id="end-of-line"/>
1780 <menuchoice>
1781 <guimenu>Settings</guimenu><guisubmenu>End of
1782 Line</guisubmenu></menuchoice></term>
1783 <listitem>
1784 <para>This opens a sub-menu from which the user can select the type of
1785 <quote>end of
1786 line</quote> code for &kwrite; to use, <abbrev>i.e.</abbrev>, the accepted
1787 standard
1788 used by &UNIX;, &Mac; or MSDOS/&Windows; systems.</para>
1789 </listitem>
1790 </varlistentry> //-->
1792 </variablelist>
1793 </sect1>
1795 <sect1 id="help">
1796 <title>The <guimenu>Help</guimenu> Menu</title>
1798 &help.menu.documentation;
1800 </sect1>
1801 </chapter>
1803 <chapter id="pref-dialog">
1804 <title>Configure &kwrite;</title>
1806 <para>
1807 Selecting <menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure
1808 Editor...</guimenuitem></menuchoice> from the menu brings up the
1809 <guilabel>Configure Editor</guilabel> dialog box. This dialog can be
1810 used to alter a number of different settings. The settings available
1811 for change vary according to which category the user chooses from a
1812 vertical list on the left side of the dialog. By means of three buttons
1813 along the bottom of the box the user can control the process.
1814 </para>
1816 <para>
1817 She or he may invoke the <guilabel>Help</guilabel> system, accept the
1818 current settings and close the dialog by means of the
1819 <guibutton>OK</guibutton> button, or <guibutton>Cancel</guibutton> the
1820 process. The categories <guilabel>Colors</guilabel>,
1821 <guilabel>Fonts</guilabel> <guilabel>Indent</guilabel>,
1822 <guilabel>Select</guilabel>, <guilabel>Edit</guilabel>,
1823 <guilabel>Spelling</guilabel> and <guilabel>Highlighting</guilabel> are
1824 detailed below.
1825 </para>
1827 <sect1 id="appearance">
1828 <title>Appearance</title>
1830 <variablelist>
1831 <varlistentry>
1832 <term><guilabel>Word Wrap</guilabel></term>
1833 <listitem>
1834 <variablelist>
1835 <varlistentry id="appearance-settings">
1836 <term><guilabel>Dynamic word wrap</guilabel></term>
1837 <listitem><para>If this option is checked, the text lines
1838 will be wrapped at the view border on the screen.</para></listitem>
1839 </varlistentry>
1840 <varlistentry>
1841 <term><guilabel>Dynamic word wrap indicators</guilabel></term>
1842 <listitem><para>Choose when the Dynamic word wrap indicators
1843 should be displayed.
1844 </para></listitem></varlistentry>
1845 <varlistentry>
1846 <term><guilabel>Vertically align dynamically wrapped lines
1847 to indentation depth:
1848 </guilabel></term>
1849 <listitem><para>Enables the start of dynamically wrapped
1850 lines to be aligned vertically to the indentation level of the first
1851 line. This can help to make code and markup more
1852 readable.</para><para>Additionally, this allows you to
1853 set a maximum width of the screen, as a percentage,
1854 after which dynamically wrapped lines will no longer be vertically aligned.
1855 For example, at 50%, lines whose indentation levels are deeper than 50% of the
1856 width of the screen will not have vertical alignment applied to subsequent
1857 wrapped lines.</para></listitem>
1858 </varlistentry>
1859 </variablelist>
1860 </listitem>
1861 </varlistentry>
1863 <varlistentry>
1864 <term><guilabel>Code Folding</guilabel></term>
1865 <listitem>
1866 <variablelist>
1867 <varlistentry>
1868 <term><guilabel>Show folding markers (if available)
1869 </guilabel></term>
1870 <listitem><para>If this option is checked, the current view will display marks
1871 for code folding, if code folding is available.</para></listitem>
1872 </varlistentry>
1873 </variablelist>
1874 </listitem>
1875 </varlistentry>
1877 <varlistentry>
1878 <term><guilabel>Borders</guilabel></term>
1879 <listitem>
1880 <variablelist>
1881 <varlistentry>
1882 <term><guilabel>Show icon border
1883 </guilabel></term>
1884 <listitem><para>If this is checked, you will see an icon border on the left
1885 hand side. The icon border shows bookmark signs for instance.</para></listitem>
1886 </varlistentry>
1887 <varlistentry>
1888 <term><guilabel>Show line numbers
1889 </guilabel></term>
1890 <listitem><para>If this is checked, you will see line numbers on the left
1891 hand side.</para></listitem>
1892 </varlistentry>
1893 <varlistentry>
1894 <term><guilabel>Show scrollbar marks
1895 </guilabel></term>
1896 <listitem><para>If this option is checked the current view
1897 will show marks on the vertical scrollbar. These marks will
1898 for instance show bookmarks.</para></listitem>
1899 </varlistentry>
1900 </variablelist>
1901 </listitem>
1902 </varlistentry>
1904 <varlistentry>
1905 <term><guilabel>Sort Bookmarks Menu
1906 </guilabel></term>
1907 <listitem><para>
1908 <variablelist>
1909 <varlistentry>
1910 <term><guilabel>By position
1911 </guilabel></term>
1912 <listitem><para>The bookmarks will be ordered by the line
1913 numbers they are placed at.</para></listitem>
1914 </varlistentry>
1915 <varlistentry>
1916 <term><guilabel>By creation
1917 </guilabel></term>
1918 <listitem><para>Each new bookmark will be added to the bottom,
1919 independently from where it is placed in the document.</para></listitem>
1920 </varlistentry>
1921 </variablelist>
1922 </para></listitem>
1923 </varlistentry>
1925 <varlistentry>
1926 <term><guilabel>Show identation lines
1927 </guilabel></term>
1928 <listitem><para>If this is checked, the editor wil display
1929 vertical lines to help identifying indent lines.</para></listitem>
1930 </varlistentry>
1931 </variablelist>
1932 </sect1>
1934 <sect1 id="prefcolors">
1935 <title>Fonts &amp; Colors</title>
1937 <para>This section of the dialog lets you configure all fonts and colors in
1938 any color scheme you have, as well creating new schemes or deleting existing
1939 ones. Each scheme has settings for colors, fonts and normal and highlight text
1940 styles.
1941 </para>
1943 <para>&kwrite; will preselect the currently active scheme for you, if you want to
1944 work on a different scheme start by selecting that from the
1945 <guilabel>Schema</guilabel> combobox.</para>
1947 <sect2 id="prefcolors-colors">
1948 <title>Colors</title>
1950 <variablelist>
1951 <varlistentry id="prefcolors-colors-text-background">
1952 <term><guilabel>Text Area Background</guilabel></term>
1953 <listitem>
1955 <variablelist>
1957 <varlistentry id="pref-colors-normal-text">
1958 <term><guilabel>Normal text</guilabel></term>
1959 <listitem><para>This is the default background for the editor area, it will be
1960 the dominant color on the editor area.</para></listitem>
1961 </varlistentry>
1963 <varlistentry id="pref-colors-selected-text">
1964 <term><guilabel>Selected Text</guilabel></term>
1965 <listitem><para>This is the background for selected text. The default is
1966 the global selection color, as set in your &kde; color preferences.
1967 </para></listitem>
1968 </varlistentry>
1970 <varlistentry id="pref-colors-current-line">
1971 <term><guilabel>Current Line</guilabel></term>
1972 <listitem><para>Set the color for the current line. Setting this a bit different
1973 from the Normal text background helps to keep focus on the current line.
1974 </para></listitem>
1975 </varlistentry>
1977 <varlistentry id="pref-colors-marks">
1978 <term><guilabel>Bookmark</guilabel></term>
1979 <listitem><para>This combo lets you set overlay colors for various mark types.
1980 The color is mixed into the background color of a marked line, so that a line
1981 with more marks or a marked line that is current has a background that is a mix
1982 of more colors. The mark colors are also used if you enable display of scrollbar
1983 marks.</para></listitem>
1984 </varlistentry>
1986 </variablelist>
1987 </listitem>
1988 </varlistentry>
1990 <varlistentry id="prefcolors-colors-other-elements">
1991 <term><guilabel>Other Elements</guilabel></term>
1992 <listitem>
1993 <variablelist>
1994 <varlistentry>
1995 <term><guilabel>Left Border Background</guilabel></term>
1996 <listitem><para>This color is used for the marks, line numbers and folding
1997 marker borders in the left side of the editor view when they are displayed.
1998 </para></listitem>
1999 </varlistentry>
2000 <varlistentry>
2001 <term><guilabel>Line Numbers</guilabel></term>
2002 <listitem><para>This color is used to draw the line numbers on the left side of
2003 the view when displayed.</para></listitem>
2004 </varlistentry>
2005 <varlistentry>
2006 <term><guilabel>Bracket Highlight</guilabel></term>
2007 <listitem><para>This color is used to draw the background of matching brackets.
2008 </para></listitem>
2009 </varlistentry>
2010 <varlistentry>
2011 <term><guilabel>Word Wrap Markers</guilabel></term>
2012 <listitem><para>This color is used to draw a pattern to the left of dynamically
2013 wrapped lines when those are aligned vertically, as well as for the static word
2014 wrap marker.</para></listitem>
2015 </varlistentry>
2016 <varlistentry>
2017 <term><guilabel>Tab Markers</guilabel></term>
2018 <listitem><para>This color is used to draw white space indicators when enabled.
2019 </para></listitem>
2020 </varlistentry>
2021 </variablelist>
2022 </listitem>
2023 </varlistentry>
2025 </variablelist>
2026 </sect2>
2028 <sect2 id="prefcolors-fonts">
2029 <title>Fonts</title>
2030 <para>
2031 Here you can choose the font for the schema. You can choose from
2032 any font available on your system, and set a default size. A sample text
2033 displays at the bottom of the dialog, so you can see the effect of your choices.
2034 </para>
2035 </sect2>
2037 <sect2 id="prefcolors-normal-text-styles">
2038 <title>Normal Text Styles</title>
2039 <para>The normal text styles are inherited by the highlight text styles,
2040 allowing the editor to present text in a very consistent way, for example comment
2041 text is using the same style in allmost all of the text formats that kate can
2042 highlight.</para>
2043 <para>The name in the list of styles is using the style configured for
2044 the item, providing you with an immediate preview when configuring a style.
2045 </para>
2046 <para>Each style lets you select common attributes as well as foreground
2047 and background colors. To unset a background color, rightclick to use the
2048 context menu.</para>
2049 </sect2>
2051 <sect2 id="prefcolors-highlighting-text-styles">
2052 <title>Highlighting Text Styles</title>
2053 <para>Here you can edit the text styles used by a specific highlight definition.
2054 The editor preselects the highlight used by your current document. To work on a
2055 different highlight, select one in the <guilabel>Highlight</guilabel> combobox
2056 above the style list.
2057 </para>
2058 <para>The name in the list of styles is using the style configured for
2059 the item, providing you with an immediate preview when configuring a style.
2060 </para>
2061 <para>Each style lets you select common attributes as well as foreground
2062 and background colors. To unset a background color, rightclick to use the
2063 context menu. In addition you can see if a style is equal to the default style
2064 used for the item, and set it to that if not.</para>
2065 <para>You will notice that many highlights contain other highlights represented
2066 by groups in the style list. For example most highlights import the Alert
2067 highlight, and many source code formats imports the Doxygen highlight. Editing
2068 colors in those groups only affects the styles when used in the edited highlight
2069 format.
2070 </para>
2071 </sect2>
2073 </sect1>
2075 <sect1 id="pref-cursor-selection">
2076 <title>Cursor &amp; Selection</title>
2078 <variablelist>
2080 <varlistentry>
2081 <term><guilabel>Text Cursor Movement</guilabel></term>
2082 <listitem>
2083 <variablelist>
2084 <varlistentry>
2085 <term><guilabel>Smart home</guilabel></term>
2086 <listitem>
2087 <para>When selected, pressing the home key will cause the cursor to
2088 skip white space and go to the start of a line's text.</para>
2089 </listitem>
2090 </varlistentry>
2091 <varlistentry>
2092 <term><guilabel>Wrap cursor</guilabel></term>
2093 <listitem>
2094 <para>When on, moving the insertion cursor using the <emphasis
2095 role="bold">Left</emphasis> and <emphasis role="bold">Right</emphasis> keys will
2096 go on to previous/next line at beginning/end of the line, similar to most
2097 editors.</para><para>When off, the insertion cursor cannot be moved left of the
2098 line start, but it can be moved off the line end, which can be very handy for
2099 programmers. When this option is chosen, moving the cursor with the arrow keys
2100 off the end of a line (to the right) causes it to jump down to the beginning of
2101 the next line. Likewise when the cursor is moved past the beginning of a line
2102 (to the left) it jumps up to the end of the preceding line. When this option is
2103 not selected, moving the cursor right past the end of a line merely causes it to
2104 continue horizontally in the same line and trying to move it left past the
2105 beginning does nothing.</para>
2106 </listitem>
2107 </varlistentry>
2108 <varlistentry>
2109 <term><guilabel>Page Up/Page Down moves cursor</guilabel></term>
2110 <listitem>
2111 <para>This option changes the behavior of the cursor when the user presses
2112 the <keycap>Page Up</keycap> or <keycap>Page Down</keycap> key. If unselected
2113 the text cursor will maintain its relative position within the visible text in
2114 &kwrite; as new text becomes visible as a result of the operation. So if the
2115 cursor is in the middle of the visible text when the operation occurs it will
2116 remain there (except when one reaches the beginning or end.) With this option
2117 selected, the first key press will cause the cursor to move to either the top or
2118 bottom of the visible text as a new page of text is displayed.</para>
2119 </listitem>
2120 </varlistentry>
2121 <varlistentry>
2122 <term><guilabel>Autocenter cursor (lines):</guilabel></term>
2123 <listitem>
2124 <para>Sets the number of lines to maintain visible above and below the cursor
2125 when possible.</para>
2126 </listitem>
2127 </varlistentry>
2128 </variablelist>
2129 </listitem>
2130 </varlistentry>
2132 <varlistentry>
2133 <term><guilabel>Selection Mode</guilabel></term>
2134 <listitem>
2135 <variablelist>
2136 <varlistentry>
2137 <term><guilabel>Normal</guilabel></term>
2138 <listitem>
2139 <para>Selections will be overwritten by typed text and will be lost on
2140 cursor movement.</para>
2141 </listitem>
2142 </varlistentry>
2143 <varlistentry>
2144 <term><guilabel>Persistent</guilabel></term>
2145 <listitem>
2146 <para>Selections will stay even after cursor movement and typing.</para>
2147 </listitem>
2148 </varlistentry>
2149 </variablelist>
2150 </listitem>
2151 </varlistentry>
2153 </variablelist>
2154 </sect1>
2156 <sect1 id="pref-edit">
2157 <title>Editing</title>
2158 <variablelist>
2160 <varlistentry>
2161 <term><guilabel>Tabulators</guilabel></term>
2162 <listitem>
2163 <variablelist>
2164 <varlistentry>
2165 <term><guilabel>Insert spaces instead of tabulators</guilabel></term>
2166 <listitem>
2167 <para>When this is enabled the editor will insert a calculated number of spaces
2168 according to the position in the text and the <option>tab-width</option> setting
2169 when you press the <keycap>TAB</keycap> key.</para>
2170 </listitem>
2171 </varlistentry>
2172 <varlistentry>
2173 <term><guilabel>Show tabulators</guilabel></term>
2174 <listitem>
2175 <para>When this is enabled &kwrite; will display a small dot as a visual
2176 representation of tabulator characters.</para>
2177 <note><para>This also causes dots to be drawn to indicate trailing white space.
2178 This will be fixed in a future version of &kwrite;</para></note>
2179 </listitem>
2180 </varlistentry>
2181 <varlistentry>
2182 <term id="pref-tab-width">Tab Width</term> <listitem><para>If the
2183 <link linkend="pref-word-wrap"><guilabel>Replace Tabs By
2184 Spaces</guilabel></link>
2185 option is selected this entry determines the number of
2186 spaces with which the editor will automatically replace
2187 tabs.</para></listitem>
2188 </varlistentry>
2189 </variablelist>
2190 </listitem>
2191 </varlistentry>
2193 <varlistentry>
2194 <term id="pref-word-wrap"><guilabel>Static Word Wrap</guilabel></term>
2195 <listitem><para>
2196 Word wrap is a feature that causes the editor to automatically start a new line
2197 of text and move (wrap) the cursor to the beginning of that new line. &kwrite;
2198 will automatically start a new line of text when the current line reaches the
2199 length specified by the <link linkend="pref-wrap-words-at">Wrap Words
2200 At:</link> option.</para>
2201 <variablelist>
2202 <varlistentry>
2203 <term><guilabel>Enable static word wrap</guilabel></term>
2204 <listitem>
2205 <para>Turns static word wrap on or off.</para>
2206 </listitem>
2207 </varlistentry>
2208 <varlistentry>
2209 <term><guilabel>Show static word wrap markers
2210 (if applicable)</guilabel></term>
2211 <listitem>
2212 <para>If this option is checked, a vertical line will be drawn at the word wrap
2213 column as defined in the <menuchoice> <guimenu>Settings</guimenu>
2214 <guimenuitem>Configure Editor...</guimenuitem></menuchoice> in the Editing tab.
2215 Please note that the word wrap marker is only drawn if you use a fixed pitch
2216 font.</para>
2217 </listitem>
2218 </varlistentry>
2219 <varlistentry>
2220 <term id="pref-wrap-words-at"><guilabel>Wrap words at:</guilabel></term>
2221 <listitem>
2222 <para>If the <link linkend="pref-word-wrap">Word Wrap</link> option is selected
2223 this entry determines the length (in characters) at which the editor will
2224 automatically start a new line.</para>
2225 </listitem>
2226 </varlistentry>
2227 </variablelist>
2228 </listitem>
2229 </varlistentry>
2231 <varlistentry>
2232 <term><guilabel>Remove Trailing Spaces</guilabel></term>
2233 <listitem><para>&kwrite; will automatically eliminate extra spaces
2234 at the ends of lines of text.</para></listitem> </varlistentry>
2236 <varlistentry>
2237 <term><guilabel>Auto Brackets</guilabel></term> <listitem><para>When
2238 the user types a left bracket ([, (, or {) &kwrite; automatically enters the
2239 right bracket (}, ), or ]) to the right of the cursor.</para></listitem>
2240 </varlistentry>
2242 <varlistentry> <term>Maximum <link linkend="undo">undo</link> steps:</term>
2243 <listitem><para>Here the user may specify the number of steps &kwrite; will
2244 retain in memory for purposes of undoing entries and actions. This means that
2245 the higher the number of steps set the more memory &kwrite; will use for this.
2246 Setting this entry to 10 would mean that the user would be be able reverse the
2247 last ten operations, <abbrev>i.e.</abbrev> click the <guibutton>undo</guibutton>
2248 button 10 times and obtain results.</para></listitem> </varlistentry>
2250 <varlistentry> <term>Smart search text from:</term>
2251 <listitem><para>This determines where &kwrite; will get the search
2252 text from (this will be automatically entered into the Find Text
2253 dialog):
2254 <itemizedlist>
2255 <listitem><para><emphasis role="bold">Nowhere:</emphasis> Don't guess the search
2256 text.</para></listitem>
2257 <listitem><para><emphasis role="bold">Selection Only:</emphasis> Use
2258 the current text selection, if available. </para></listitem>
2259 <listitem><para><emphasis role="bold">Selection, then Current Word:</emphasis>
2260 Use the current selection if available, otherwise use the current word.
2261 </para></listitem>
2262 <listitem><para><emphasis role="bold">Current Word
2263 Only:</emphasis> Use the word that the cursor is currently resting on, if
2264 available. </para></listitem>
2265 <listitem><para><emphasis role="bold">Current Word, then Selection:</emphasis>
2266 Use the current word if available, otherwise use the current selection.
2267 </para></listitem>
2268 </itemizedlist>
2269 Note that, in all the above modes, if a
2270 search string has not been or cannot be determined, then the Find Text Dialog
2271 will fall back to the last search text.
2272 </para></listitem>
2273 </varlistentry>
2274 <!--<varlistentry>
2275 <term id="pref-replace-tabs-by-spaces"><guilabel>Replace Tabs By
2276 Spaces</guilabel></term> <listitem><para>&kwrite; will replace any tabs with
2277 the number of spaces indicated in the <link linkend="pref-tab-width">Tab
2278 Width:</link> entry.</para></listitem> </varlistentry>
2280 <varlistentry> <term><guilabel>Show Tabs</guilabel></term>
2281 <listitem><para>The editor will display a symbol to indicate
2282 the presence
2283 of a tab in the text.</para></listitem>
2284 </varlistentry> -->
2285 </variablelist>
2286 </sect1>
2288 <sect1 id="pref-indent">
2289 <title>Indentation</title>
2290 <variablelist>
2291 <varlistentry>
2292 <term><guilabel>Automatic indentation</guilabel></term>
2293 <listitem>
2294 <variablelist>
2295 <varlistentry>
2296 <term><guilabel>Indentation mode:</guilabel></term>
2297 <listitem>
2298 <para>Select the automatic indentation mode you want to use as default. It is
2299 strongly recommended to use <userinput>None</userinput> or
2300 <userinput>Normal</userinput>here, and use filetype configurations to set other
2301 indentation modes for text formats like C/C++ code or &XML;.</para>
2302 </listitem>
2303 </varlistentry>
2304 <varlistentry>
2305 <term><guilabel>Insert leading Doxygen "*" when typing</guilabel></term>
2306 <listitem>
2307 <para>Automatically insert a leading "*" while typing within a doxygen
2308 style comment. This setting is only enabled when applicable.</para>
2309 </listitem>
2310 </varlistentry>
2311 </variablelist>
2312 </listitem>
2313 </varlistentry>
2315 <varlistentry>
2316 <term><guilabel>Indentation with Spaces</guilabel></term>
2317 <listitem>
2318 <variablelist>
2319 <varlistentry>
2320 <term><guilabel>Use spaces instead of tabs to indent</guilabel></term>
2321 <listitem>
2322 <para>This replaces tabs with the number of spaces set in <guilabel>Number of
2323 spaces:</guilabel> below.</para>
2324 </listitem>
2325 </varlistentry>
2326 <varlistentry>
2327 <term><guilabel>Emacs style mixed mode</guilabel></term>
2328 <listitem>
2329 <para>Use a mix of tabs and space characters for indentation.</para>
2330 </listitem>
2331 </varlistentry>
2332 <varlistentry>
2333 <term><guilabel>Number of spaces:</guilabel></term>
2334 <listitem>
2335 <para>Set the number of spaces you want to use for indentation when you
2336 check <guilabel>Use spaces instead of tabs to indent</guilabel>
2337 above.</para>
2338 </listitem>
2339 </varlistentry>
2340 </variablelist>
2341 </listitem>
2342 </varlistentry>
2344 <varlistentry>
2345 <term><guilabel>Keep Indent Profile</guilabel></term>
2346 <listitem><para>When this is enabled, the editor will not unindent lines in a
2347 selection further when the line with the least indentation becomes unindented.
2348 If you sometimes unindent blocks of indented code, this may be helpful.
2349 </para></listitem>
2350 </varlistentry>
2352 <varlistentry>
2353 <term><guilabel>Keep Extra Spaces</guilabel></term>
2354 <listitem><para>Indentations of more than the selected number of spaces
2355 will not be shortened.</para></listitem>
2356 </varlistentry>
2358 <varlistentry>
2359 <term><guilabel>Keys to use</guilabel></term>
2360 <listitem>
2361 <variablelist>
2362 <varlistentry>
2363 <term><guilabel>Tab key indents</guilabel></term>
2364 <listitem>
2365 <para>This allows the <keycombo
2366 action="simul"><keycap>tab</keycap></keycombo> key to be used to indent.</para>
2367 </listitem>
2368 </varlistentry>
2369 <varlistentry>
2370 <term><guilabel>Backspace key indent</guilabel></term>
2371 <listitem>
2372 <para>This allows the <keycombo
2373 action="simul"><keycap>backspace</keycap></keycombo> key to be used to
2374 indent.</para>
2375 </listitem>
2376 </varlistentry>
2377 </variablelist>
2378 </listitem>
2379 </varlistentry>
2381 <varlistentry>
2382 <term><guilabel>Tab Key Mode if Nothing Selected</guilabel></term>
2383 <listitem>
2384 <variablelist>
2385 <varlistentry>
2386 <term><guilabel>Insert indent characters</guilabel></term>
2387 <listitem>
2388 <para>This allows the <keycombo
2389 action="simul"><keycap>Tab</keycap></keycombo> key insert indent
2390 characters.</para>
2391 </listitem>
2392 </varlistentry>
2393 <varlistentry>
2394 <term><guilabel>Insert tab character</guilabel></term>
2395 <listitem>
2396 <para>This allows the <keycombo
2397 action="simul"><keycap>Tab</keycap></keycombo> key insert a tab.</para>
2398 </listitem>
2399 </varlistentry>
2400 <varlistentry>
2401 <term><guilabel>Indent current line</guilabel></term>
2402 <listitem>
2403 <para>This allows the <keycombo
2404 action="simul"><keycap>Tab</keycap></keycombo> key indent the current
2405 line.</para>
2406 </listitem>
2407 </varlistentry>
2408 </variablelist>
2409 </listitem>
2410 </varlistentry>
2412 <!--<varlistentry>
2413 <term><guilabel>Auto Indent</guilabel></term> <listitem><para>This causes
2414 new lines to begin with the same indentation level as the previous
2415 line.</para></listitem>
2416 </varlistentry> -->
2417 </variablelist>
2418 </sect1>
2420 <sect1 id="pref-open-save">
2421 <title>Open &amp; Save</title>
2423 <variablelist>
2425 <varlistentry>
2426 <term><guilabel>File Format</guilabel></term>
2427 <listitem>
2428 <variablelist>
2429 <varlistentry>
2430 <term><guilabel>Encoding:</guilabel></term>
2431 <listitem>
2432 <para>This sets the default character encoding for your files.</para>
2433 </listitem>
2434 </varlistentry>
2435 <varlistentry>
2436 <term><guilabel>End of line:</guilabel></term>
2437 <listitem>
2438 <para>Choose your prefered end of line mode for your active
2439 document. You have the choice between &UNIX;, DOS/&Windows; or Macintosh.</para>
2440 </listitem>
2441 </varlistentry>
2442 <varlistentry>
2443 <term><guilabel>Automatic end of line detection</guilabel></term>
2444 <listitem>
2445 <para>Check this if you want the editor to autodetect the end of line
2446 type. The first found end of line type will be used for the whole file.</para>
2447 </listitem>
2448 </varlistentry>
2449 </variablelist>
2450 </listitem>
2451 </varlistentry>
2453 <varlistentry>
2454 <term><guilabel>Memory Usage</guilabel></term>
2455 <listitem>
2456 <variablelist>
2457 <varlistentry>
2458 <term><guilabel>Maximum loaded blocks per file:</guilabel></term>
2459 <listitem>
2460 <para>The editor will load given number of blocks (of around 2048 lines) of
2461 text into memory; if the filesize is bigger than this the other blocks
2462 are swapped to disk and loaded transparently as-needed.</para>
2463 <para>This can cause little delays while navigating in the document; a
2464 larger block count increases the editing speed at the cost of memory.
2465 </para><para>For normal usage, just choose the highest possible block count:
2466 limit it only if you have problems with the memory usage.</para>
2467 </listitem>
2468 </varlistentry>
2469 </variablelist>
2470 </listitem>
2471 </varlistentry>
2473 <varlistentry>
2474 <term><guilabel>Automatic Cleanups on Load/Save</guilabel></term>
2475 <listitem>
2476 <variablelist>
2477 <varlistentry>
2478 <term><guilabel>Remove trailing spaces</guilabel></term>
2479 <listitem>
2480 <para>The editor will automatically eliminate extra spaces at the ends of lines
2481 of text while loading/saving the file.</para>
2482 </listitem>
2483 </varlistentry>
2484 </variablelist>
2485 </listitem>
2486 </varlistentry>
2488 <varlistentry>
2489 <term><guilabel>Folder Config File</guilabel></term>
2490 <listitem>
2491 <variablelist>
2492 <varlistentry>
2493 <term><guilabel>Search depth for config file:</guilabel></term>
2494 <listitem>
2495 <para>The editor will search the given number of folder levels upwards
2496 for &kwrite; config file and load the settings line from it.</para>
2497 </listitem>
2498 </varlistentry>
2499 </variablelist>
2500 </listitem>
2501 </varlistentry>
2503 <varlistentry>
2504 <term><guilabel>Backup on Save</guilabel></term>
2505 <listitem><para>Backing up on save will cause &kwrite; to copy the disk file to
2506 &lt;prefix&gt;&lt;filename&gt;&lt;suffix&gt;' before saving changes.
2507 The suffix defaults to <emphasis role="bold">~</emphasis> and prefix is empty by
2508 default. </para>
2509 <variablelist>
2510 <varlistentry>
2511 <term><guilabel>Local files</guilabel></term>
2512 <listitem>
2513 <para>Check this if you want backups of local files when
2514 saving.</para>
2515 </listitem>
2516 </varlistentry>
2517 <varlistentry>
2518 <term><guilabel>Remote files</guilabel></term>
2519 <listitem>
2520 <para>Check this if you want backups of remote files when saving.</para>
2521 </listitem>
2522 </varlistentry>
2523 <varlistentry>
2524 <term><guilabel>Prefix</guilabel></term>
2525 <listitem>
2526 <para>Enter the prefix to prepend to the backup file names.</para>
2527 </listitem>
2528 </varlistentry>
2529 <varlistentry>
2530 <term><guilabel>Suffix</guilabel></term>
2531 <listitem>
2532 <para>Enter the suffix to add to the backup file names.</para>
2533 </listitem>
2534 </varlistentry>
2536 </variablelist>
2537 </listitem>
2538 </varlistentry>
2540 </variablelist>
2541 </sect1>
2543 <sect1 id="pref-highlighting">
2544 <title>Highlighting</title>
2545 <para>This group of options is used to customize the highlighting styles for
2546 each programming language type. Any changes you made in other areas of this
2547 dialog apply only to this type.</para>
2549 <variablelist>
2550 <varlistentry>
2551 <term><guilabel>Highlight:</guilabel></term>
2552 <listitem><para>This is used to choose the language type to
2553 configure.</para></listitem>
2554 </varlistentry>
2556 <varlistentry>
2557 <term><guilabel>Informations</guilabel></term>
2558 <listitem>
2559 <para>
2560 View the properties of the chosen language highlighting rules:
2561 author name and license.
2562 </para>
2563 </listitem>
2564 </varlistentry>
2566 <varlistentry>
2567 <term><guilabel>Properties</guilabel></term>
2568 <listitem>
2569 <variablelist>
2570 <varlistentry>
2571 <term><guilabel>File extensions:</guilabel></term>
2572 <listitem><para>This is the list of file extensions used to determine which
2573 files to highlight using the current syntax highlight mode.</para></listitem>
2574 </varlistentry>
2575 <varlistentry>
2576 <term><guilabel>MIME types:</guilabel></term>
2577 <listitem><para>Clicking the wizard button will display a dialog with a list of
2578 all available mime types to choose from.</para><para>The <emphasis
2579 role="bold">File Extensions</emphasis> entry will automatically be edited as
2580 well.</para></listitem>
2581 </varlistentry>
2582 <varlistentry>
2583 <term><guilabel>Priority:</guilabel></term>
2584 <listitem><para>Set the priority of the highlight rule.</para></listitem>
2585 </varlistentry>
2586 </variablelist>
2587 </listitem>
2588 </varlistentry>
2590 <varlistentry>
2591 <term><guibutton>Download...</guibutton></term>
2592 <listitem>
2593 <para>
2594 Click this button to download new or updated syntax highlight descriptions
2595 from the &kate; website.
2596 </para>
2597 </listitem>
2598 </varlistentry>
2600 </variablelist>
2601 <!-- obsolete annma 24 December 2005
2602 <para>The <guilabel>Configure
2603 Highlighting</guilabel> dialog consists of
2604 two pages, <guilabel>Defaults</guilabel> and <guilabel>Highlighting
2605 Modes</guilabel>. The user can select which page to view by
2606 clicking on the appropriate tab at the top of the dialog</para>
2608 <para>Items available on the <guilabel>Defaults</guilabel> page are as
2609 follows:</para>
2611 <variablelist>
2612 <varlistentry>
2613 <term><guilabel>Default Item Styles</guilabel></term>
2614 <listitem>
2615 <para>
2616 The user can configure the default appearance for
2617 particular items. This would allow a programmer to more easily identify
2618 different items (types of entries) in his or her code.
2619 </para>
2621 <variablelist>
2622 <varlistentry>
2623 <term><guilabel>Item</guilabel></term>
2624 <listitem><para>This drop down box offers a variety of items that the user
2625 might want to highlight. They include <guilabel>Normal</guilabel> for
2626 text does not fit in any of the other categories, <guilabel>Comment</guilabel>,
2627 <guilabel>String</guilabel>, <guilabel>Keyword</guilabel> and many more. Not
2628 all of these entries will need to be configured for every language and so may be
2629 selected as needed. The options in the rest of this section apply
2630 to the entry selected in this box.</para></listitem>
2631 </varlistentry>
2632 <varlistentry>
2633 <term><guilabel>Normal</guilabel></term>
2634 <listitem><para>This allows the user to choose the
2635 item's normal (unselected) color. This is done by means
2636 of a color selection dialog box, a further explanation of which
2637 may be found in the <link linkend="prefcolors">Colors</link> section of <link
2638 linkend="pref-dialog">Configure &kwrite;</link>.</para>
2639 </listitem>
2640 </varlistentry>
2642 <varlistentry>
2643 <term><guilabel>Bold</guilabel></term>
2644 <listitem><para>This option determines whether or
2645 not the item should be displayed in bold text.</para></listitem>
2646 </varlistentry>
2647 <varlistentry>
2648 <term><guilabel>Italic</guilabel></term>
2649 <listitem><para>This option determines whether or
2650 not the item should be displayed in italic text.</para></listitem>
2651 </varlistentry>
2653 <varlistentry>
2654 <term><guilabel>Selected</guilabel></term>
2655 <listitem><para>This allows the user to choose the
2656 item's color when selected. This is done by means of a
2657 color selection dialog box, a further explanation of which
2658 may be found in the <link linkend="prefcolors">Colors</link> section of <link
2659 linkend="pref-dialog">Configure &kwrite;</link>.</para>
2660 </listitem>
2661 </varlistentry>
2662 </variablelist>
2663 </listitem>
2664 </varlistentry>
2665 </variablelist>
2667 <para>Items on the <guilabel>Highlight Modes</guilabel> tab allow the
2668 user to define more specific highlighting depending on the language
2669 style.</para>
2671 <para>One need not set every available option, items not configured
2672 specifically will use the default configuration specified on the
2673 previous <guilabel>Defaults</guilabel> tab.</para>
2675 <variablelist>
2676 <varlistentry>
2677 <term><guilabel>Config Select</guilabel></term>
2678 <listitem><para>This group of options is used to customize the
2679 highlighting styles for each programming language type. Any changes you
2680 made in other areas of this dialog apply only to this
2681 type.</para>
2683 <variablelist>
2684 <varlistentry>
2685 <term><guilabel>Highlight</guilabel></term>
2686 <listitem><para>This is used to choose the language
2687 type to configure</para></listitem>
2688 </varlistentry>
2689 <varlistentry>
2690 <term><guilabel>Item</guilabel></term>
2691 <listitem><para>This is to choose the syntax item to
2692 configure. Remember this only configures
2693 <emphasis>this</emphasis> item for
2694 <emphasis>this</emphasis>
2695 language.</para></listitem>
2696 </varlistentry>
2697 </variablelist>
2699 <para>As an example, if the user wished to configure the
2700 appearance of <quote>comments</quote> while writing C++, she or he
2701 could choose C++ in the <guilabel>Highlight</guilabel> drop down box, and then
2702 choose Comment in the <guilabel>Item</guilabel> drop down box. To have
2703 <quote>comments</quote> look the same across all languages, the user would need
2704 to configure this in the <guilabel>Defaults</guilabel> page of this dialog box
2705 while leaving <quote>comments</quote> unconfigured within the more
2706 specific <guilabel>Highlight Modes</guilabel> page.</para>
2707 </listitem> </varlistentry>
2709 <varlistentry>
2710 <term><guilabel>Item Style</guilabel></term>
2711 <listitem><para>Here the user can configure the general
2712 appearance of the above
2713 selected item. Checking the
2714 <guilabel>Default</guilabel> check box causes the
2715 default style as configured on the previous tab to be set, or
2716 the appearance can be configured directly. The available
2717 options are the same as on the
2718 <guilabel>Defaults</guilabel> tab:
2719 <guilabel>Normal</guilabel>,
2720 <guilabel>Selected</guilabel>, <guilabel>Bold</guilabel>
2721 and <guilabel>Italic</guilabel>.</para></listitem>
2722 </varlistentry>
2724 <varlistentry>
2725 <term><guilabel>Highlight Auto Select</guilabel></term>
2726 <listitem><para>&kwrite; can apply syntax highlighting
2727 automatically, depending on the file extension or mime-type of the opened file.
2728 The defaults are fairly comprehensive, but users that regularly edit files with
2729 non-standard extensions can add them here. Wildcards are allowed in the
2730 <guilabel>File Extensions</guilabel> text box. For example, the
2731 default entry for the C++ language is
2732 <userinput>*.cpp;*.cc;*.C;*.h</userinput>. Opening a file called
2733 <filename>foo.h</filename> would automatically apply the
2734 C++ style to it.
2735 </para></listitem>
2736 </varlistentry>
2737 <varlistentry>
2738 <term><guilabel>Item Font</guilabel></term>
2739 <listitem><para>Here the user can choose the font for the
2740 selected item.</para>
2741 <para>The default style can be applied by checking the
2742 <guilabel>Default</guilabel> check box or the user can
2743 choose a specific font
2744 <guilabel>Family</guilabel>, <guilabel>Size</guilabel>
2745 and <guilabel>Charset</guilabel>. The available options are
2746 the same as those on the <guilabel>Defaults</guilabel> tab.</para></listitem>
2747 </varlistentry>
2748 </variablelist>-->
2749 </sect1>
2751 <sect1 id="pref-filetypes">
2752 <title>Filetypes</title>
2753 <para>This page allows you to override the default configuration for documents
2754 of specified mimetypes. When the editor loads a document, it will try if it
2755 matches the file masks or mimetypes for one of the defined filetypes, and if so
2756 apply the variables defined. If more filetypes match, the one with the highest
2757 priority will be used.
2758 </para>
2759 <variablelist>
2760 <varlistentry>
2761 <term><guilabel>Filetype:</guilabel></term>
2762 <listitem><para>The filetype with the highest priority is the one displayed in
2763 the first drop down box. If more filetypes were found, they are
2764 also listed.</para>
2765 <variablelist>
2766 <varlistentry>
2767 <term><guilabel>New</guilabel></term>
2768 <listitem><para>This is used to create a new filetype. After
2769 you click on this button, the fields below get empty and you
2770 can fill the properties you want for the new filetype.</para></listitem>
2771 </varlistentry>
2772 <varlistentry>
2773 <term><guilabel>Delete</guilabel></term>
2774 <listitem><para>To remove an existing filetype, select it from the drop down
2775 box and press the Delete button.</para></listitem>
2776 </varlistentry>
2777 </variablelist>
2778 </listitem> </varlistentry>
2780 <varlistentry>
2781 <term><guilabel>Properties of current filetype</guilabel></term>
2782 <listitem><para>The filetype with the highest priority is the one displayed in
2783 the first drop down box. If more filetypes were found, they are also
2784 listed.</para>
2785 <variablelist>
2786 <varlistentry>
2787 <term><guilabel>Name:</guilabel></term>
2788 <listitem><para>The name of the filetype will be the text of the corresponding
2789 menu item. This name is displayed in the
2790 <menuchoice><guimenu>Tools</guimenu><guimenuitem>Filetypes</guimenuitem>
2791 </menuchoice ></para></listitem>
2792 </varlistentry>
2793 <varlistentry>
2794 <term><guilabel>Section:</guilabel></term>
2795 <listitem><para>The section name is used to organize the file types in
2796 menus. This is also used in the
2797 <menuchoice><guimenu>Tools</guimenu><guimenuitem>Filetypes</guimenuitem>
2798 </menuchoice> menu.</para></listitem>
2799 </varlistentry>
2800 <varlistentry>
2801 <term><guilabel>Variables:</guilabel></term>
2802 <listitem><para>This string allows you to configure &kwrite;'s settings for the
2803 files selected by this mimetype using &kwrite; variables. You can set almost any
2804 configuration option, such as highlight, indent-mode, encoding,
2805 etc.</para><para>For a full list of known variables, see the
2806 manual.</para></listitem>
2807 </varlistentry>
2808 <varlistentry>
2809 <term><guilabel>File extensions:</guilabel></term>
2810 <listitem><para>The wildcards mask allows you to select files by filename. A
2811 typical mask uses an asterisk and the file extension, for example
2812 <filename>*.txt; *.text</filename>. The string is a semicolon-separated list of
2813 masks.</para></listitem>
2814 </varlistentry>
2815 <varlistentry>
2816 <term><guilabel>MIME types:</guilabel></term>
2817 <listitem><para>Displays a wizard that helps you easily select
2818 mimetypes.</para></listitem>
2819 </varlistentry>
2820 <varlistentry>
2821 <term><guilabel>Priority:</guilabel></term>
2822 <listitem><para>Sets a priority for this file type. If more than one file type
2823 selects the same file, the one with the highest priority will be
2824 used.</para></listitem>
2825 </varlistentry>
2826 </variablelist>
2827 </listitem> </varlistentry>
2829 </variablelist>
2830 </sect1>
2832 <sect1 id="pref-shortcuts">
2833 <title>Shortcuts</title>
2834 <para>You can change here the shortcut keys configuration. Select an
2835 action and click on <guilabel>Custom</guilabel> if you want a different shortcut
2836 for this action.</para>
2837 <para>The search line alllows you to look for a specific action and see
2838 its associated shortcut.</para>
2839 </sect1>
2841 <sect1 id="pref-plugins">
2842 <title>Plugins</title>
2843 <para>This tab lists all available plugins and you can check those you
2844 want to use. Once a plugin is checked, the
2845 <guibutton>Configure</guibutton> button is enabled and you can click it
2846 in order to configure the highlighted plugin.</para>
2847 </sect1>
2848 </chapter>
2850 <chapter id="credits">
2851 <title>Credits and Licenses</title>
2853 <para>&kwrite; Copyright 2001 by the &kate; team.</para>
2855 <para>
2856 Based on the original &kwrite;, which was Copyright 2000 by Jochen Wilhelmy
2857 <email>digisnap@cs.tu-berlin.de</email>
2858 </para>
2860 <para>Contributions:</para>
2862 <itemizedlist>
2863 <listitem>
2864 <para>&Christoph.Cullmann; &Christoph.Cullmann.mail;</para>
2865 </listitem>
2867 <listitem>
2868 <para>Michael Bartl <email>michael.bartl1@chello.at</email></para>
2869 </listitem>
2871 <listitem>
2872 <para>Phlip <email>phlip_cpp@my-deja.com</email></para>
2873 </listitem>
2875 <listitem>
2876 <para>&Anders.Lund; &Anders.Lund.mail;</para>
2877 </listitem>
2879 <listitem>
2880 <para>Matt Newell <email>newellm@proaxis.com</email></para>
2881 </listitem>
2883 <listitem>
2884 <para>&Joseph.Wenninger; &Joseph.Wenninger.mail;</para>
2885 </listitem>
2887 <listitem>
2888 <para>Jochen Wilhely <email>digisnap@cs.tu-berlin.de</email></para>
2889 </listitem>
2891 <listitem>
2892 <para>&Michael.Koch; &Michael.Koch.mail;</para>
2893 </listitem>
2895 <listitem>
2896 <para>&Christian.Gebauer; &Christian.Gebauer.mail;</para>
2897 </listitem>
2899 <listitem>
2900 <para>&Simon.Hausmann; &Simon.Hausmann.mail;</para>
2901 </listitem>
2903 <listitem>
2904 <para>Glen Parker <email>glenebob@nwlink.com</email></para>
2905 </listitem>
2907 <listitem>
2908 <para>Scott Manson <email>sdmanson@altel.net</email></para>
2909 </listitem>
2911 <listitem>
2912 <para>&John.Firebaugh; &John.Firebaugh.mail;</para>
2913 </listitem>
2914 </itemizedlist>
2916 <para>
2917 Original documentation by &Thad.McGinnis; &Thad.McGinnis.mail;
2918 </para>
2920 <para>
2921 Updated by &Anne-Marie.Mahfouf; &Anne-Marie.Mahfouf.mail; and
2922 &Anders.Lund; &Anders.Lund.mail;
2923 </para>
2925 <para>
2926 This version of the &kwrite; Handbook is based on the original by
2927 &Cristian.Tibirna; &Cristian.Tibirna.mail;
2928 </para>
2930 <para>
2931 Converted to docbook/proofreading by &Lauri.Watts; &Lauri.Watts.mail;
2932 </para>
2934 <!-- TRANS:CREDIT_FOR_TRANSLATORS -->
2936 &underFDL;
2937 &underGPL;
2938 </chapter>
2940 &documentation.index;
2941 </book>
2942 <!--
2943 Local Variables:
2944 mode: sgml
2945 sgml-namecase-general: t
2946 sgml-namecase-entity: nil
2947 sgml-general-insert-case: lower
2948 sgml-minimize-attributes: nil
2949 sgml-omittag: nil
2950 End: