Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / doc / kwrite / index.docbook
blobff4c3811f5850dd889bf9883633852f9dcf917c8
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>2008-09-01</date>
44 <releaseinfo>4.1.1</releaseinfo>
46 <abstract>
47 <para>&kwrite; is a text editor for &kde; allowing you to edit one file at the time per window.</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; or &dolphin; 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>
72 <para>&kwrite; has a single document interface (<acronym>SDI</acronym>)
73 allowing you to edit one file at the time per window.
74 </para>
75 <para>
76 &kappname; features two different modes, a simple mode with a straightforward interface
77 and an advanced mode with more features and more extensive menu items.
78 The advanced mode is enabled by checking the option <link linkend="appearance">
79 Enable Power User Mode (&kde; 3 mode)</link>
80 on the <guilabel>Appearance</guilabel> page in &kappname;s
81 settings.
82 </para>
83 </chapter>
85 <chapter id="on-screen-fundamentals">
86 <title>Some Fundamentals</title>
88 <para>
89 &kwrite; is very simple to use. Anyone that has used a text editor
90 should have no problems.
91 </para>
93 <sect1 id="drag-and-drop">
94 <title>Drag and Drop</title>
96 <para>
97 &kwrite; uses the &kde; Drag and Drop protocol. Files may be dragged and
98 dropped onto &kwrite; from the Desktop, the filemanager &dolphin;, or some remote &FTP;
99 site opened in one of &dolphin;'s windows.
100 </para>
101 </sect1>
103 <sect1 id="command-line-options">
104 <title>Command Line Options</title>
106 <para>
107 Though &kwrite; may most often be started from the &kde; program menu, or
108 a desktop icon, it can also be opened at the command line prompt of a
109 terminal window. There are a few useful options that are available when
110 doing this.
111 </para>
113 <sect2 id="specify-a-file">
114 <title>Specify a File</title>
116 <para>By specifying the path and name of a particular file the user can
117 have &kwrite; open (or create) that file immediately upon startup. This
118 option might look something like the following:</para>
120 <informalexample><screen>
121 <prompt>%</prompt> <userinput><command>kwrite</command>
122 <option><replaceable>/home/myhome/docs/myfile.txt</replaceable></option>
123 </userinput>
124 </screen>
125 </informalexample>
126 </sect2>
127 <sect2 id="editing-files-on-the-internet">
128 <title>Specify a file on the internet</title>
130 <para>The above-mentioned method could even be used to open files on the
131 internet (if the user has an active connection at the time.) An example of
132 this might look like the following:</para>
134 <informalexample><screen>
135 <prompt>%</prompt> <userinput><command>kwrite</command>
136 <option><replaceable>ftp://ftp.kde.org/pub/kde/README</replaceable>
137 </option></userinput>
138 </screen>
139 </informalexample>
141 </sect2>
143 <sect2 id="other-command-line-options">
144 <title>Other Command Line Options</title>
146 <para>The following command line help options are available</para>
148 <variablelist>
149 <varlistentry>
150 <term><userinput><command>kwrite</command>
151 <option>--help</option></userinput></term>
152 <listitem><para>This lists the most basic options available at the command
153 line.</para></listitem>
154 </varlistentry>
155 <varlistentry>
156 <term><userinput><command>kwrite</command>
157 <option>--help-qt</option></userinput></term>
158 <listitem><para>This lists the options available for changing the way
159 &kwrite; interacts with &Qt;.</para></listitem>
160 </varlistentry>
161 <varlistentry>
162 <term><userinput><command>kwrite</command>
163 <option>--help-kde</option></userinput></term>
164 <listitem><para>This lists the options available for changing the way
165 &kwrite; interacts with &kde;.</para></listitem>
166 </varlistentry>
167 <varlistentry>
168 <term><userinput><command>kwrite</command>
169 <option>--help-all</option></userinput></term>
170 <listitem><para>This lists all of the command line options.</para></listitem>
171 </varlistentry>
172 <varlistentry>
173 <term><userinput><command>kwrite</command>
174 <option>--author</option></userinput></term>
175 <listitem><para>Lists &kwrite;'s authors in the terminal
176 window</para></listitem>
177 </varlistentry>
178 <varlistentry>
179 <term><userinput><command>kwrite</command>
180 <option>-v, --version</option></userinput></term>
181 <listitem><para>Lists version information for &Qt;, &kde;, and &kwrite;. Also
182 available through <userinput><command>kwrite</command>
183 <option>-v</option></userinput> </para></listitem>
184 </varlistentry>
185 <varlistentry>
186 <term><userinput><command>&kwrite;</command>
187 <option>--license</option></userinput></term>
188 <listitem>
189 <para>Shows license information.</para>
190 </listitem>
191 </varlistentry>
192 <varlistentry>
193 <term><userinput><command>kwrite</command>
194 <option>--stdin</option></userinput></term>
195 <listitem><para>Causes &kwrite; to read the document content from STDIN. This
196 is similar to the common option <option>-</option> used in many command line
197 programs, and allows you to pipe command output into &kwrite;.</para></listitem>
198 </varlistentry>
199 <varlistentry>
200 <term><userinput><command>kwrite</command>
201 <option>--encoding</option> <parameter>encoding</parameter>
202 <parameter>&URL;</parameter></userinput></term>
203 <listitem><para>Causes &kwrite; to use the specified encoding for the document.
204 </para></listitem>
205 </varlistentry>
206 <varlistentry>
207 <term><userinput><command>kwrite</command>
208 <option>--line</option> <parameter>line</parameter>
209 <parameter>&URL;</parameter></userinput></term>
210 <listitem><para>Navigate to the specified line after opening the document.
211 </para></listitem>
212 </varlistentry>
213 <varlistentry>
214 <term><userinput><command>kwrite</command>
215 <option>--column</option> <parameter>column</parameter>
216 <parameter>&URL;</parameter></userinput></term>
217 <listitem><para>Navigate to the specified column after opening the document.
218 </para></listitem>
219 </varlistentry>
221 </variablelist>
222 </sect2>
223 </sect1>
225 <sect1 id="keybindings"> <!--to be checked lueck-->
226 <title>Shortcuts</title>
228 <para>Many of the shortcuts are configurable by way of the <link
229 linkend="settings">Settings</link> menu. By default &kwrite; honors the
230 following shortcuts:</para>
231 <informaltable>
232 <tgroup cols="2">
233 <tbody>
235 <row><entry><para><keycombo
236 action="simul"><keycap>Insert</keycap></keycombo></para></entry>
237 <entry><para> Toggle between Insert and Overwrite mode. When in insert mode the
238 editor will add any typed characters to the text while pushing along any data to
239 the right of the text cursor. Overwrite mode causes the entry of each character
240 to eliminate the character immediately to the right of the text
241 cursor.</para></entry>
242 </row>
243 <row>
244 <entry><para><keycombo action="simul"><keycap>Left
245 Arrow</keycap></keycombo></para></entry>
246 <entry><para>Move the cursor one character to the left </para></entry>
247 </row>
248 <row>
249 <entry><para><keycombo action="simul"><keycap>Right
250 Arrow</keycap></keycombo></para></entry>
251 <entry><para> Move the cursor one character to the right </para></entry>
252 </row>
253 <row>
254 <entry><para><keycombo action="simul"><keycap>Up
255 Arrow</keycap></keycombo></para></entry>
256 <entry><para> Move the cursor up one line </para></entry>
257 </row>
258 <row>
259 <entry><para><keycombo action="simul"><keycap>Down
260 Arrow</keycap></keycombo></para></entry>
261 <entry><para> Move the cursor down one line </para></entry>
262 </row>
263 <row>
264 <entry><para><keycombo action="simul"><keycap>Page
265 Up</keycap></keycombo></para></entry>
266 <entry><para> Move the cursor up one page </para></entry>
267 </row>
268 <row>
269 <entry><para><keycombo action="simul">&Alt;<keycap>Page
270 Up</keycap></keycombo></para></entry>
271 <entry><para>Previous Bookmark </para></entry>
272 </row>
273 <row>
274 <entry><para><keycombo action="simul"><keycap>Page
275 Down</keycap></keycombo></para></entry>
276 <entry><para>Move the cursor down one page </para></entry>
277 </row>
278 <row>
279 <entry><para><keycombo action="simul">&Alt;<keycap>Page
280 Down</keycap></keycombo></para></entry>
281 <entry><para>Next Bookmark</para></entry>
282 </row>
283 <row>
284 <entry><para><keycombo
285 action="simul"><keycap>Backspace</keycap></keycombo></para></entry>
286 <entry><para> Delete the character to the left of the cursor </para></entry>
287 </row>
288 <row>
289 <entry><para><keycombo
290 action="simul"><keycap>Home</keycap></keycombo></para></entry>
291 <entry><para> Move the cursor to the beginning of the line </para></entry>
292 </row>
293 <row>
294 <entry><para><keycombo
295 action="simul"><keycap>End</keycap></keycombo></para></entry>
296 <entry><para> Move the cursor to the end of the line </para></entry>
297 </row>
298 <row>
299 <entry><para><keycombo
300 action="simul"><keycap>Delete</keycap></keycombo></para></entry>
301 <entry><para>Delete the character to the right of the cursor (or any selected
302 text)</para></entry>
303 </row>
304 <row>
305 <entry><para><keycombo action="simul">&Shift;<keycap>Enter</keycap></keycombo></para></entry>
306 <entry><para>Insert newline including leading characters of the current line which are not letters or numbers.
307 It is usefull &eg; to write comments in the code: At the end of the line <quote>// some text</quote> press
308 this shortcut and the next line starts already with <quote>// </quote>. So you do not have to enter the comment
309 characters at the beginning of each new line with comments.</para></entry>
310 </row>
311 <row>
312 <entry><para><keycombo action="simul">&Shift;<keycap>Left
313 Arrow</keycap></keycombo></para></entry>
314 <entry><para> Mark text one character to the left </para></entry>
315 </row>
316 <row>
317 <entry><para><keycombo action="simul">&Shift;<keycap>Right
318 Arrow</keycap></keycombo></para></entry>
319 <entry><para> Mark text one character to the right </para></entry>
320 </row>
321 <row>
322 <entry><para><keycombo
323 action="simul"><keycap>F1</keycap></keycombo></para></entry>
324 <entry><para> Help</para></entry>
325 </row>
326 <row>
327 <entry><para><keycombo
328 action="simul">&Shift;<keycap>F1</keycap></keycombo></para></entry>
329 <entry><para>What's this?</para></entry>
330 </row>
331 <row>
332 <entry><para><keycombo
333 action="simul"><keycap>F3</keycap></keycombo></para></entry>
334 <entry><para><link linkend="find-again"> Find Next</link></para></entry>
335 </row>
336 <row>
337 <entry><para><keycombo
338 action="simul">&Shift;<keycap>F3</keycap></keycombo></para></entry>
339 <entry><para><link linkend="find-previous"> Find Previous</link></para></entry>
340 </row>
341 <row>
342 <entry><para><keycombo
343 action="simul">&Ctrl;<keycap>H</keycap></keycombo></para></entry>
344 <entry><para><link linkend="find-selected">Find Selected</link></para></entry>
345 </row>
346 <row>
347 <entry><para><keycombo
348 action="simul">&Ctrl;&Shift;<keycap>H</keycap></keycombo></para></entry>
349 <entry><para><link linkend="find-selected-backwards">Find Selected Backwards</link></para></entry>
350 </row>
351 <row>
352 <entry><para><keycombo
353 action="simul">&Ctrl;<keycap>A</keycap></keycombo></para></entry>
354 <entry><para>Select All</para></entry>
355 </row>
356 <row>
357 <entry><para><keycombo
358 action="simul">&Ctrl;&Shift;<keycap>A</keycap></keycombo></para></entry>
359 <entry><para>Deselect</para></entry>
360 </row>
361 <row>
362 <entry><para><keycombo
363 action="simul">&Ctrl;&Shift;<keycap>B</keycap></keycombo></para></entry>
364 <entry><para>Block Selection Mode</para></entry>
365 </row>
366 <row>
367 <entry><para><keycombo
368 action="simul">&Ctrl;<keycap>B</keycap></keycombo></para></entry>
369 <entry><para>Set a Bookmark</para></entry>
370 </row>
371 <row>
372 <entry><para><keycombo
373 action="simul">&Ctrl;<keycap>C</keycap></keycombo></para></entry>
374 <entry><para> Copy the marked text to the clipboard. </para></entry>
375 </row>
376 <row>
377 <entry><para><keycombo
378 action="simul">&Ctrl;<keycap>D</keycap></keycombo></para></entry>
379 <entry><para> Comment</para></entry>
380 </row>
381 <row>
382 <entry><para><keycombo
383 action="simul">&Ctrl;&Shift;<keycap>D</keycap></keycombo></para></entry>
384 <entry><para> Uncomment</para></entry>
385 </row>
386 <row>
387 <entry><para><keycombo
388 action="simul">&Ctrl;<keycap>F</keycap></keycombo></para></entry>
389 <entry><para><link linkend="find"> Find</link></para></entry>
390 </row>
391 <row>
392 <entry><para><keycombo
393 action="simul">&Ctrl;<keycap>G</keycap></keycombo></para></entry>
394 <entry><para> Go to line...</para></entry>
395 </row>
396 <row>
397 <entry><para><keycombo
398 action="simul">&Ctrl;<keycap>I</keycap></keycombo></para></entry>
399 <entry><para> Indent selection</para></entry>
400 </row>
401 <row>
402 <entry><para><keycombo
403 action="simul">&Ctrl;&Shift;<keycap>I</keycap></keycombo></para></entry>
404 <entry><para> Unindent selection</para></entry>
405 </row>
406 <row>
407 <entry><para><keycombo
408 action="simul">&Ctrl;<keycap>J</keycap></keycombo></para></entry>
409 <entry><para>Join Lines</para></entry>
410 </row>
411 <row>
412 <entry><para><keycombo
413 action="simul">&Ctrl;<keycap>N</keycap></keycombo></para></entry>
414 <entry><para> <link linkend="new">New</link> document</para></entry>
415 </row>
416 <row>
417 <entry><para><keycombo
418 action="simul">&Ctrl;<keycap>O</keycap></keycombo></para></entry>
419 <entry><para><link linkend="open">Open a document</link> </para></entry>
420 </row>
421 <row>
422 <entry><para><keycombo
423 action="simul">&Ctrl;<keycap>P</keycap></keycombo></para></entry>
424 <entry><para><link linkend="print">Print</link> </para></entry>
425 </row>
426 <row>
427 <entry><para><keycombo
428 action="simul">&Ctrl;<keycap>Q</keycap></keycombo></para></entry>
429 <entry><para>Quit - close active copy of editor </para></entry>
430 </row>
431 <row>
432 <entry><para><keycombo
433 action="simul">&Ctrl;<keycap>R</keycap></keycombo></para></entry>
434 <entry><para><link linkend="replace"> Replace</link></para></entry>
435 </row>
436 <row>
437 <entry><para><keycombo
438 action="simul">&Ctrl;<keycap>S</keycap></keycombo></para></entry>
439 <entry><para>Invokes the <link
440 linkend="save"><guilabel>Save</guilabel></link> command.</para></entry>
441 </row>
442 <row>
443 <entry><para><keycombo
444 action="simul">&Ctrl;<keycap>U</keycap></keycombo></para></entry>
445 <entry><para>Uppercase</para></entry>
446 </row>
447 <row>
448 <entry><para><keycombo
449 action="simul">&Ctrl;&Shift;<keycap>U</keycap></keycombo></para></entry>
450 <entry><para>Lowercase</para></entry>
451 </row>
452 <row>
453 <entry><para><keycombo
454 action="simul">&Ctrl;&Alt;<keycap>U</keycap></keycombo></para></entry>
455 <entry><para>Capitalize</para></entry>
456 </row>
457 <row>
458 <entry><para><keycombo
459 action="simul">&Ctrl;<keycap>V</keycap></keycombo></para></entry>
460 <entry><para> Paste the clipboard text into line edit. </para></entry>
461 </row>
462 <row>
463 <entry><para><keycombo
464 action="simul">&Ctrl;<keycap>W</keycap></keycombo></para></entry>
465 <entry><para><link linkend="close">Close</link> </para></entry>
466 </row>
467 <row>
468 <entry><para><keycombo
469 action="simul">&Ctrl;<keycap>X</keycap></keycombo></para></entry>
470 <entry><para>Delete the marked text and copy it to the clipboard.
471 </para></entry>
472 </row>
473 <row>
474 <entry><para><keycombo
475 action="simul">&Ctrl;<keycap>Z</keycap></keycombo></para></entry>
476 <entry><para><link linkend="undo">Undo</link></para></entry>
477 </row>
478 <row>
479 <entry><para><keycombo
480 action="simul">&Ctrl;&Shift;<keycap>Z</keycap></keycombo></para></entry>
481 <entry><para><link linkend="redo">Redo</link></para></entry>
482 </row>
483 <row>
484 <entry><para><keycombo
485 action="simul">&Ctrl;<keycap>-</keycap></keycombo></para></entry>
486 <entry><para>Collapse One Local Level</para></entry>
487 </row>
488 <row>
489 <entry><para><keycombo
490 action="simul">&Ctrl;&Shift;<keycap>-</keycap></keycombo></para></entry>
491 <entry><para>Collapse Toplevel</para></entry>
492 </row>
493 <row>
494 <entry><para><keycombo
495 action="simul">&Ctrl;<keycap>+</keycap></keycombo></para></entry>
496 <entry><para>Expand One Local Level</para></entry>
497 </row>
498 <row>
499 <entry><para><keycombo
500 action="simul">&Ctrl;&Shift;<keycap>+</keycap></keycombo></para></entry>
501 <entry><para>Expand Toplevel</para></entry>
502 </row>
503 <!-- only in 4.2 uncomment after backport to 4.1
504 <row>
505 <entry><para><keycombo
506 action="simul">Meta&Ctrl;<keycap>V</keycap></keycombo></para></entry>
507 <entry><para>VI input mode</para></entry>
508 </row>
510 <row>
511 <entry><para><keycombo
512 action="simul">&Ctrl;<keycap>Space</keycap></keycombo></para></entry>
513 <entry><para>Invoke Code Completion</para></entry>
514 </row>
515 <row>
516 <entry><para><keycombo
517 action="simul"><keycap>F5</keycap></keycombo></para></entry>
518 <entry><para><link linkend="reload"> Reload</link></para></entry>
519 </row>
520 <row>
521 <entry><para><keycombo
522 action="simul"><keycap>F6</keycap></keycombo></para></entry>
523 <entry><para>Show/Hide Icon Border</para></entry>
524 </row>
525 <row>
526 <entry><para><keycombo
527 action="simul"><keycap>F7</keycap></keycombo></para></entry>
528 <entry><para> Switch to Command Line</para></entry>
529 </row>
530 <row>
531 <entry><para><keycombo
532 action="simul"><keycap>F9</keycap></keycombo></para></entry>
533 <entry><para> Show/Hide Folding Markers</para></entry>
534 </row>
535 <row>
536 <entry><para><keycombo
537 action="simul"><keycap>F10</keycap></keycombo></para></entry>
538 <entry><para> Dynamic Word Wrap</para></entry>
539 </row>
540 <row>
541 <entry><para><keycombo
542 action="simul"><keycap>F11</keycap></keycombo></para></entry>
543 <entry><para> Show/Hide Line Numbers</para></entry>
544 </row>
545 </tbody>
546 </tgroup>
547 </informaltable>
548 </sect1>
549 </chapter>
551 <chapter id="the-menu-entries">
552 <title>The Menu Entries</title>
554 <para>There are different menus and menu items in simple and advanced mode.
555 The advanced mode is enabled by checking the option <link linkend="appearance">
556 Enable Power User Mode (&kde; 3 mode)</link>
557 on the <guilabel>Appearance</guilabel> page in &kappname;s settings.</para>
558 <!-- This is also valid for kates menu file, kate has additional Save All Ctrl+L, Reload All, Close Other, Close All items-->
559 <sect1 id="file">
560 <title>The <guimenu>File</guimenu> Menu</title>
562 <variablelist>
564 <varlistentry>
565 <term id="new">
566 <menuchoice>
567 <shortcut>
568 <keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
569 </shortcut>
570 <guimenu>File</guimenu>
571 <guimenuitem>New</guimenuitem></menuchoice></term>
572 <listitem>
573 <para>
574 This starts a new document in a new and independent editor window.
575 </para>
576 </listitem>
577 </varlistentry>
579 <varlistentry>
580 <term id="open">
581 <menuchoice>
582 <shortcut>
583 <keycombo action="simul">&Ctrl;<keycap>O</keycap></keycombo>
584 </shortcut>
585 <guimenu>File</guimenu>
586 <guimenuitem>Open...</guimenuitem>
587 </menuchoice>
588 </term>
590 <listitem>
591 <!--
592 This is description of a standard dialog and so should go in the UG,
593 with a pointer to it. In fact, I'll probably nick this very stuff for
594 the UG
595 - Phil
596 <para>
597 This command opens a file. It does this by means of a dialog box which
598 allows the user to navigate the file system. The dialog operates like a
599 small file manager. Clicking on folders displayed in the central
600 window directs the dialog to enter that folder - displaying its
601 contents. There is an entry/dropdown box which can be used to type in
602 directly the location and name of the file or by clicking the arrow at
603 the side choose from a drop down box of recently used locations. Below
604 this is a filter which similarly may have data entered directly or
605 chosen from a drop down box of recent filter types. The filter facility
606 lets only files that meet its specifications be displayed in the central
607 window. If the filter contained text such as <literal
608 role="extension">*.txt</literal> then only files with the <literal
609 role="extension">txt</literal> extension would be visible in the
610 selection window. Below the filter is a status bar giving information
611 about the number of files and subfolders within the current
612 folder.
613 </para>
615 <para>
616 The toolbar, which is located at the top of the dialog, has left and
617 right arrow buttons that let the user move back and forth through
618 previously selected folders as well as an up arrow button for moving
619 up the folder tree. The button with the little house takes the user
620 to his or her home folder and the one with the two arrows curved in
621 on each other updates the view of the current folder. The flag button
622 lets the user set a new bookmark at the current folder or go to one
623 that was previously set.
624 </para>
626 <para>
627 The last button on the toolbar allows you to create a new folder, and
628 even change some basic settings for the dialog box, and finally there is
629 dropdown box with a list of some commonly frequented folders.
630 </para>
632 <para>Displays a standard &kde; <guilabel>Open File</guilabel>
633 dialog. Use the file view to select the file you want to open, and
634 click on <guibutton>Open</guibutton> to open it. You can find more
635 information about the &kde; <guilabel>Open File</guilabel> dialog in
636 the &kde; User Guide.</para>
638 </listitem>
639 </varlistentry>
641 <varlistentry>
642 <term id="open-recent">
643 <menuchoice>
644 <guimenu>File</guimenu>
645 <guisubmenu>Open Recent</guisubmenu>
646 </menuchoice>
647 </term>
648 <listitem>
649 <para>
650 This is a shortcut to open recently saved documents. Clicking on this
651 item opens a list to the side of the menu with several of the most
652 recently saved files. Clicking on a specific file will open it in
653 &kappname; - if the file still resides at the same
654 location.
655 </para>
656 </listitem>
657 </varlistentry>
659 <varlistentry>
660 <term id="save">
661 <menuchoice>
662 <shortcut>
663 <keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo>
664 </shortcut>
665 <guimenu>File</guimenu>
666 <guimenuitem>Save</guimenuitem>
667 </menuchoice>
668 </term>
669 <listitem>
670 <para>
671 This saves the current document. If there has already been a save of
672 the document then this will overwrite the previously saved file without
673 asking for the user's consent. If it is the first save of a new
674 document the save as dialog (described below) will be invoked.
675 </para>
676 </listitem>
677 </varlistentry>
679 <varlistentry>
680 <term id="save-as">
681 <menuchoice>
682 <guimenu>File</guimenu>
683 <guimenuitem>Save As...</guimenuitem>
684 </menuchoice>
685 </term>
686 <listitem>
687 <para>
688 This allows a document to be saved with a new file name. This is done by
689 means of the file dialog box described above in the <link
690 linkend="open">Open</link> section of this help file.
691 </para>
692 </listitem>
693 </varlistentry>
695 <varlistentry>
696 <term id="reload">
697 <menuchoice>
698 <shortcut>
699 <keycombo action="simul"><keycap>F5</keycap></keycombo>
700 </shortcut>
701 <guimenu>File</guimenu>
702 <guimenuitem>Reload</guimenuitem>
703 </menuchoice>
704 </term>
705 <listitem>
706 <para>
707 Reloads the active file from disk. This command is useful if another program or
708 process has changed the file while you have it open in &kappname;.
709 </para>
710 </listitem>
711 </varlistentry>
713 <varlistentry>
714 <term id="print">
715 <menuchoice>
716 <shortcut>
717 <keycombo action="simul">&Ctrl;<keycap>P</keycap></keycombo>
718 </shortcut>
719 <guimenu>File</guimenu>
720 <guimenuitem>Print...</guimenuitem>
721 </menuchoice>
722 </term>
723 <listitem>
724 <para>
725 Opens a simple print dialog allowing the user to specify what, where,
726 and how to print.
727 </para>
728 </listitem>
729 </varlistentry>
730 <varlistentry> <!-- only in power user mode -->
731 <term id="export-as-html">
732 <menuchoice>
733 <guimenu>File</guimenu>
734 <guimenuitem>Export as HTML...</guimenuitem>
735 </menuchoice>
736 </term>
737 <listitem>
738 <para>
739 Export your file in &HTML; format so your document can be viewed as a web page.
740 </para>
741 </listitem>
742 </varlistentry>
743 <varlistentry>
744 <term id="close">
745 <menuchoice>
746 <shortcut>
747 <keycombo action="simul">&Ctrl;<keycap>W</keycap></keycombo>
748 </shortcut>
749 <guimenu>File</guimenu>
750 <guimenuitem>Close</guimenuitem>
751 </menuchoice>
752 </term>
753 <listitem>
754 <para>
755 Close the active file with this command. If you have made unsaved changes, you
756 will be prompted to save the file before &kappname; closes it.
757 </para>
758 </listitem>
759 </varlistentry>
761 <varlistentry>
762 <term id="quit">
763 <menuchoice>
764 <shortcut>
765 <keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
766 </shortcut>
767 <guimenu>File</guimenu>
768 <guimenuitem>Quit</guimenuitem>
769 </menuchoice>
770 </term>
771 <listitem>
772 <para>
773 This will close the editor window, if you have more than one instance of
774 &kappname; running, through the <guimenuitem>New</guimenuitem> or
775 <guimenuitem>New Window</guimenuitem> menu items, those instances will
776 not be closed.
777 </para>
778 </listitem>
779 </varlistentry>
781 </variablelist>
783 </sect1>
785 <sect1 id="edit"> <!-- This is also valid for kates menu edit-->
786 <title>The <guimenu>Edit</guimenu> Menu</title>
788 <variablelist>
789 <varlistentry>
790 <term id="undo"><menuchoice>
791 <shortcut><keycombo
792 action="simul">&Ctrl;<keycap>Z</keycap></keycombo></shortcut>
793 <guimenu>Edit</guimenu>
794 <guimenuitem>Undo</guimenuitem></menuchoice></term>
795 <listitem>
796 <para>This is used to eliminate or reverse the most recent user action
797 or operation.
798 <!--
799 Just what constitutes such an action may be better
800 understood by referring to the <link linkend="group-undos">Group
801 Undos</link> portion of this help file.
803 </para>
804 </listitem>
805 </varlistentry>
807 <varlistentry>
808 <term><anchor id="redo"/><menuchoice>
809 <shortcut><keycombo
810 action="simul">&Ctrl;&Shift;<keycap>Z</keycap></keycombo></shortcut>
811 <guimenu>Edit</guimenu><guimenuitem>Redo</guimenuitem></menuchoice></term>
812 <listitem>
813 <para>This will reverse the most recent change (if any) made using Undo</para>
814 </listitem>
815 </varlistentry>
817 <varlistentry>
818 <term><anchor id="cut"/><menuchoice>
819 <shortcut><keycombo
820 action="simul">&Ctrl;<keycap>X</keycap></keycombo></shortcut>
821 <guimenu>Edit</guimenu><guimenuitem>Cut</guimenuitem></menuchoice></term>
822 <listitem>
823 <para>This command deletes the current selection and places it on the
824 clipboard.
825 The clipboard is a feature of &kde; that works invisibly to provide a way to
826 transfer data between applications.</para>
827 </listitem>
828 </varlistentry>
830 <varlistentry>
831 <term><anchor id="copy"/><menuchoice>
832 <shortcut><keycombo
833 action="simul">&Ctrl;<keycap>C</keycap></keycombo></shortcut>
834 <guimenu>Edit</guimenu><guimenuitem>Copy</guimenuitem></menuchoice></term>
835 <listitem>
836 <para>This copies the currently selected text to the clipboard so that it may
837 be pasted elsewhere. The clipboard is a feature of &kde; that works invisibly
838 to provide a way to transfer data between applications.</para>
839 </listitem>
840 </varlistentry>
841 <varlistentry><!-- only in power user mode -->
842 <term><anchor id="copy-as-html"/><menuchoice>
843 <guimenu>Edit</guimenu><guimenuitem>Copy as
844 HTML...</guimenuitem></menuchoice></term>
845 <listitem>
846 <para>This copies the currently selected text to the clipboard as &HTML;.</para>
847 </listitem>
848 </varlistentry>
849 <varlistentry>
850 <term><anchor id="paste"/><menuchoice>
851 <shortcut><keycombo
852 action="simul">&Ctrl;<keycap>V</keycap></keycombo></shortcut>
853 <guimenu>Edit</guimenu><guimenuitem>Paste</guimenuitem></menuchoice></term>
854 <listitem>
855 <para>This will insert the contents of the clipboard at the cursor position.
856 The clipboard is feature of &kde; that works invisibly to provide a way to
857 transfer data between applications.</para>
858 </listitem>
859 </varlistentry>
861 <varlistentry>
862 <term><anchor id="select-all"/><menuchoice>
863 <shortcut><keycombo
864 action="simul">&Ctrl;<keycap>A</keycap></keycombo></shortcut>
865 <guimenu>Edit</guimenu><guimenuitem>Select All</guimenuitem></menuchoice></term>
866 <listitem>
867 <para>This will select the entire document. This could be very useful for
868 copying the entire file to another application.</para>
869 </listitem>
870 </varlistentry>
872 <varlistentry>
873 <term><anchor id="deselect"/><menuchoice>
874 <shortcut>
875 <keycombo action="simul">&Ctrl;&Shift;<keycap>A</keycap></keycombo>
876 </shortcut>
877 <guimenu>Edit</guimenu><guimenuitem>Deselect</guimenuitem></menuchoice></term>
878 <listitem>
879 <para>Deselects the selected text in the editor if any.</para>
880 </listitem>
881 </varlistentry>
882 <varlistentry><!-- only in power user mode -->
883 <term><anchor id="block-selection-mode"/><menuchoice>
884 <shortcut>
885 <keycombo action="simul">&Ctrl;&Shift;<keycap>B</keycap></keycombo>
886 </shortcut>
887 <guimenu>Edit</guimenu><guimenuitem>Block
888 Selection Mode</guimenuitem></menuchoice></term>
889 <listitem>
890 <para>Toggles Selection Mode. When the Selection Mode is <guilabel>BLOCK</guilabel>,
891 you can make vertical selections, &eg; select column 5 to 10 in lines 9 to 15.
892 The status bar shows the current state of the Selection Mode, either <guilabel>BLOCK</guilabel> or
893 <guilabel>LINE</guilabel>.</para>
894 </listitem>
895 </varlistentry>
896 <varlistentry>
897 <term><anchor id="overwrite-mode"/><menuchoice>
898 <shortcut>
899 <keycombo action="simul"><keycap>Ins</keycap></keycombo>
900 </shortcut>
901 <guimenu>Edit</guimenu><guimenuitem>Overwrite
902 Mode</guimenuitem></menuchoice></term>
903 <listitem>
904 <para>Toggles the Insert/Overwrite modes. When the mode is <guilabel>INS</guilabel>, you
905 insert characters where the cursor is. When the mode is <guilabel>OVR</guilabel>, writing
906 characters will replace the current characters if your cursor is positioned
907 before any character. The status bar shows the current state of the Overwrite
908 Mode, either <guilabel>INS</guilabel> or <guilabel>OVR</guilabel>.</para>
909 </listitem>
910 </varlistentry>
912 <varlistentry>
913 <term><anchor id="find"/><menuchoice>
914 <shortcut><keycombo
915 action="simul">&Ctrl;<keycap>F</keycap></keycombo></shortcut>
916 <guimenu>Edit</guimenu><guimenuitem>Find...</guimenuitem></menuchoice></term>
917 <listitem>
918 <para>This opens the incremental search bar at the bottom of the editor window.
919 On the left side of the bar is an icon to close the bar, followed by a small text
920 box for entering the search pattern.</para>
921 <para>When you start entering characters of your search pattern, the search starts
922 immediately. If there is a match in the text this is highlighted and the background color
923 of the entry field changes to light green. If the search pattern does not match any
924 string in the text, this is indicated by a light red background color of the entry field
925 and <guilabel>Not found</guilabel> is displayed at the right side of the bar.</para>
926 <para>Use the <guilabel>Next</guilabel> or <guilabel>Previous</guilabel> button
927 to jump to the next or previous match in the document.</para>
928 <para>You can modify the search behaviour by selecting different
929 <guilabel>Options</guilabel>:
930 The <guilabel>Highlight all</guilabel> option highlights all matches in the document.
931 Selecting <guilabel>Match case</guilabel> will limit finds to entries that match the
932 case (upper or lower) of each of the characters in the search pattern.
933 The <guilabel>From cursor</guilabel> option begins the search
934 from the current position of the cursor within the document rather than from
935 the beginning.</para>
936 <para>Click on the green arrow icon at the right side of the incremental search bar to
937 switch to the power search and replace bar.
939 <!--This opens the find dialog which is used to specify the <guilabel>Text to
940 Find</guilabel> in the document. There is small text box for entering the search
941 pattern which also doubles as a dropdown box. Clicking on the dropdown arrow at
942 the side of the box makes available other recent search patterns. Other
943 parameters are included to make the search more efficient. Selecting
944 <guilabel>Case Sensitive</guilabel> will limit finds to entries that match the
945 case (upper or lower) of each of the characters in the search pattern.
946 <guilabel>Find Backwards</guilabel> directs the search to proceed in an upwardly
947 direction. The <guilabel>Selected Text</guilabel> option keeps the search
948 within currently selected text. Checking <guilabel>Whole Words Only</guilabel>
949 prevents the search from stopping on words that contain the searched for
950 pattern. The <guilabel>Search from Cursor</guilabel> option begins the search
951 from the current position of the cursor within the document rather than from
952 the beginning.-->
953 </para>
954 </listitem>
955 </varlistentry>
957 <varlistentry>
958 <term><anchor id="find-again"/><menuchoice>
959 <shortcut><keycombo action="simul"><keycap>F3</keycap></keycombo></shortcut>
960 <guimenu>Edit</guimenu><guimenuitem>Find Next</guimenuitem></menuchoice></term>
961 <listitem>
962 <para>This repeats the last find operation, if any, without calling the incremental
963 search bar.
964 </para>
965 </listitem>
966 </varlistentry>
968 <varlistentry>
969 <term id="find-previous">
970 <menuchoice>
971 <shortcut>
972 <keycombo action="simul">&Shift;<keycap>F3</keycap></keycombo>
973 </shortcut>
974 <guimenu>Edit</guimenu>
975 <guimenuitem>Find Previous</guimenuitem>
976 </menuchoice>
977 </term>
978 <listitem>
979 <para>
980 This repeats the last find operation, if any, without calling the incremental
981 search bar, and searching backwards instead of forwards through the
982 document.
983 </para>
984 </listitem>
985 </varlistentry>
987 <varlistentry>
988 <term><anchor id="replace"/><menuchoice>
989 <shortcut><keycombo
990 action="simul">&Ctrl;<keycap>R</keycap></keycombo></shortcut>
991 <guimenu>Edit</guimenu><guimenuitem>Replace...</guimenuitem></menuchoice></term>
992 <listitem>
993 <para>This command opens the power search and replace bar.
994 On the upper left side of the bar is an icon to close the bar, followed by a small text
995 box for entering the search pattern.</para>
996 <para>You can control the search mode by selecting <guilabel>Plain Text</guilabel>,
997 <guilabel>Whole Words</guilabel>, <guilabel>Escape Sequences</guilabel> or
998 <guilabel>Regular Expression</guilabel>. For the last two options the
999 <guibutton>Add</guibutton> button is enabled and allows you to add special items to the
1000 search pattern from a predefined list.
1001 </para>
1002 <para>Use the <guilabel>Next</guilabel> or <guilabel>Previous</guilabel> button to jump
1003 to the next or previous match in the document.</para>
1004 <para>Enter the text to replace with in the text box labeled <guilabel>Replace</guilabel>
1005 and click the <guibutton>Replace</guibutton> button to replace only the highlighted text or
1006 the <guibutton>Replace All</guibutton> button to replace the search text in the whole document.
1007 If the option <guilabel>Use placeholders</guilabel> is checked you can add special items
1008 to the replacement text by clicking the <guibutton>Add</guibutton> button.</para>
1009 <para>You can modify the search and replace behaviour by selecting different
1010 options on the right side of the bar.
1011 The <guilabel>Highlight all</guilabel> option highlights all matches in the document.
1012 Selecting <guilabel>Match case</guilabel> will limit finds to entries that match the
1013 case (upper or lower) of each of the characters in the search pattern.
1014 The <guilabel>From cursor</guilabel> option begins the search
1015 from the current position of the cursor within the document rather than from
1016 the beginning.
1017 <guilabel>Selection only</guilabel> will search and replace within the current selection only.</para>
1018 <para>Click on the green arrow icon at the right side of the power search and replace bar to
1019 switch to the incremental search bar.
1020 <!--This command opens the replace dialog box. The replace dialog is
1021 almost identical to the above-mentioned find dialog. In addition to the features
1022 in the find dialog it contains a <guilabel>Replace With:</guilabel> text
1023 entry/dropdown box. Using this dialog the user can specify both the text to be
1024 found and text with which to replace it. The additional <guilabel>Prompt
1025 On Replace</guilabel> option allows the user to have &kwrite; ask for
1026 confirmation before each replacement.-->
1027 </para>
1028 </listitem>
1029 </varlistentry>
1031 <varlistentry>
1032 <term id="find-selected">
1033 <menuchoice>
1034 <shortcut><keycombo
1035 action="simul">&Ctrl;<keycap>H</keycap></keycombo></shortcut>
1036 <guimenu>Edit</guimenu><guimenuitem>Find Selected</guimenuitem></menuchoice></term>
1037 <listitem>
1038 <para>Finds next occurrence of selected text.</para>
1039 </listitem>
1040 </varlistentry>
1042 <varlistentry>
1043 <term id="find-selected-backwards">
1044 <menuchoice>
1045 <shortcut><keycombo
1046 action="simul">&Ctrl;&Shift;<keycap>H</keycap></keycombo></shortcut>
1047 <guimenu>Edit</guimenu><guimenuitem>Find Selected Backwards</guimenuitem></menuchoice></term>
1048 <listitem>
1049 <para>Finds previous occurrence of selected text.</para>
1050 </listitem>
1051 </varlistentry>
1053 <varlistentry>
1054 <term id="go-to-line">
1055 <menuchoice>
1056 <shortcut>
1057 <keycombo action="simul">&Ctrl;<keycap>G</keycap></keycombo>
1058 </shortcut>
1059 <guimenu>Edit</guimenu>
1060 <guimenuitem>Go to Line...</guimenuitem></menuchoice></term>
1061 <listitem>
1062 <para>
1063 This opens the goto line bar at the bottom of the window which is used to have the cursor
1064 jump to a particular line (specified by number) in the document. The
1065 line number may be entered directly into the text box or graphically by
1066 clicking on the up or down arrow spin controls at the side of the text
1067 box. The little up arrow will increase the line number and the down
1068 arrow decrease it. Close the bar with a click on the icon on the left side of the bar.
1069 </para>
1070 </listitem>
1071 </varlistentry>
1072 </variablelist>
1074 </sect1>
1075 <sect1 id="view-menu">
1076 <!-- This is also valid for kates menu edit, only New Window is replaced by Vi input mode-->
1077 <title>The <guimenu>View</guimenu> menu</title>
1079 <para>The <guimenu>View</guimenu> menu allows you to manage settings
1080 specific to the active editor, and to manage frames.</para>
1082 <variablelist>
1084 <varlistentry>
1085 <term>
1086 <anchor id="view-new-window"/>
1087 <menuchoice>
1088 <guimenu>View</guimenu>
1089 <guimenuitem>New Window</guimenuitem>
1090 </menuchoice>
1091 </term>
1092 <listitem>
1093 <para>Create another window containing the current document. All changes to the
1094 document in one window are reflected in the other window and vice versa.</para>
1095 </listitem>
1096 </varlistentry>
1097 <!--kwrite in 4.2 has VI Input mode Meta+Ctrl+V -->
1098 <varlistentry>
1099 <term>
1100 <anchor id="view-command-line"/><!-- only in power user mode -->
1101 <menuchoice>
1102 <shortcut><keycombo
1103 action="simul"><keycap>F7</keycap></keycombo></shortcut>
1104 <guimenu>View</guimenu>
1105 <guimenuitem>Switch to Command Line</guimenuitem>
1106 </menuchoice>
1107 </term>
1108 <listitem>
1109 <para>Displays the Katepart command line at the bottom of the window.
1110 In the command line, type <userinput>help</userinput> to get help and <userinput>help list</userinput>
1111 to get a list of commands.</para>
1112 </listitem>
1113 </varlistentry>
1115 <varlistentry><!-- only in power user mode -->
1116 <term>
1117 <anchor id="view-schema"/>
1118 <menuchoice>
1119 <guimenu>View</guimenu>
1120 <guisubmenu>Schema</guisubmenu>
1121 </menuchoice>
1122 </term>
1123 <listitem>
1124 <para>Select a font schema.</para>
1125 </listitem>
1126 </varlistentry>
1128 <varlistentry>
1129 <term>
1130 <anchor id="view-dynamic-word-wrap"/>
1131 <menuchoice>
1132 <shortcut><keycombo action="simul"><keycap>F10</keycap></keycombo></shortcut>
1133 <guimenu>View</guimenu>
1134 <guimenuitem>Dynamic Word Wrap</guimenuitem>
1135 </menuchoice>
1136 </term>
1137 <listitem>
1138 <para>The text lines will be wrapped at the view
1139 border on the screen.</para>
1140 </listitem>
1141 </varlistentry>
1143 <varlistentry><!-- only in power user mode -->
1144 <term>
1145 <anchor id="view-dynamic-word-wrap-indicators"/>
1146 <menuchoice>
1147 <guimenu>View</guimenu>
1148 <guisubmenu>Dynamic Word Wrap Indicators</guisubmenu>
1149 </menuchoice>
1150 </term>
1151 <listitem>
1152 <para>Choose when and how the dynamic word wrap indicators should be
1153 displayed. This is only available if the <guilabel>Dynamic Word
1154 Wrap</guilabel> option is checked.</para>
1155 </listitem>
1156 </varlistentry>
1158 <varlistentry><!-- only in power user mode -->
1159 <term>
1160 <anchor id="view-show-static-word-wrap"/>
1161 <menuchoice>
1162 <guimenu>View</guimenu>
1163 <guimenuitem>Show Static Word Wrap Marker</guimenuitem>
1164 </menuchoice>
1165 </term>
1166 <listitem>
1167 <para>If this option is checked, a vertical line will be drawn at the
1168 word wrap column as defined in the <menuchoice>
1169 <guimenu>Settings</guimenu>
1170 <guimenuitem>Configure Editor...</guimenuitem></menuchoice> in the
1171 Editing tab. Please note that the word wrap marker is only drawn if you
1172 use a fixed pitch font.</para>
1173 </listitem>
1174 </varlistentry>
1176 <varlistentry><!-- only in power user mode -->
1177 <term>
1178 <anchor id="view-show-icon-border"/>
1179 <menuchoice>
1180 <shortcut><keycombo action="simul"><keycap>F6</keycap></keycombo></shortcut>
1181 <guimenu>View</guimenu>
1182 <guimenuitem>Show Icon Border</guimenuitem>
1183 </menuchoice>
1184 </term>
1185 <listitem>
1186 <para>This is a toggle item. Setting it on checked will make the Icon Border
1187 visible in the left side of the active editor, and vice versa.</para>
1188 </listitem>
1189 </varlistentry>
1191 <varlistentry>
1192 <term>
1193 <anchor id="view-show-line-numbers"/>
1194 <menuchoice>
1195 <shortcut><keycombo action="simul"><keycap>F11</keycap></keycombo></shortcut>
1196 <guimenu>View</guimenu>
1197 <guimenuitem>Show Line Numbers</guimenuitem>
1198 </menuchoice>
1199 </term>
1200 <listitem>
1201 <para>This is a toggle Item. Setting it on checked will make a pane displaying
1202 the line numbers of the document visible in the left border of the active
1203 editor, and vice versa.</para>
1204 </listitem>
1205 </varlistentry>
1207 <varlistentry><!-- only in power user mode -->
1208 <term>
1209 <anchor id="view-scrollbar-marks"/>
1210 <menuchoice>
1211 <guimenu>View</guimenu>
1212 <guisubmenu>Show Scrollbar Marks</guisubmenu>
1213 </menuchoice>
1214 </term>
1215 <listitem>
1216 <para>If this option is checked, the view will show marks on the vertical
1217 scrollbar.</para>
1218 </listitem>
1219 </varlistentry>
1221 <varlistentry><!-- only in power user mode -->
1222 <term>
1223 <anchor id="view-hide-folding-markers"/>
1224 <menuchoice>
1225 <shortcut><keycombo action="simul"><keycap>F9</keycap></keycombo></shortcut>
1226 <guimenuitem>Show Folding Markers</guimenuitem>
1227 </menuchoice>
1228 </term>
1229 <listitem>
1230 <para>If this option is checked, the marks for code folding will be
1231 hidden.</para>
1232 </listitem>
1233 </varlistentry>
1235 <varlistentry><!-- only in power user mode -->
1236 <term>
1237 <anchor id="view-code-folding"/>
1238 <menuchoice>
1239 <guisubmenu>Code Folding</guisubmenu>
1240 </menuchoice>
1241 </term>
1242 <listitem>
1243 <variablelist>
1244 <varlistentry>
1245 <term><menuchoice><shortcut><keycombo action="simul">&Ctrl;
1246 &Shift;<keycap>-</keycap></keycombo></shortcut>
1247 <guimenuitem>Collapse Toplevel</guimenuitem></menuchoice>
1248 </term>
1249 <listitem><para>Collapse all toplevel regions in the document.</para></listitem>
1250 </varlistentry>
1251 <varlistentry>
1252 <term><menuchoice><shortcut><keycombo action="simul">&Ctrl;
1253 &Shift;<keycap>+</keycap></keycombo></shortcut>
1254 <guimenuitem>Expand Toplevel</guimenuitem></menuchoice>
1255 </term>
1256 <listitem><para>Expand all toplevel regions in the document.</para></listitem>
1257 </varlistentry>
1258 <varlistentry>
1259 <term><menuchoice><shortcut><keycombo action="simul">&Ctrl;
1260 <keycap>-</keycap></keycombo></shortcut>
1261 <guimenuitem>Collapse One Local Level</guimenuitem></menuchoice>
1262 </term>
1263 <listitem><para>Collapse the region closest to the cursor.</para></listitem>
1264 </varlistentry>
1265 <varlistentry>
1266 <term><menuchoice><shortcut><keycombo action="simul">&Ctrl;
1267 <keycap>+</keycap></keycombo></shortcut>
1268 <guimenuitem>Expand One Local Level</guimenuitem></menuchoice>
1269 </term>
1270 <listitem><para>Expand the region closest to the cursor.</para></listitem>
1271 </varlistentry>
1272 </variablelist>
1273 </listitem>
1274 </varlistentry>
1276 <!-- only in 4.2, uncomment when backported to 4.1
1277 <varlistentry>
1278 <term><menuchoice><guimenuitem>Enlarge Font</guimenuitem></menuchoice>
1279 </term>
1280 <listitem><para>This increases the display font size.</para></listitem>
1281 </varlistentry>
1283 <varlistentry>
1284 <term><menuchoice><guimenuitem>Shrink Font</guimenuitem></menuchoice>
1285 </term>
1286 <listitem><para>This decreases the display font size.</para></listitem>
1287 </varlistentry>
1289 </variablelist>
1291 </sect1>
1292 <sect1 id="go"><!-- This is also valid for kates menu bookmarks-->
1293 <title>The <guimenu>Bookmarks</guimenu> Menu</title>
1294 <para>This menu is only displayed, if you check the option <link linkend="appearance">
1295 Enable Power User Mode (&kde; 3 mode)</link>
1296 on the <guilabel>Appearance</guilabel> page in &kappname;s settings.</para>
1297 <variablelist>
1299 <varlistentry>
1300 <term id="set-bookmark">
1301 <menuchoice>
1302 <shortcut>
1303 <keycombo action="simul">&Ctrl;<keycap>B</keycap></keycombo>
1304 </shortcut>
1305 <guimenu>Bookmarks</guimenu>
1306 <guimenuitem>Set Bookmark</guimenuitem>
1307 </menuchoice>
1308 </term>
1309 <listitem>
1310 <para>
1311 Sets or removes a bookmark in the current line of the active document. (If it's
1312 there, it is removed, otherwise one is set).
1313 </para>
1314 </listitem>
1315 </varlistentry>
1317 <varlistentry>
1318 <term id="clear-bookmarks">
1319 <menuchoice>
1320 <guimenu>Bookmarks</guimenu>
1321 <guimenuitem>Clear All Bookmarks</guimenuitem>
1322 </menuchoice>
1323 </term>
1324 <listitem>
1325 <para>
1326 This command will remove all the markers from the document as well as
1327 the list of markers which is appended at the bottom of this menu item.
1328 </para>
1329 </listitem>
1330 </varlistentry>
1332 <varlistentry id="bookmarks-previous">
1333 <term><menuchoice><shortcut><keycombo action="simul">&Alt;
1334 <keycap>PgUp</keycap></keycombo></shortcut>
1335 <guimenu>Bookmarks</guimenu><guimenuitem>Previous</guimenuitem></menuchoice>
1336 </term>
1337 <listitem><para>This will move the cursor to beginning of the first above line
1338 with a bookmark. The menuitem text will include the line number and the first
1339 piece of text on the line. This item is only available when there is a bookmark
1340 in a line above the cursor.</para></listitem>
1341 </varlistentry>
1343 <varlistentry id="bookmarks-next">
1344 <term><menuchoice><shortcut><keycombo action="simul">&Alt;
1345 <keycap>PgDown</keycap></keycombo></shortcut>
1346 <guimenu>Bookmarks</guimenu><guimenuitem>Next</guimenuitem></menuchoice></term>
1347 <listitem><para>This will move the cursor to beginning of the next line with a
1348 bookmark. The menuitem text will include the line number and the first piece of
1349 text on the line. This item is only available when there is a bookmark in a line
1350 below the cursor.</para></listitem>
1351 </varlistentry>
1353 </variablelist>
1355 <para>
1356 At the bottom of this menu, a list of markers appears if any markers are
1357 available for this window.
1358 </para>
1360 </sect1>
1362 <!-- This is also valid for kates menu tools, kate has additional items:
1363 Pipe to Terminal, Syncronizise Terminal with Current Dokument, Focus Terminal at top-->
1364 <sect1 id="tools">
1365 <title>The <guimenu>Tools</guimenu> Menu</title>
1367 <variablelist>
1368 <varlistentry>
1369 <term><anchor id="tools-read-only"/><menuchoice>
1370 <guimenu>Tools</guimenu>
1371 <guimenuitem>Read Only Mode</guimenuitem></menuchoice></term>
1372 <listitem>
1373 <para>Set the current document to Read Only mode. This prevents any text
1374 addition and any changes in the document formatting.</para>
1375 </listitem>
1376 </varlistentry>
1378 <varlistentry><!-- only in power mode-->
1379 <term><anchor id="tools-filetype"/><menuchoice>
1380 <guimenu>Tools</guimenu>
1381 <guisubmenu>Mode</guisubmenu></menuchoice></term>
1382 <listitem>
1383 <para>Choose the filetype scheme you prefer for the active document. This
1384 overwrites the global filetype mode set in <menuchoice>
1385 <guimenu>Settings</guimenu>
1386 <guimenuitem>Configure
1387 Editor...</guimenuitem></menuchoice> in the Filetypes tab for your current
1388 document only.</para>
1389 </listitem>
1390 </varlistentry>
1392 <varlistentry><!-- only in power mode-->
1393 <term><anchor id="tools-highlighting"/><menuchoice>
1394 <guimenu>Tools</guimenu>
1395 <guisubmenu>Highlighting</guisubmenu></menuchoice></term>
1396 <listitem>
1397 <para>Choose the Highlighting scheme you prefer for the active document. This
1398 overwrites the global highlighting mode set in <menuchoice>
1399 <guimenu>Settings</guimenu>
1400 <guimenuitem>Configure
1401 Editor...</guimenuitem></menuchoice> for your current document only.</para>
1402 </listitem>
1403 </varlistentry>
1405 <varlistentry><!-- only in power mode-->
1406 <term><anchor id="tools-indentation"/><menuchoice>
1407 <guimenu>Tools</guimenu>
1408 <guisubmenu>Indentation</guisubmenu></menuchoice></term>
1409 <listitem>
1410 <para>Choose the style of indentation you want for your active document.
1411 This overwrites the global indentation mode set in <menuchoice>
1412 <guimenu>Settings</guimenu>
1413 <guimenuitem>Configure
1414 Editor...</guimenuitem></menuchoice> for your current document only.</para>
1415 </listitem>
1416 </varlistentry>
1418 <varlistentry><!-- only in power mode-->
1419 <term><anchor id="tools-encoding"/><menuchoice>
1420 <guimenu>Tools</guimenu>
1421 <guisubmenu>Encoding</guisubmenu></menuchoice></term>
1422 <listitem>
1423 <para>You can overwrite the default encoding set in <menuchoice>
1424 <guimenu>Settings</guimenu>
1425 <guimenuitem>Configure
1426 Editor...</guimenuitem></menuchoice> in the <guilabel>Open/Save</guilabel> tab
1427 to set a different encoding for your current document. The encoding you
1428 set here will be only valid for your current document.</para>
1429 </listitem>
1430 </varlistentry>
1432 <varlistentry><!-- only in power mode-->
1433 <term><anchor id="tools-end-of-line"/><menuchoice>
1434 <guimenu>Tools</guimenu>
1435 <guisubmenu>End of Line</guisubmenu></menuchoice></term>
1436 <listitem>
1437 <para>Choose your preferred end of line mode for your active
1438 document. This overwrites the global end of line mode set in <menuchoice>
1439 <guimenu>Settings</guimenu>
1440 <guimenuitem>Configure
1441 Editor...</guimenuitem></menuchoice> for your current document only.</para>
1442 </listitem>
1443 </varlistentry>
1445 <varlistentry>
1446 <term><menuchoice>
1447 <shortcut>
1448 <keycombo action="simul">&Ctrl;<keycap>Space</keycap></keycombo>
1449 </shortcut>
1450 <guimenu>Tools</guimenu>
1451 <guimenuitem>Invoke Code Completion</guimenuitem>
1452 </menuchoice></term>
1453 <listitem>
1454 <para>Manually invoke command completion, usually by using a shortcut bound to this action.</para>
1455 </listitem>
1456 </varlistentry>
1458 <varlistentry>
1459 <term><anchor id="Spelling..."/><menuchoice>
1460 <guimenu>Tools</guimenu><guimenuitem>Spelling...</guimenuitem></menuchoice>
1461 </term>
1463 <listitem><para><action>This initiates the spellchecking program - a program
1464 designed to help the user catch and correct any spelling errors.</action>
1465 Clicking on this entry will start the checker and bring up the speller dialog
1466 box through which the user can control the process. There are four settings
1467 lined up vertically in the center of the dialog with their corresponding labels
1468 just to the left. Starting at the top they are:</para>
1470 <variablelist>
1471 <varlistentry>
1472 <term><guilabel>Unknown word:</guilabel></term>
1473 <listitem><para>Here, the spellchecker indicates the word currently under
1474 consideration. This happens when the checker encounters a word not in its
1475 dictionary - a file containing a list of correctly spelled words against which
1476 it compares each word in the editor.</para></listitem>
1477 </varlistentry>
1478 <varlistentry>
1479 <term><guilabel>Replace with:</guilabel></term>
1480 <listitem><para> If the checker has any similar words in its dictionary the
1481 first one will be listed here. The user can accept the suggestion, type in his
1482 or her own correction, or choose a different suggestion from the next
1483 box.</para></listitem>
1484 </varlistentry>
1485 <varlistentry>
1486 <term><guilabel>Language:</guilabel></term>
1487 <listitem><para> If you have installed multiple dictionaries, here you can
1488 select which dictionary/language should be used.</para></listitem>
1489 </varlistentry>
1490 </variablelist>
1492 <para>On the right side of the dialog box are 6 buttons that allow the user to
1493 control the spellcheck process. They are:</para>
1495 <variablelist>
1496 <varlistentry>
1497 <term><guibutton>Add to Dictionary</guibutton></term>
1498 <listitem><para>Pressing this button adds the <guilabel>Unknown word
1499 </guilabel> to the checker's dictionary. This means that in the future
1500 the checker will always consider this word to be correctly
1501 spelled.</para></listitem>
1502 </varlistentry>
1503 <varlistentry>
1504 <term><guilabel>Suggest</guilabel></term>
1505 <listitem><para> The checker may list here a number of possible replacements for
1506 the word under consideration. Clicking on any one of the suggestions will cause
1507 that word to be entered in the <guilabel>Replace with</guilabel> box,
1508 above.</para></listitem>
1509 </varlistentry>
1510 <varlistentry>
1511 <term><guibutton>Replace</guibutton></term>
1512 <listitem><para> This button has the checker replace the word under
1513 consideration in the document with the word in the
1514 <guilabel>Replace with</guilabel> box.</para></listitem>
1515 </varlistentry>
1516 <varlistentry>
1517 <term><guibutton>Replace All</guibutton></term>
1518 <listitem><para> This button causes the checker to replace not only the current
1519 <guilabel>Unknown word:</guilabel> but to automatically make the same
1520 substitution for any other occurrences of this <guilabel>Unknown word</guilabel>
1521 in the document.</para></listitem>
1522 </varlistentry>
1523 <varlistentry>
1524 <term><guibutton>Ignore</guibutton></term>
1525 <listitem><para>Activating this button will have the checker move on without
1526 making any changes.</para></listitem>
1527 </varlistentry>
1528 <varlistentry>
1529 <term><guibutton>Ignore All</guibutton></term>
1530 <listitem><para> This button tells the checker to do nothing with the current
1531 <guilabel>Unknown word:</guilabel> and to pass over any other instances of
1532 the same word.</para> <note><para>This only applies to the current spellcheck
1533 run. If the checker is run again later it will stop on this same
1534 word.</para></note></listitem>
1535 </varlistentry>
1536 </variablelist>
1538 <!--<para>Located horizontally along the bottom of the spellcheck dialog is a
1539 progress bar. As the checking process proceeds the bar will fill from left to
1540 right providing a graphical representation of how far along in the document the
1541 process has reached. In addition, the progress is displayed numerically in
1542 the center of the progress bar.</para>//-->
1544 <!--<note><para>A numerical display of the spellcheck
1545 process is simultaneously displayed in the status bar of the editor. The <link
1546 linkend="show-statusbar">status bar</link> is the horizontal strip at the bottom
1547 of the editor just outside of the text entry area.</para></note>//-->
1549 <para>Three more buttons are located horizontally along the bottom of the
1550 spellcheck dialog. They are:</para>
1552 <variablelist>
1553 <varlistentry>
1554 <term><guibutton>Help</guibutton></term>
1555 <listitem><para> This invokes the &kde; help system starting at the &kappname; help
1556 pages (this document).</para></listitem>
1557 </varlistentry>
1559 <varlistentry>
1560 <term><guibutton>Finished</guibutton></term>
1561 <listitem><para> This button ends the spellcheck process, and returns to the
1562 document.</para></listitem>
1563 </varlistentry>
1565 <varlistentry>
1566 <term><guibutton>Cancel</guibutton></term>
1567 <listitem><para> This button cancels the spellcheck process, all modifications
1568 are reverted, and you will return to your document.</para></listitem>
1569 </varlistentry>
1570 </variablelist>
1571 </listitem>
1572 </varlistentry>
1573 </variablelist>
1575 <variablelist>
1576 <varlistentry>
1577 <term><anchor id="tools-spelling-from-cursor"/><menuchoice>
1578 <guimenu>Tools</guimenu>
1579 <guimenuitem>Spelling (from cursor)...</guimenuitem></menuchoice></term>
1580 <listitem>
1581 <para>This initiates the spellchecking program but it starts where your cursor
1582 is instead of at the beginning of the document.</para>
1583 </listitem>
1584 </varlistentry>
1586 <varlistentry>
1587 <term><anchor id="tools-spellcheck-selection"/><menuchoice>
1588 <guimenu>Tools</guimenu>
1589 <guimenuitem>Spellcheck Selection...</guimenuitem></menuchoice></term>
1590 <listitem>
1591 <para>Spellchecks the current selection.</para>
1592 </listitem>
1593 </varlistentry>
1595 <varlistentry>
1596 <term><anchor id="indent"/><menuchoice>
1597 <shortcut>
1598 <keycombo action="simul">&Ctrl;<keycap>I</keycap></keycombo>
1599 </shortcut>
1600 <guimenu>Tools</guimenu><guimenuitem>Indent</guimenuitem></menuchoice></term>
1601 <listitem>
1602 <para>This increases the paragraph's indentation by one step. The size of the
1603 step depends on the <link linkend="pref-edit-indent"> indentation
1604 settings</link>.</para>
1605 </listitem>
1606 </varlistentry>
1608 <varlistentry>
1609 <term><anchor id="unindent"/><menuchoice>
1610 <shortcut>
1611 <keycombo action="simul">&Ctrl;&Shift;<keycap>I</keycap></keycombo>
1612 </shortcut>
1613 <guimenu>Tools</guimenu><guimenuitem>Unindent</guimenuitem></menuchoice></term>
1614 <listitem>
1615 <para>This reduces the paragraph's indentation by one step. The size of the step
1616 depends on the <link linkend="pref-edit-indent"> indentation settings</link>.</para>
1618 </listitem>
1619 </varlistentry>
1621 <varlistentry>
1622 <term><anchor id="cleanindent"/><menuchoice>
1623 <guimenu>Tools</guimenu><guimenuitem>Clean
1624 Indentation</guimenuitem></menuchoice></term> <listitem>
1625 <para>This cleans the indentation for the current selection or for the
1626 line the cursor is currently in. Cleaning the indentation ensures that
1627 all your selected text follows the indentation mode you choose.</para>
1628 </listitem>
1629 </varlistentry>
1631 <varlistentry>
1632 <term><anchor id="tools-align"/><menuchoice>
1633 <guimenu>Tools</guimenu>
1634 <guimenuitem>Align</guimenuitem>
1635 </menuchoice></term>
1636 <listitem>
1637 <para>Causes a realign of the current line or selected lines using the
1638 indentation mode and indentation settings in the document.</para>
1639 </listitem>
1640 </varlistentry>
1642 <varlistentry><!-- only in power mode-->
1643 <term><menuchoice>
1644 <shortcut>
1645 <keycombo action="simul">&Ctrl;<keycap>D</keycap></keycombo>
1646 </shortcut>
1647 <guimenu>Tools</guimenu>
1648 <guimenuitem>Comment</guimenuitem>
1649 </menuchoice></term>
1650 <listitem><para>This adds one space to the beginning of the line
1651 where the text cursor is located or to the beginning of any
1652 selected lines.</para>
1653 </listitem>
1654 </varlistentry>
1656 <varlistentry><!-- only in power mode-->
1657 <term><menuchoice>
1658 <shortcut>
1659 <keycombo action="simul">&Ctrl;&Shift;<keycap>D</keycap></keycombo>
1660 </shortcut>
1661 <guimenu>Tools</guimenu>
1662 <guimenuitem>Uncomment</guimenuitem>
1663 </menuchoice></term>
1664 <listitem><para>This removes one space (if any exist) from the beginning of the
1665 line where the text cursor is located or from the beginning of any
1666 selected lines.</para></listitem>
1667 </varlistentry>
1669 <varlistentry>
1670 <term><menuchoice>
1671 <shortcut>
1672 <keycombo action="simul">&Ctrl;<keycap>U</keycap></keycombo>
1673 </shortcut>
1674 <guimenu>Tools</guimenu>
1675 <guimenuitem>Uppercase</guimenuitem>
1676 </menuchoice></term>
1677 <listitem><para>Put the selected text or the letter after the cursor in
1678 uppercase.</para></listitem>
1679 </varlistentry>
1681 <varlistentry>
1682 <term><menuchoice>
1683 <shortcut>
1684 <keycombo action="simul">&Ctrl;&Shift;<keycap>U</keycap></keycombo>
1685 </shortcut>
1686 <guimenu>Tools</guimenu>
1687 <guimenuitem>Lowercase</guimenuitem>
1688 </menuchoice></term>
1689 <listitem><para>Put the selected text or the letter after the cursor in
1690 lowercase.</para></listitem>
1691 </varlistentry>
1693 <varlistentry>
1694 <term><menuchoice>
1695 <shortcut>
1696 <keycombo action="simul">&Alt;&Ctrl;<keycap>U</keycap></keycombo>
1697 </shortcut>
1698 <guimenu>Tools</guimenu>
1699 <guimenuitem>Capitalize</guimenuitem>
1700 </menuchoice></term>
1701 <listitem><para>Capitalize the selected text or the current
1702 word.</para></listitem>
1703 </varlistentry>
1705 <varlistentry>
1706 <term><menuchoice>
1707 <shortcut>
1708 <keycombo action="simul">&Ctrl;<keycap>J</keycap></keycombo>
1709 </shortcut>
1710 <guimenu>Tools</guimenu>
1711 <guimenuitem>Join Lines</guimenuitem>
1712 </menuchoice></term>
1713 <listitem><para>Joins the selected lines, or the current line and the line below
1714 with one white space character as a separator. Leading/trailing white space on
1715 joined lines is removed in the affected ends.</para></listitem>
1716 </varlistentry>
1718 <varlistentry>
1719 <term><menuchoice>
1720 <guimenu>Tools</guimenu>
1721 <guimenuitem>Word Wrap Document</guimenuitem>
1722 </menuchoice></term>
1723 <listitem><para>Apply static word wrapping on all the document. That means that
1724 a new line of text will automatically start when the current
1725 line exceeds the length specified by the <guilabel>Wrap words at</guilabel> option
1726 in the Editing tab in <menuchoice>
1727 <guimenu>Settings</guimenu><guimenuitem>Configure
1728 Editor...</guimenuitem></menuchoice></para></listitem>
1729 </varlistentry>
1731 </variablelist>
1732 <para>Menu items for the selected <link linkend="pref-plugins">plugins</link>
1733 are displayed at the end of this menu
1734 </para>
1735 <!--
1736 plugins
1737 <guimenu>Tools</guimenu><guimenuitem>Insert File...</guimenuitem>
1738 <guimenu>Tools</guimenu><guimenuitem>Word Completion</guimenuitem>
1741 </sect1>
1743 <sect1 id="settings">
1744 <!-- This is also valid for kates menu settings,
1745 only the items Show Toolbar and Show Statusbar are swapped and Configure kate is the last item-->
1746 <title>The <guimenu>Settings</guimenu> Menu</title>
1748 <variablelist>
1749 <varlistentry>
1750 <term><anchor id="show-statusbar"/><menuchoice>
1751 <guimenu>Settings</guimenu><guimenuitem>Show
1752 Statusbar</guimenuitem></menuchoice></term>
1753 <listitem>
1754 <para>When checked, this displays a small bar at the bottom of the editor
1755 containing information about the status of the current document. When unchecked
1756 the status bar is hidden.</para>
1757 </listitem>
1758 </varlistentry>
1760 <varlistentry>
1761 <term><anchor id="show-toolbar"/><menuchoice>
1762 <guimenu>Settings</guimenu>
1763 <guimenuitem>Show Toolbar</guimenuitem>
1764 </menuchoice>
1765 </term>
1766 <listitem>
1767 <para>
1768 When checked, this displays a movable toolbar containing buttons used to
1769 initiate frequently used commands. When unchecked the toolbar is hidden.
1770 </para>
1771 </listitem>
1772 </varlistentry>
1774 <varlistentry>
1775 <term><anchor id="show-path"/><menuchoice>
1776 <guimenu>Settings</guimenu><guimenuitem>Show
1777 Path</guimenuitem></menuchoice></term>
1778 <listitem>
1779 <para>When selected, this displays in the titlebar the path (its location in the
1780 file system) of the current document. When unchecked the path is hidden.</para>
1781 </listitem>
1782 </varlistentry>
1784 <varlistentry>
1785 <term><anchor id="preferences"/><menuchoice>
1786 <guimenu>Settings</guimenu>
1787 <guimenuitem>Configure Editor...</guimenuitem> <!-- in kate Configure &kate; ... -->
1788 </menuchoice>
1789 </term>
1790 <listitem>
1791 <para>
1792 This menu item opens a dialog whereby several different <link
1793 linkend="pref-dialog">settings</link> may be adjusted.
1794 </para>
1795 </listitem>
1796 </varlistentry>
1797 <!-- can't see it in 4.1 0r 4.2, lueck
1798 <varlistentry>
1799 <term><anchor id="choose-editor"/><menuchoice>
1800 <guimenu>Settings</guimenu>
1801 <guimenuitem>Choose Editor...</guimenuitem>
1802 </menuchoice>
1803 </term>
1804 <listitem>
1805 <para>
1806 Choose the default text editing component that you wish to use in &kwrite;. You
1807 can choose <guilabel>System Default</guilabel>, <guilabel>Embedded
1808 Advanced Text Editor</guilabel> or <guilabel>&Qt; Designer Based
1809 Text Editor</guilabel> (note that the &Qt; Designer Based Text Editor is
1810 only available if you have KDevelop installed on your system). If you choose
1811 <guilabel>System Default</guilabel>, &kwrite; will honor your changes in
1812 &kcontrolcenter;. All other choices will override that setting.
1813 </para>
1814 </listitem>
1815 </varlistentry>
1817 <varlistentry>
1818 <term><anchor id="configure-keybindings"/><menuchoice>
1819 <guimenu>Settings</guimenu><guimenuitem>Configure
1820 Shortcuts...</guimenuitem></menuchoice></term>
1821 <listitem>
1822 <para>This command opens a dialog box whereby the <link
1823 linkend="keybindings">shortcuts</link> may be changed.
1824 A display window shows the list of commands (actions) and their assigned
1825 shortcuts, alternates and global shortcuts. The <guilabel>Search</guilabel> line above
1826 the list window is used to filter the shortcut list.
1827 Selecting an action with a &LMB; click (either on the action name or shortcut cell
1828 for the default shortcut or on the alternate cell for an alternative) displays the
1829 <guilabel>Default</guilabel> and <guilabel>Custom</guilabel> radio buttons
1830 below the selected action.</para>
1831 <para>To assign or change a shortcut click on the <guilabel>None</guilabel> button. Its
1832 label changes then to <guilabel>Input</guilabel>, now press the new key combination
1833 for the action.</para>
1834 <para>For example, with the <guilabel>About &kde;</guilabel> action selected in the display
1835 window, press the &Ctrl;, &Alt; and the <keycap>K</keycap> key on the keyboard. This would
1836 mean that anytime you hold down the &Ctrl; and &Alt;
1837 buttons and pressed <keycap>K</keycap> (while using
1838 &kappname;) the <guilabel>About &kde;</guilabel> display box would be called. </para>
1839 <para>Use the buttons at the bottom of the dialog to set all shortcuts back to their defaults,
1840 print the shortcut list or cancel all changes. Click the <guilabel>OK</guilabel>
1841 button to close the dialog and accept all changes. </para>
1842 </listitem>
1843 </varlistentry>
1845 <varlistentry>
1846 <term><anchor id="configure-toolbars"/><menuchoice>
1847 <guimenu>Settings</guimenu><guimenuitem>Configure
1848 Toolbars...</guimenuitem></menuchoice></term>
1849 <listitem><para>This will open the dialog whereby the toolbar configuration may
1850 be changed. The user can choose which shortcut buttons should appear on the
1851 toolbar. A display window on the left lists the commands available to placed
1852 on the toolbar. A display on the right lists those commands already on the
1853 toolbar. A set of four arrow buttons between the two displays manipulates the
1854 selections. The right pointing arrow places any command selected in the left
1855 pane onto the right pane, <abbrev>i.e.</abbrev>, it is added to the toolbar.
1856 The left arrow does just the opposite, removing any action selected in the right
1857 window from the toolbar. The up and down pointing arrows change the position of
1858 an action selected in the right window which changes the position of its button
1859 in the toolbar.</para> </listitem>
1860 </varlistentry>
1862 </variablelist>
1863 </sect1>
1865 <sect1 id="help">
1866 <title>The <guimenu>Help</guimenu> Menu</title>
1868 <!-- additional "About Editor Component" + "Tip of the Day", but no "Switch Language"-->
1870 &help.menu.documentation;
1872 </sect1>
1873 </chapter>
1875 <chapter id="pref-dialog">
1876 <title>Configure &kappname;</title>
1878 <para>
1879 Selecting <menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure
1880 Editor...</guimenuitem></menuchoice> from the menu brings up the
1881 <guilabel>Configure Editor</guilabel> dialog box. This dialog can be
1882 used to alter a number of different settings. The settings available
1883 for change vary according to which category the user chooses from a
1884 vertical list on the left side of the dialog. By means of three buttons
1885 along the bottom of the box the user can control the process.
1886 </para>
1887 <!-- This is also valid for kate Editor Component settings, both kwrite and kate use the same katepart-->
1888 <para>
1889 You may invoke the <guilabel>Help</guilabel> system, accept the
1890 current settings and close the dialog by means of the
1891 <guibutton>OK</guibutton> button, or <guibutton>Cancel</guibutton> the
1892 process. The categories <guilabel>Appearance</guilabel>,
1893 <guilabel>Fonts &amp; Colors</guilabel>, <guilabel>Editing</guilabel>,
1894 <guilabel>Open/Save</guilabel>, <guilabel>Shortcuts</guilabel> and
1895 <guilabel>Extensions</guilabel> are detailed below.
1896 </para>
1898 <sect1 id="appearance">
1899 <title>Appearance</title>
1901 <variablelist>
1902 <varlistentry>
1903 <term><guilabel>Word Wrap</guilabel></term>
1904 <listitem>
1905 <variablelist>
1906 <varlistentry id="appearance-settings">
1907 <term><guilabel>Dynamic word wrap</guilabel></term>
1908 <listitem><para>If this option is checked, the text lines
1909 will be wrapped at the view border on the screen.</para></listitem>
1910 </varlistentry>
1911 <varlistentry>
1912 <term><guilabel>Dynamic word wrap indicators (if applicable)</guilabel></term>
1913 <listitem><para>Choose when the Dynamic word wrap indicators
1914 should be displayed.
1915 </para></listitem></varlistentry>
1916 <varlistentry>
1917 <term><guilabel>Align dynamically wrapped lines
1918 to indentation depth:
1919 </guilabel></term>
1920 <listitem><para>Enables the start of dynamically wrapped
1921 lines to be aligned vertically to the indentation level of the first
1922 line. This can help to make code and markup more
1923 readable.</para><para>Additionally, this allows you to
1924 set a maximum width of the screen, as a percentage,
1925 after which dynamically wrapped lines will no longer be vertically aligned.
1926 For example, at 50%, lines whose indentation levels are deeper than 50% of the
1927 width of the screen will not have vertical alignment applied to subsequent
1928 wrapped lines.</para></listitem>
1929 </varlistentry>
1930 </variablelist>
1931 </listitem>
1932 </varlistentry>
1934 <varlistentry>
1935 <term><guilabel>Borders</guilabel></term>
1936 <listitem>
1937 <variablelist>
1938 <varlistentry>
1939 <term><guilabel>Show folding markers (if available)
1940 </guilabel></term>
1941 <listitem><para>If this option is checked, the current view will display marks
1942 for code folding, if code folding is available.</para></listitem>
1943 </varlistentry>
1944 <varlistentry>
1945 <term><guilabel>Show icon border
1946 </guilabel></term>
1947 <listitem><para>If this is checked, you will see an icon border on the left
1948 hand side. The icon border shows bookmark signs for instance.</para></listitem>
1949 </varlistentry>
1950 <varlistentry>
1951 <term><guilabel>Show line numbers
1952 </guilabel></term>
1953 <listitem><para>If this is checked, you will see line numbers on the left
1954 hand side.</para></listitem>
1955 </varlistentry>
1956 <varlistentry>
1957 <term><guilabel>Show scrollbar marks
1958 </guilabel></term>
1959 <listitem><para>If this option is checked the current view
1960 will show marks on the vertical scrollbar. These marks will
1961 for instance show bookmarks.</para></listitem>
1962 </varlistentry>
1963 </variablelist>
1964 </listitem>
1965 </varlistentry>
1967 <varlistentry>
1968 <term><guilabel>Sort Bookmarks Menu
1969 </guilabel></term>
1970 <listitem><para>These options are only displayed, if <guilabel>Enable Power User Mode
1971 (&kde; 3 mode)</guilabel> in the next section is checked.</para>
1972 <para>
1973 <variablelist>
1974 <varlistentry>
1975 <term><guilabel>By position
1976 </guilabel></term>
1977 <listitem><para>The bookmarks will be ordered by the line
1978 numbers they are placed at.</para></listitem>
1979 </varlistentry>
1980 <varlistentry>
1981 <term><guilabel>By creation
1982 </guilabel></term>
1983 <listitem><para>Each new bookmark will be added to the bottom,
1984 independently from where it is placed in the document.</para></listitem>
1985 </varlistentry>
1986 </variablelist>
1987 </para></listitem>
1988 </varlistentry>
1990 <varlistentry>
1991 <term><guilabel>Advanced
1992 </guilabel></term>
1993 <listitem><para>
1994 <variablelist>
1995 <varlistentry>
1996 <term><guilabel>Enable Power User Mode (&kde; 3 mode)
1997 </guilabel></term>
1998 <listitem><para>Switch between simple and advanced mode.
1999 Changing this mode affects only newly opened / created documents.
2000 In &kappname; a restart is recommended.</para></listitem>
2001 </varlistentry>
2002 <varlistentry>
2003 <term><guilabel>Show identation lines
2004 </guilabel></term>
2005 <listitem><para>If this is checked, the editor will display
2006 vertical lines to help identifying indent lines.</para></listitem>
2007 </varlistentry>
2008 <varlistentry>
2009 <term><guilabel>Highlight range between selected brackets
2010 </guilabel></term>
2011 <listitem><para>If this is enabled, the range between the selected matching brackets will be highlighted.</para></listitem>
2012 </varlistentry>
2013 </variablelist>
2014 </para></listitem>
2015 </varlistentry>
2017 </variablelist>
2018 </sect1>
2020 <sect1 id="prefcolors">
2021 <title>Fonts &amp; Colors</title>
2023 <para>This section of the dialog lets you configure all fonts and colors in
2024 any color scheme you have, as well creating new schemes or deleting existing
2025 ones. Each scheme has settings for colors, fonts and normal and highlight text
2026 styles.
2027 </para>
2029 <para>&kappname; will preselect the currently active scheme for you, if you want to
2030 work on a different scheme start by selecting that from the
2031 <guilabel>Schema</guilabel> combobox. With the <guibutton>New</guibutton> and <guibutton>Delete</guibutton>
2032 button you can create a new scheme or delete existing ones.</para>
2033 <para>At the bottom of the page you can select the <guilabel>Default schema for &kappname;</guilabel>.</para>
2035 <sect2 id="prefcolors-colors">
2036 <title>Colors</title>
2038 <variablelist>
2039 <varlistentry id="prefcolors-colors-text-background">
2040 <term><guilabel>Text Area Background</guilabel></term>
2041 <listitem>
2043 <variablelist>
2045 <varlistentry id="pref-colors-normal-text">
2046 <term><guilabel>Normal text</guilabel></term>
2047 <listitem><para>This is the default background for the editor area, it will be
2048 the dominant color on the editor area.</para></listitem>
2049 </varlistentry>
2051 <varlistentry id="pref-colors-selected-text">
2052 <term><guilabel>Selected text</guilabel></term>
2053 <listitem><para>This is the background for selected text. The default is
2054 the global selection color, as set in your &kde; color preferences.
2055 </para></listitem>
2056 </varlistentry>
2058 <varlistentry id="pref-colors-current-line">
2059 <term><guilabel>Current line</guilabel></term>
2060 <listitem><para>Set the color for the current line. Setting this a bit different
2061 from the Normal text background helps to keep focus on the current line.
2062 </para></listitem>
2063 </varlistentry>
2065 <varlistentry id="pref-colors-marks">
2066 <term><guilabel>Bookmark</guilabel></term>
2067 <listitem><para>This combobox lets you set overlay colors for various mark types.
2068 The color is mixed into the background color of a marked line, so that a line
2069 with more marks or a marked line that is current has a background that is a mix
2070 of more colors. The mark colors are also used if you enable display of scrollbar
2071 marks.</para></listitem>
2072 </varlistentry>
2074 </variablelist>
2075 </listitem>
2076 </varlistentry>
2078 <varlistentry id="prefcolors-colors-other-elements">
2079 <term><guilabel>Additional Elements</guilabel></term>
2080 <listitem>
2081 <variablelist>
2082 <varlistentry>
2083 <term><guilabel>Left border background</guilabel></term>
2084 <listitem><para>This color is used for the marks, line numbers and folding
2085 marker borders in the left side of the editor view when they are displayed.
2086 </para></listitem>
2087 </varlistentry>
2088 <varlistentry>
2089 <term><guilabel>Line numbers</guilabel></term>
2090 <listitem><para>This color is used to draw the line numbers on the left side of
2091 the view when displayed.</para></listitem>
2092 </varlistentry>
2093 <varlistentry>
2094 <term><guilabel>Bracket highlight</guilabel></term>
2095 <listitem><para>This color is used to draw the background of matching brackets.
2096 </para></listitem>
2097 </varlistentry>
2098 <varlistentry>
2099 <term><guilabel>Word wrap markers</guilabel></term>
2100 <listitem><para>This color is used to draw a pattern to the left of dynamically
2101 wrapped lines when those are aligned vertically, as well as for the static word
2102 wrap marker.</para></listitem>
2103 </varlistentry>
2104 <varlistentry>
2105 <term><guilabel>Tab and space markers</guilabel></term>
2106 <listitem><para>This color is used to draw white space indicators when enabled.
2107 </para></listitem>
2108 </varlistentry>
2109 </variablelist>
2110 </listitem>
2111 </varlistentry>
2113 </variablelist>
2114 </sect2>
2116 <sect2 id="prefcolors-fonts">
2117 <title>Fonts</title>
2118 <para>
2119 Here you can choose the font for the schema. You can choose from
2120 any font available on your system, and set a default size. A sample text
2121 displays at the bottom of the dialog, so you can see the effect of your choices.
2122 </para>
2123 </sect2>
2125 <sect2 id="prefcolors-normal-text-styles">
2126 <title>Normal Text Styles</title>
2127 <para>The normal text styles are inherited by the highlight text styles,
2128 allowing the editor to present text in a very consistent way, for example comment
2129 text is using the same style in allmost all of the text formats that &kappname; can
2130 highlight.</para>
2131 <para>The name in the list of styles is using the style configured for
2132 the item, providing you with an immediate preview when configuring a style.
2133 </para>
2134 <para>Each style lets you select common attributes as well as foreground
2135 and background colors. To unset a background color, rightclick to use the
2136 context menu.</para>
2137 </sect2>
2139 <sect2 id="prefcolors-highlighting-text-styles">
2140 <title>Highlighting Text Styles</title>
2141 <para>Here you can edit the text styles used by a specific highlight definition.
2142 The editor preselects the highlight used by your current document. To work on a
2143 different highlight, select one in the <guilabel>Highlight</guilabel> combobox
2144 above the style list.
2145 </para>
2146 <para>The name in the list of styles is using the style configured for
2147 the item, providing you with an immediate preview when configuring a style.
2148 </para>
2149 <para>Each style lets you select common attributes as well as foreground
2150 and background colors. To unset a background color, rightclick to use the
2151 context menu. In addition you can see if a style is equal to the default style
2152 used for the item, and set it to that if not.</para>
2153 <para>You will notice that many highlights contain other highlights represented
2154 by groups in the style list. For example most highlights import the Alert
2155 highlight, and many source code formats imports the Doxygen highlight. Editing
2156 colors in those groups only affects the styles when used in the edited highlight
2157 format.
2158 </para>
2159 </sect2>
2161 </sect1>
2163 <sect1 id="pref-edit">
2164 <title>Editing</title>
2166 <sect2 id="pref-edit-general">
2167 <title>General</title>
2168 <variablelist>
2170 <varlistentry>
2171 <term><guilabel>Tabulators</guilabel></term>
2172 <listitem>
2173 <variablelist>
2174 <varlistentry>
2175 <term><guilabel>Insert spaces instead of tabulators</guilabel></term>
2176 <listitem>
2177 <para>When this is enabled the editor will insert a calculated number of spaces
2178 according to the position in the text and the <option>tab-width</option> setting
2179 when you press the &Tab; key.</para>
2180 </listitem>
2181 </varlistentry>
2182 <varlistentry>
2183 <term><guilabel>Show tabulators</guilabel></term>
2184 <listitem>
2185 <para>When this is enabled &kappname; will display a small dot as a visual
2186 representation of tabulator characters.</para>
2187 <note><para>This also causes dots to be drawn to indicate trailing white space.
2188 This will be fixed in a future version of &kappname;</para></note>
2189 </listitem>
2190 </varlistentry>
2191 <varlistentry>
2192 <term id="pref-tab-width"><guilabel>Tab width</guilabel></term> <listitem><para>If the
2193 <link linkend="pref-word-wrap">Insert spaces instead of tabulators</link>
2194 option is selected this entry determines the number of
2195 spaces with which the editor will automatically replace
2196 tabs.</para></listitem>
2197 </varlistentry>
2198 </variablelist>
2199 </listitem>
2200 </varlistentry>
2202 <varlistentry>
2203 <term id="pref-word-wrap"><guilabel>Static Word Wrap</guilabel></term>
2204 <listitem><para>
2205 Word wrap is a feature that causes the editor to automatically start a new line
2206 of text and move (wrap) the cursor to the beginning of that new line. &kappname;
2207 will automatically start a new line of text when the current line reaches the
2208 length specified by the <link linkend="pref-wrap-words-at">Wrap Words
2209 At:</link> option.</para>
2210 <variablelist>
2211 <varlistentry>
2212 <term><guilabel>Enable static word wrap</guilabel></term>
2213 <listitem>
2214 <para>Turns static word wrap on or off.</para>
2215 </listitem>
2216 </varlistentry>
2217 <varlistentry>
2218 <term><guilabel>Show static word wrap markers
2219 (if applicable)</guilabel></term>
2220 <listitem>
2221 <para>If this option is checked, a vertical line will be drawn at the word wrap
2222 column as defined in the <menuchoice> <guimenu>Settings</guimenu>
2223 <guimenuitem>Configure Editor...</guimenuitem></menuchoice> in the Editing tab.
2224 Please note that the word wrap marker is only drawn if you use a fixed pitch
2225 font.</para>
2226 </listitem>
2227 </varlistentry>
2228 <varlistentry>
2229 <term id="pref-wrap-words-at"><guilabel>Wrap words at:</guilabel></term>
2230 <listitem>
2231 <para>If the <link linkend="pref-word-wrap">Enable static word wrap</link> option is selected
2232 this entry determines the length (in characters) at which the editor will
2233 automatically start a new line.</para>
2234 </listitem>
2235 </varlistentry>
2236 </variablelist>
2237 </listitem>
2238 </varlistentry>
2240 <varlistentry>
2241 <term ><guilabel>Misc</guilabel></term>
2242 <listitem>
2243 <variablelist>
2244 <varlistentry>
2245 <term><guilabel>Remove trailing spaces</guilabel></term>
2246 <listitem><para>&kappname; will automatically eliminate extra spaces
2247 at the ends of lines of text.</para></listitem> </varlistentry>
2249 <varlistentry>
2250 <term><guilabel>Highlight trailing spaces</guilabel></term>
2251 <listitem><para>&kappname; will highlight extra spaces
2252 at the ends of lines of text.</para></listitem> </varlistentry>
2254 <varlistentry>
2255 <term><guilabel>Auto brackets</guilabel></term> <listitem><para>When
2256 the user types a left bracket ([, (, or {) &kappname; automatically enters the
2257 right bracket (}, ), or ]) to the right of the cursor.</para></listitem>
2258 </varlistentry>
2259 </variablelist>
2260 </listitem>
2261 </varlistentry>
2263 </variablelist>
2264 </sect2>
2266 <sect2 id="pref-edit-cursor-selection">
2267 <title>Cursor &amp; Selection</title>
2269 <variablelist>
2271 <varlistentry>
2272 <term><guilabel>Text Cursor Movement</guilabel></term>
2273 <listitem>
2274 <variablelist>
2275 <varlistentry>
2276 <term><guilabel>Smart home and smart end</guilabel></term>
2277 <listitem>
2278 <para>When selected, pressing the home key will cause the cursor to
2279 skip white space and go to the start of a line's text.</para>
2280 </listitem>
2281 </varlistentry>
2282 <varlistentry>
2283 <term><guilabel>Wrap cursor</guilabel></term>
2284 <listitem>
2285 <para>When on, moving the insertion cursor using the <emphasis
2286 role="bold">Left</emphasis> and <emphasis role="bold">Right</emphasis> keys will
2287 go on to previous/next line at beginning/end of the line, similar to most
2288 editors.</para><para>When off, the insertion cursor cannot be moved left of the
2289 line start, but it can be moved off the line end, which can be very handy for
2290 programmers. When this option is chosen, moving the cursor with the arrow keys
2291 off the end of a line (to the right) causes it to jump down to the beginning of
2292 the next line. Likewise when the cursor is moved past the beginning of a line
2293 (to the left) it jumps up to the end of the preceding line. When this option is
2294 not selected, moving the cursor right past the end of a line merely causes it to
2295 continue horizontally in the same line and trying to move it left past the
2296 beginning does nothing.</para>
2297 </listitem>
2298 </varlistentry>
2299 <varlistentry>
2300 <term><guilabel>PageUp/PageDown moves cursor</guilabel></term>
2301 <listitem>
2302 <para>This option changes the behavior of the cursor when the user presses
2303 the <keycap>Page Up</keycap> or <keycap>Page Down</keycap> key. If unselected
2304 the text cursor will maintain its relative position within the visible text in
2305 &kappname; as new text becomes visible as a result of the operation. So if the
2306 cursor is in the middle of the visible text when the operation occurs it will
2307 remain there (except when one reaches the beginning or end.) With this option
2308 selected, the first key press will cause the cursor to move to either the top or
2309 bottom of the visible text as a new page of text is displayed.</para>
2310 </listitem>
2311 </varlistentry>
2312 <varlistentry>
2313 <term><guilabel>Autocenter cursor (lines):</guilabel></term>
2314 <listitem>
2315 <para>Sets the number of lines to maintain visible above and below the cursor
2316 when possible.</para>
2317 </listitem>
2318 </varlistentry>
2319 </variablelist>
2320 </listitem>
2321 </varlistentry>
2323 <varlistentry>
2324 <term><guilabel>Text Selection Mode</guilabel></term>
2325 <listitem>
2326 <variablelist>
2327 <varlistentry>
2328 <term><guilabel>Normal</guilabel></term>
2329 <listitem>
2330 <para>Selections will be overwritten by typed text and will be lost on
2331 cursor movement.</para>
2332 </listitem>
2333 </varlistentry>
2334 <varlistentry>
2335 <term><guilabel>Persistent</guilabel></term>
2336 <listitem>
2337 <para>Selections will stay even after cursor movement and typing.</para>
2338 </listitem>
2339 </varlistentry>
2340 </variablelist>
2341 </listitem>
2342 </varlistentry>
2344 </variablelist>
2345 </sect2>
2347 <sect2 id="pref-edit-indent">
2348 <title>Indentation</title>
2350 <variablelist>
2352 <varlistentry>
2353 <term><guilabel>Default Indentation mode:</guilabel></term>
2354 <listitem>
2355 <para>Select the automatic indentation mode you want to use as default. It is
2356 strongly recommended to use <userinput>None</userinput> or
2357 <userinput>Normal</userinput> here, and use filetype configurations to set other
2358 indentation modes for text formats like C/C++ code or &XML;.</para>
2359 </listitem>
2360 </varlistentry>
2362 <varlistentry>
2363 <term><guilabel>Indentation Properties</guilabel></term>
2364 <listitem>
2365 <variablelist>
2366 <varlistentry>
2367 <term><guilabel>Indentation width:</guilabel></term>
2368 <listitem>
2369 <para>The indentation width is the number of spaces which is used to indent a line.
2370 If the option <guilabel>Insert spaces instead of tabulators</guilabel>
2371 on the <guilabel>General</guilabel> tab in the <guilabel>Editing</guilabel>
2372 page is disabled, a &Tab; character is inserted
2373 if the indentation is divisible by the tab width.</para>
2374 </listitem>
2375 </varlistentry>
2376 <varlistentry>
2377 <term><guilabel>Keep Extra Spaces</guilabel></term>
2378 <listitem><para>If this option is disabled, changing the indentation
2379 level aligns a line to a multiple of the width specified in
2380 <guilabel>Indentation width</guilabel>.</para></listitem>
2381 </varlistentry>
2382 <varlistentry>
2383 <term><guilabel>Adjust indentation of code pasted from the clipboard</guilabel></term>
2384 <listitem>
2385 <para>If this option is selected, pasted code from the clipboard is indented.
2386 Triggering the <guimenuitem>Undo</guimenuitem> action removes the indentation.</para>
2387 </listitem>
2388 </varlistentry>
2389 </variablelist>
2390 </listitem>
2391 </varlistentry>
2393 <varlistentry>
2394 <term><guilabel>Indentation Actions</guilabel></term>
2395 <listitem>
2396 <variablelist>
2397 <varlistentry>
2398 <term><guilabel>Backspace key in leading blank space unindents</guilabel></term>
2399 <listitem>
2400 <para>If this option is selected, the <keysym>Backspace</keysym> key decreases the indentation level
2401 if the cursor is located in the leading blank space of a line.</para>
2402 </listitem>
2403 </varlistentry>
2404 <varlistentry>
2405 <term><guilabel>Tab key action (if no selection exists)</guilabel></term>
2406 <listitem>
2407 <para>
2408 If you want &Tab; to align the current line in the current code block
2409 like in emacs, make &Tab; a shortcut to the action <guimenuitem>Align</guimenuitem>.
2410 </para>
2411 <variablelist>
2412 <varlistentry>
2413 <term><guilabel>Always advance to the next tab position</guilabel></term>
2414 <listitem>
2415 <para>If this option is selected, the &Tab; key always inserts white space
2416 so that the next tab position is reached. If the option <guilabel>Insert spaces instead of tabulators</guilabel>
2417 on the <guilabel>General</guilabel> tab in the <guilabel>Editing</guilabel>
2418 page is enabled, spaces are inserted; otherwise, a single tabulator is inserted.</para>
2419 </listitem>
2420 </varlistentry>
2421 <varlistentry>
2422 <term><guilabel>Always increase indentation level</guilabel></term>
2423 <listitem>
2424 <para>If this option is selected, the &Tab; key always indents the current
2425 line by the number of character positions specified in <guilabel>Indentation width</guilabel>.</para>
2426 </listitem>
2427 </varlistentry>
2429 <varlistentry>
2430 <term><guilabel>Increase indentation level if in leading blank space</guilabel></term>
2431 <listitem>
2432 <para>If this option is selected, the &Tab; key either indents the current line
2433 or advances to the next tab position. If the insertion point is at or before the
2434 first non-space character in the line, or if there is a selection, the current line
2435 is indented by the number of character positions specified in <guilabel>Indentation width</guilabel>.
2436 If the insertion point is located after the first non-space character in the line
2437 and there is no selection, white space is inserted so that the next tab position is
2438 reached: if the option <guilabel>Insert spaces instead of tabulators</guilabel>
2439 on the <guilabel>General</guilabel> tab in the <guilabel>Editing</guilabel>
2440 page is enabled, spaces are inserted; otherwise, a single tabulator is inserted.</para>
2441 </listitem>
2442 </varlistentry>
2443 </variablelist>
2445 </listitem>
2446 </varlistentry>
2448 </variablelist>
2449 </listitem>
2450 </varlistentry>
2452 </variablelist>
2453 </sect2>
2455 <sect2 id="pref-edit-autocompletion">
2456 <title>Auto Completion</title>
2457 <variablelist>
2458 <varlistentry>
2459 <term><guilabel>General</guilabel></term>
2460 <listitem>
2461 <variablelist>
2462 <varlistentry>
2463 <term><guilabel>Auto Completion enabled</guilabel></term>
2464 <listitem>
2465 <para>If this is enabled, the editor will calculate the number
2466 of spaces up to the next tab position as defined by the tab width,
2467 and insert that number of spaces instead of a &Tab; character.</para>
2468 </listitem>
2469 </varlistentry>
2470 </variablelist>
2471 </listitem>
2472 </varlistentry>
2473 </variablelist>
2475 </sect2>
2477 </sect1>
2479 <sect1 id="pref-open-save">
2480 <title>Open &amp; Save</title>
2482 <sect2 id="pref-open-save-general">
2483 <title>General</title>
2485 <variablelist>
2487 <varlistentry>
2488 <term><guilabel>File Format</guilabel></term>
2489 <listitem>
2490 <variablelist>
2491 <varlistentry>
2492 <term><guilabel>Encoding:</guilabel></term>
2493 <listitem>
2494 <para>This sets the default character encoding for your files.</para>
2495 </listitem>
2496 </varlistentry>
2497 <varlistentry>
2498 <term><guilabel>End of line:</guilabel></term>
2499 <listitem>
2500 <para>Choose your preferred end of line mode for your active
2501 document. You have the choice between &UNIX;, DOS/&Windows; or Macintosh.</para>
2502 </listitem>
2503 </varlistentry>
2504 <varlistentry>
2505 <term><guilabel>Automatic end of line detection</guilabel></term>
2506 <listitem>
2507 <para>Check this if you want the editor to autodetect the end of line
2508 type. The first found end of line type will be used for the whole file.</para>
2509 </listitem>
2510 </varlistentry>
2511 </variablelist>
2512 </listitem>
2513 </varlistentry>
2515 <varlistentry>
2516 <term><guilabel>Automatic Cleanups on Load/Save</guilabel></term>
2517 <listitem>
2518 <variablelist>
2519 <varlistentry>
2520 <term><guilabel>Remove trailing spaces</guilabel></term>
2521 <listitem>
2522 <para>The editor will automatically eliminate extra spaces at the ends of lines
2523 of text while loading/saving the file.</para>
2524 </listitem>
2525 </varlistentry>
2526 </variablelist>
2527 </listitem>
2528 </varlistentry>
2530 </variablelist>
2531 </sect2>
2533 <sect2 id="pref-open-save-advanced">
2534 <title>Advanced</title>
2535 <variablelist>
2537 <varlistentry>
2538 <term><guilabel>Folder Config File</guilabel></term>
2539 <listitem>
2540 <variablelist>
2541 <varlistentry>
2542 <term><guilabel>Search depth for config file:</guilabel></term>
2543 <listitem>
2544 <para>The editor will search the given number of folder levels upwards
2545 for &kappname; config file and load the settings line from it.</para>
2546 </listitem>
2547 </varlistentry>
2548 </variablelist>
2549 </listitem>
2550 </varlistentry>
2552 <varlistentry>
2553 <term><guilabel>Backup on Save</guilabel></term>
2554 <listitem><para>Backing up on save will cause &kappname; to copy the disk file to
2555 &lt;prefix&gt;&lt;filename&gt;&lt;suffix&gt; before saving changes.
2556 The suffix defaults to <emphasis role="bold">~</emphasis> and prefix is empty by
2557 default. </para>
2558 <variablelist>
2559 <varlistentry>
2560 <term><guilabel>Local files</guilabel></term>
2561 <listitem>
2562 <para>Check this if you want backups of local files when
2563 saving.</para>
2564 </listitem>
2565 </varlistentry>
2566 <varlistentry>
2567 <term><guilabel>Remote files</guilabel></term>
2568 <listitem>
2569 <para>Check this if you want backups of remote files when saving.</para>
2570 </listitem>
2571 </varlistentry>
2572 <varlistentry>
2573 <term><guilabel>Prefix</guilabel></term>
2574 <listitem>
2575 <para>Enter the prefix to prepend to the backup file names.</para>
2576 </listitem>
2577 </varlistentry>
2578 <varlistentry>
2579 <term><guilabel>Suffix</guilabel></term>
2580 <listitem>
2581 <para>Enter the suffix to add to the backup file names.</para>
2582 </listitem>
2583 </varlistentry>
2585 </variablelist>
2586 </listitem>
2587 </varlistentry>
2589 </variablelist>
2590 </sect2>
2592 <sect2 id="pref-open-save-modes-filetypes">
2593 <title>Modes &amp; Filetypes</title>
2594 <para>This page allows you to override the default configuration for documents
2595 of specified mimetypes. When the editor loads a document, it will try if it
2596 matches the file masks or mimetypes for one of the defined filetypes, and if so
2597 apply the variables defined. If more filetypes match, the one with the highest
2598 priority will be used.
2599 </para>
2600 <variablelist>
2601 <varlistentry>
2602 <term><guilabel>Filetype:</guilabel></term>
2603 <listitem><para>The filetype with the highest priority is the one displayed in
2604 the first drop down box. If more filetypes were found, they are
2605 also listed.</para>
2606 <variablelist>
2607 <varlistentry>
2608 <term><guilabel>New</guilabel></term>
2609 <listitem><para>This is used to create a new filetype. After
2610 you click on this button, the fields below get empty and you
2611 can fill the properties you want for the new filetype.</para></listitem>
2612 </varlistentry>
2613 <varlistentry>
2614 <term><guilabel>Delete</guilabel></term>
2615 <listitem><para>To remove an existing filetype, select it from the drop down
2616 box and press the Delete button.</para></listitem>
2617 </varlistentry>
2618 </variablelist>
2619 </listitem> </varlistentry>
2621 <varlistentry>
2622 <term><guilabel>Properties of current filetype</guilabel></term>
2623 <listitem><para>The filetype with the highest priority is the one displayed in
2624 the first drop down box. If more filetypes were found, they are also
2625 listed.</para>
2626 <variablelist>
2627 <varlistentry>
2628 <term><guilabel>Name:</guilabel></term>
2629 <listitem><para>The name of the filetype will be the text of the corresponding
2630 menu item. This name is displayed in the
2631 <menuchoice><guimenu>Tools</guimenu><guimenuitem>Filetypes</guimenuitem>
2632 </menuchoice ></para></listitem>
2633 </varlistentry>
2634 <varlistentry>
2635 <term><guilabel>Section:</guilabel></term>
2636 <listitem><para>The section name is used to organize the file types in
2637 menus. This is also used in the
2638 <menuchoice><guimenu>Tools</guimenu><guimenuitem>Filetypes</guimenuitem>
2639 </menuchoice> menu.</para></listitem>
2640 </varlistentry>
2641 <varlistentry>
2642 <term><guilabel>Variables:</guilabel></term>
2643 <listitem><para>This string allows you to configure &kappname;'s settings for the
2644 files selected by this mimetype using &kappname; variables. You can set almost any
2645 configuration option, such as highlight, indent-mode, encoding,
2646 etc.</para><para>For a full list of known variables, see the
2647 manual.</para></listitem>
2648 </varlistentry>
2649 <varlistentry>
2650 <term><guilabel>Highlighting:</guilabel></term>
2651 <listitem><para>If you create a new file type, this drop down box allows you to
2652 select a filetype for highlighting.</para></listitem>
2653 </varlistentry>
2654 <varlistentry>
2655 <term><guilabel>File extensions:</guilabel></term>
2656 <listitem><para>The wildcards mask allows you to select files by filename. A
2657 typical mask uses an asterisk and the file extension, for example
2658 <filename>*.txt; *.text</filename>. The string is a semicolon-separated list of
2659 masks.</para></listitem>
2660 </varlistentry>
2661 <varlistentry>
2662 <term><guilabel>MIME types:</guilabel></term>
2663 <listitem><para>Displays a wizard that helps you easily select
2664 mimetypes.</para></listitem>
2665 </varlistentry>
2666 <varlistentry>
2667 <term><guilabel>Priority:</guilabel></term>
2668 <listitem><para>Sets a priority for this file type. If more than one file type
2669 selects the same file, the one with the highest priority will be
2670 used.</para></listitem>
2671 </varlistentry>
2672 </variablelist>
2673 </listitem> </varlistentry>
2674 <varlistentry>
2675 <term><guibutton>Download Highlighting Files...</guibutton></term>
2676 <listitem>
2677 <para>
2678 Click this button to download new or updated syntax highlight descriptions
2679 from the &kate; website.
2680 </para>
2681 </listitem>
2682 </varlistentry>
2684 </variablelist>
2685 </sect2>
2687 </sect1>
2689 <sect1 id="pref-shortcuts">
2690 <title>Shortcuts</title> <!-- this is only in 4.1 in kate and kwrite only cursor shortcuts??? -->
2691 <para>You can change here the shortcut keys configuration. Select an
2692 action and click on <guilabel>None</guilabel> next to the <guilabel>Custom</guilabel> radio button
2693 and press the key combination, if you want a different shortcut
2694 for this action.</para>
2695 <para>The search line allows you to look for a specific action and see
2696 its associated shortcut.</para>
2697 </sect1>
2699 <sect1 id="pref-plugins">
2700 <title>Extensions</title>
2701 <para>This <guilabel>Plugins</guilabel> tab lists all available plugins and you can check those you
2702 want to use. Click on the <guibutton>Information</guibutton> button to open the
2703 <guilabel>About</guilabel> dialog of this plugin.
2704 Once a plugin is checked, the
2705 <guibutton>Configure</guibutton> button is enabled and you can click it
2706 in order to configure the highlighted plugin.</para>
2708 <para>The selected plugins are available in the <guimenu>Tools</guimenu> menu.</para>
2710 <!-- Scripts tab ??-->
2711 </sect1>
2712 </chapter>
2714 <chapter id="credits">
2715 <title>Credits and Licenses</title>
2717 <para>&kwrite; Copyright 2001 by the &kate; team.</para>
2719 <para>
2720 Based on the original &kwrite;, which was Copyright 2000 by Jochen Wilhelmy
2721 <email>digisnap@cs.tu-berlin.de</email>
2722 </para>
2724 <para>Contributions:</para>
2726 <itemizedlist>
2727 <listitem>
2728 <para>&Christoph.Cullmann; &Christoph.Cullmann.mail;</para>
2729 </listitem>
2731 <listitem>
2732 <para>Michael Bartl <email>michael.bartl1@chello.at</email></para>
2733 </listitem>
2735 <listitem>
2736 <para>Phlip <email>phlip_cpp@my-deja.com</email></para>
2737 </listitem>
2739 <listitem>
2740 <para>&Anders.Lund; &Anders.Lund.mail;</para>
2741 </listitem>
2743 <listitem>
2744 <para>Matt Newell <email>newellm@proaxis.com</email></para>
2745 </listitem>
2747 <listitem>
2748 <para>&Joseph.Wenninger; &Joseph.Wenninger.mail;</para>
2749 </listitem>
2751 <listitem>
2752 <para>Jochen Wilhely <email>digisnap@cs.tu-berlin.de</email></para>
2753 </listitem>
2755 <listitem>
2756 <para>&Michael.Koch; &Michael.Koch.mail;</para>
2757 </listitem>
2759 <listitem>
2760 <para>&Christian.Gebauer; &Christian.Gebauer.mail;</para>
2761 </listitem>
2763 <listitem>
2764 <para>&Simon.Hausmann; &Simon.Hausmann.mail;</para>
2765 </listitem>
2767 <listitem>
2768 <para>Glen Parker <email>glenebob@nwlink.com</email></para>
2769 </listitem>
2771 <listitem>
2772 <para>Scott Manson <email>sdmanson@altel.net</email></para>
2773 </listitem>
2775 <listitem>
2776 <para>&John.Firebaugh; &John.Firebaugh.mail;</para>
2777 </listitem>
2778 </itemizedlist>
2780 <para>
2781 Original documentation by &Thad.McGinnis; &Thad.McGinnis.mail;
2782 </para>
2784 <para>
2785 Updated by &Anne-Marie.Mahfouf; &Anne-Marie.Mahfouf.mail; and
2786 &Anders.Lund; &Anders.Lund.mail;
2787 </para>
2789 <para>
2790 This version of the &kwrite; Handbook is based on the original by
2791 &Cristian.Tibirna; &Cristian.Tibirna.mail;
2792 </para>
2794 <para>
2795 Converted to docbook/proofreading by &Lauri.Watts; &Lauri.Watts.mail;
2796 </para>
2798 <!-- TRANS:CREDIT_FOR_TRANSLATORS -->
2800 &underFDL;
2801 &underGPL;
2802 </chapter>
2804 &documentation.index;
2805 </book>
2806 <!--
2807 Local Variables:
2808 mode: sgml
2809 sgml-namecase-general: t
2810 sgml-namecase-entity: nil
2811 sgml-general-insert-case: lower
2812 sgml-minimize-attributes: nil
2813 sgml-omittag: nil
2814 End: