<!-- $XConsortium: ch10.sgm /main/15 1996/11/11 20:13:51 cdedoc $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->
<chapter id="UG.TextE.div.1">
<title id="UG.TextE.mkr.1">Using Text Editor</title>
<para>This chapter describes how to create and edit short
documents such as memos, mail messages, or resource files using Text Editor.<indexterm><primary>document</primary><secondary>restoring</secondary></indexterm><indexterm><primary>document</primary><secondary>editing</secondary></indexterm><indexterm><primary>text</primary><secondary>editing</secondary></indexterm><indexterm><primary>editing</primary><secondary>text or document</secondary></indexterm>
</para>
<informaltable id="UG.TextE.itbl.1" frame="All">
<tgroup cols="1">
<colspec colname="1" colwidth="4.0 in">
<tbody>
<row rowsep="1">
<entry><para><!--Original XRef content: 'Opening and Closing Text Editor192'--><xref
role="JumpText" linkend="UG.TextE.mkr.2"></para></entry></row>
<row rowsep="1">
<entry><para><!--Original XRef content: 'Text Editor Window193'--><xref role="JumpText"
linkend="UG.TextE.mkr.3"></para></entry></row>
<row rowsep="1">
<entry><para><!--Original XRef content: 'Opening and Saving Documents194'--><xref
role="JumpText" linkend="UG.TextE.mkr.5"></para></entry></row>
<row rowsep="1">
<entry><para><!--Original XRef content: 'Moving the Cursor in a Document199'--><xref
role="JumpText" linkend="UG.TextE.mkr.8"></para></entry></row>
<row rowsep="1">
<entry><para><!--Original XRef content: 'Entering Text198'--><xref role="JumpText"
linkend="UG.TextE.mkr.6"></para></entry></row>
<row rowsep="1">
<entry><para><!--Original XRef content: 'Editing Text202'--><xref role="JumpText"
linkend="UG.TextE.mkr.9"></para></entry></row>
<row rowsep="1">
<entry><para><!--Original XRef content: 'Searching a Document209'--><xref
role="JumpText" linkend="UG.TextE.mkr.17"></para></entry></row>
<row rowsep="1">
<entry><para><!--Original XRef content: 'Formatting and Printing Documents210'--><xref
role="JumpText" linkend="UG.TextE.mkr.18"></para></entry></row></tbody></tgroup>
</informaltable>
<sect1 id="UG.TextE.div.2">
<title id="UG.TextE.mkr.2">Opening and Closing Text Editor</title>
<indexterm><primary>Text Editor</primary><secondary>starting</secondary></indexterm>
<para>There are several ways to start Text Editor from your desktop.</para>
<sect2 id="UG.TextE.div.3" role="Procedure">
<title>To Open Text Editor</title>
<itemizedlist remap="Bullet1"><listitem><para>Click the Text Editor control
in the Front Panel.<indexterm><primary>Text Editor</primary><secondary>Front
Panel control</secondary></indexterm><indexterm><primary>Front Panel</primary>
<secondary>Text Editor control</secondary></indexterm></para>
</listitem></itemizedlist>
<graphic id="UG.TextE.igrph.1" entityref="UG.TextE.fig.1"></graphic>
<itemizedlist remap="Bullet1"><listitem><para><emphasis>Or</emphasis>, open
the Personal Applications subpanel in the Front Panel and click the Text
Editor control.</para>
</listitem></itemizedlist>
<graphic id="UG.TextE.igrph.2" entityref="UG.TextE.fig.2"></graphic>
<para>Text Editor can also be started from the command line by typing this
command in a Terminal window:</para>
<programlisting>dtpad <symbol role="Variable">filename</symbol> &amp;</programlisting>
<para>The file name is optional.</para>
</sect2>
<sect2 id="UG.TextE.div.4" role="Procedure">
<title>To Close Text Editor</title>
<indexterm><primary>Text Editor</primary><secondary>closing</secondary></indexterm>
<orderedlist><listitem><para>Choose Close from the File menu or press Alt+F4.
</para>
</listitem></orderedlist>
<note>
<para>If your keyboard does not have an Alt key, ask your system administrator
to identify the corresponding key.</para>
</note>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.5">
<title id="UG.TextE.mkr.3">Text Editor Window</title>
<indexterm><primary>Text Editor</primary><secondary>window</secondary></indexterm>
<para>You create and edit a document in the Text Editor window. The title
bar displays the name of the current document. A new document is named (UNTITLED).
</para>
<figure>
<title>Text Editor window</title>
<graphic id="UG.TextE.grph.1" entityref="UG.TextE.fig.3"></graphic>
</figure>
<para>You can optionally display a status line that reports the number of
lines in your document and enables you to go to a specific line number.</para>
<sect2 id="UG.TextE.div.6" role="Procedure">
<title id="UG.TextE.mkr.4">To Display the Status Line</title>
<indexterm><primary>status line</primary><secondary>in Text Editor window</secondary></indexterm>
<indexterm><primary>Text Editor</primary><secondary>status line</secondary></indexterm>
<para>The status line displays the line number where the insertion cursor
is located and the total number of lines in the document. It also reports
Text Editor messages and indicates whether Overstrike mode is active.</para>
<graphic id="UG.TextE.igrph.3" entityref="UG.TextE.fig.4"></graphic>
<orderedlist><listitem><para>Choose Status Line from the Options menu. To
remove the status line, choose Status Line again from the menu.</para>
</listitem></orderedlist>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.7">
<title id="UG.TextE.mkr.5">Opening and Saving Documents</title>
<indexterm><primary>Text Editor</primary><secondary>opening document</secondary></indexterm>
<indexterm><primary>Text Editor</primary><secondary>saving document</secondary></indexterm>
<para>You can create a new document or open an existing document. Opening
a document displays the contents of a selected file in the Text Editor window.
</para>
<para>Saving a document stores the edited contents into a file. You can save
a document to its original file or to a new file.</para>
<sect2 id="UG.TextE.div.8" role="Procedure">
<title>To Create a New Document</title>
<para>A new document named <filename>(UNTITLED)</filename> <command>is create</command> d when you start Text Editor.<indexterm><primary>document</primary>
<secondary>creating</secondary></indexterm><indexterm><primary>creating</primary><secondary>document</secondary></indexterm> To enter text in your
document, see <!--Original XRef content: '&xd2;Entering Text&xd3; on page&numsp;198'--><xref
role="SecTitleAndPageNum" linkend="UG.TextE.mkr.6">. You provide a new file
name when you save the document.</para>
<para>After finishing a document, you can create another document using the
New command.</para>
<orderedlist><listitem><para>Choose New from the File menu.</para>
<para>The Text Editor window is cleared and a new document is created. If
you have not saved your current document, a dialog box is displayed that
enables you to save your document.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.9" role="Procedure">
<title>To Save a Document to a New File</title>
<indexterm><primary>document</primary><secondary>saving</secondary></indexterm>
<indexterm><primary>saving</primary><secondary>document to new file</secondary></indexterm>
<indexterm><primary>Text Editor</primary><secondary>saving document to new file</secondary></indexterm>
<orderedlist><listitem><para>Choose Save As from the File menu.</para>
<para>The Save As dialog box lists files and folders located in your current
folder. You can store your document in the current folder, a subfolder, or
a folder that you specify.</para>
<para>If you used Wrap To Fit, the dialog box includes an additional choice
about handling line endings. If Wrap To Fit is not set, the dialog box omits
this choice (see <!--Original XRef content: '&xd2;Using Wrap To Fit&xd3;
on page&numsp;198'--><xref role="SecTitleAndPageNum" linkend="UG.TextE.mkr.7">).
</para>
<figure>
<title>Save As dialog box</title>
<graphic id="UG.TextE.grph.2" entityref="UG.TextE.fig.5"></graphic>
</figure>
</listitem>
<listitem><para><emphasis>Optional</emphasis>. If you do not
want to save the file to the current folder, choose a subfolder or indicate
a different folder.</para>
<itemizedlist remap="Bullet2"><listitem><para>For a subfolder, select the
subfolder in the Folders list and press Return.</para>
</listitem><listitem><para>For a different folder, use the .. (go up) icon
to change to a folder or type its path name in the Enter path or folder name
field.</para>
</listitem></itemizedlist>
</listitem><listitem><para>Type a new file name in the Enter file name field.
</para>
</listitem><listitem><para>Press Return or click OK.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.10" role="Procedure">
<title>To Save a Document to the Original File</title>
<indexterm><primary>Text Editor</primary><secondary>saving document to original file</secondary></indexterm>
<indexterm><primary>saving</primary><secondary>document to original file</secondary></indexterm>
<orderedlist><listitem><para>Choose Save from the File menu to save your work
and continue editing your document.</para>
<para>If you used Wrap To Fit, the Save dialog box includes an additional
choice about handling line endings (see <!--Original XRef content: '&xd2;Using
Wrap To Fit&xd3; on page&numsp;198'--><xref role="SecTitleAndPageNum" linkend="UG.TextE.mkr.7">).
</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.11">
<title>Opening an Existing Document</title>
<para>You can open an existing document in these ways:<indexterm><primary>document</primary><secondary>opening existing &lt;$startrange></secondary></indexterm><indexterm><primary>opening</primary>
<secondary>existing document &lt;$startrange></secondary></indexterm></para>
<itemizedlist remap="Bullet1"><listitem><para>Open the document in Text Editor.
</para>
</listitem><listitem><para>Select the file icon in File Manager and choose
Open from the File Manager Selected menu.</para>
</listitem><listitem><para>Double-click the file icon in File Manager.</para>
</listitem><listitem><para>Drag the document's file icon to the Text Editor
control in the Front Panel.</para>
</listitem></itemizedlist>
<sect3 id="UG.TextE.div.12" role="Procedure">
<title>To Open an Existing Document from Text Editor</title>
<orderedlist><listitem><para>Choose Open from the File menu.</para>
<para>The Open a File dialog box lists files and folders in your current folder.
You can browse the documents listed, or change to a new folder to locate
other files on your system.</para>
<figure>
<title>Open a File dialog box</title>
<graphic id="UG.TextE.grph.3" entityref="UG.TextE.fig.6"></graphic>
</figure>
</listitem>
<listitem><para>Select the name of the document you want to open,
or type the document name in the Enter file name field.</para>
</listitem><listitem><para>Press Return or click OK.</para>
</listitem></orderedlist>
<note>
<para>You can also use this shortcut: double-click the document name in the
dialog box.</para>
</note>
</sect3>
<sect3 id="UG.TextE.div.13" role="Procedure">
<title>To Open an Existing Document from File Manager</title>
<orderedlist><listitem><para>Display the document's file icon in a File Manager
window.<indexterm><primary>document</primary><secondary>opening existing
from File Manager</secondary></indexterm><indexterm><primary>File Manager</primary><secondary>opening existing text document from</secondary></indexterm></para>
<figure>
<title>Document file icon</title>
<graphic id="UG.TextE.grph.4" entityref="UG.TextE.fig.7"></graphic>
</figure>
</listitem>
<listitem><para>Open the document in <emphasis>one</emphasis>
of the following ways:</para>
<itemizedlist remap="Bullet2"><listitem><para>Double-click the document.</para>
</listitem><listitem><para>Select the document, then choose Open from the
File Manager Selected menu.</para>
</listitem><listitem><para><emphasis>D</emphasis>rag the document file icon
to the Front Panel and drop the icon on the Text Editor control.<indexterm>
<primary>document</primary><secondary>opening existing &lt;$endrange></secondary></indexterm><indexterm><primary>opening</primary>
<secondary>existing document &lt;$endrange></secondary></indexterm></para>
</listitem></itemizedlist>
</listitem></orderedlist>
</sect3>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.14">
<title id="UG.TextE.mkr.6">Entering Text</title>
<indexterm><primary>Text Editor</primary><secondary>entering text</secondary></indexterm>
<indexterm><primary>text</primary><secondary>entering</secondary></indexterm>
<para>As you create a document, you type and edit text. A cursor ( <command>I</command>) shows your current position. Characters are inserted unless
you set Overstrike mode (see <!--Original XRef content: '&xd2;To Set Overstrike
Mode&xd3; on page&numsp;204'--><xref role="SecTitleAndPageNum" linkend="UG.TextE.mkr.10">).
</para>
<sect2 id="UG.TextE.div.15" role="Procedure">
<title>To Enter New Text</title>
<orderedlist><listitem><para>Click in the document and start typing.</para>
<para>To start a new line, press Return. Or, you can use the Wrap To Fit option
to automatically wrap text at the edge of the window.</para>
<para>To start a paragraph, press Return twice.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.16">
<title id="UG.TextE.mkr.7">Using Wrap To Fit</title>
<para>Wrap To Fit controls whether lines are automatically wrapped to fit
the width of the window. When Wrap To Fit is set on, lines are broken automatically
at the edge of the window. Because these line breaks are dynamic, you can
resize the Text Editor window and the<indexterm><primary>document</primary>
<secondary>new lines in</secondary></indexterm> text automatically adjusts
to fit the new window width.</para>
<para>When you save your document, you decide whether to add a line break
to each of the wrapped lines, or to retain the dynamic line endings. When
you save your document, you choose one of these options:</para>
<itemizedlist remap="Bullet1"><listitem><para>Add a newline character (hard
return) to the end of each wrapped line to preserve each line ending as it
currently appears.</para>
</listitem><listitem><para><emphasis>Or,</emphasis> preserve only line breaks
that were created by pressing Return.</para>
</listitem></itemizedlist>
<graphic id="UG.TextE.igrph.4" entityref="UG.TextE.fig.8"></graphic>
<sect3 id="UG.TextE.div.17" role="Procedure">
<title>To Set Wrap To Fit On or Off</title>
<indexterm><primary>Text Editor</primary><secondary>word wrap</secondary></indexterm>
<indexterm><primary>Text Editor</primary><secondary>Wrap To Fit option</secondary></indexterm>
<indexterm><primary>text</primary><secondary>automatic wrapping</secondary></indexterm>
<indexterm><primary>document</primary><secondary>word wrap</secondary></indexterm>
<indexterm><primary>word wrap</primary></indexterm>
<indexterm><primary>Wrap to Fit, turning on and off</primary></indexterm>
<orderedlist><listitem><para>To set Wrap To Fit on, choose the Wrap To Fit
toggle button in the Options menu. To set Wrap To Fit off, choose the toggle
button again.</para>
</listitem></orderedlist>
</sect3>
</sect2>
<sect2 id="UG.TextE.div.18">
<title>Entering Special Characters</title>
<indexterm><primary>Text Editor</primary><secondary>special characters and</secondary></indexterm>
<indexterm><primary>special characters</primary><secondary>in Text Editor</secondary></indexterm>
<para>Different systems often use certain key combinations to insert special
characters. In some instances, a key combination may be reserved by Text
Editor. For example, a Text Editor mnemonic for displaying a menu might
conflict with a key sequence you want to use on your keyboard.</para>
<para>To insert the correct character you may need to override the reserved
behavior by preceding the key combination with Control+Q.</para>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.19">
<title id="UG.TextE.mkr.8">Moving the Cursor in a Document</title>
<indexterm><primary>Text Editor</primary><secondary>cursor keys</secondary></indexterm>
<para>As you enter and edit text, you move the insertion cursor using the
mouse and keyboard cursor keys. Using the mouse, move the pointer to the
new location in the document and click mouse button 1.<indexterm><primary>navigating</primary><secondary>moving text insertion cursor</secondary></indexterm></para>
<para>You can also use the keyboard cursor movement keys:<indexterm><primary>keyboard</primary><secondary>cursor movement keys in Text Editor</secondary>
</indexterm><indexterm><primary>cursor movement keys</primary></indexterm></para>
<informaltable>
<tgroup cols="2" colsep="0" rowsep="0">
<colspec align="left" colwidth="158*">
<colspec align="left" colwidth="298*">
<tbody>
<row>
<entry align="left" valign="top"><para><literal>Key</literal></para></entry>
<entry align="left" valign="top"><para><literal>Cursor Movement</literal></para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>Up Arrow</keycap></para></entry>
<entry align="left" valign="top"><para>Up one line</para></entry></row>
<row>
<entry align="left" valign="top"><para><keycap>Down Arrow</keycap></para></entry>
<entry align="left" valign="top"><para>Down one line</para></entry></row>
<row>
<entry align="left" valign="top"><para><keycap>Left Arrow</keycap></para></entry>
<entry align="left" valign="top"><para>Left one character</para></entry></row>
<row>
<entry align="left" valign="top"><para><keycap>Right Arrow</keycap></para></entry>
<entry align="left" valign="top"><para>Right one character</para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>Control</keycap>+Left Arrow
</para></entry>
<entry align="left" valign="top"><para>Move left to previous word</para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>Control</keycap>+Right Arrow
</para></entry>
<entry align="left" valign="top"><para>Move right to next word</para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>Home</keycap></para></entry>
<entry align="left" valign="top"><para>Beginning of the current line</para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>End</keycap></para></entry>
<entry align="left" valign="top"><para>End of the current line</para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>Control</keycap>+<keycap>Up
Arrow</keycap></para></entry>
<entry align="left" valign="top"><para>Beginning of the previous paragraph
</para></entry></row>
<row>
<entry align="left" valign="top"><para><keycap>Control</keycap>+Down Arrow
</para></entry>
<entry align="left" valign="top"><para>Beginning of the next paragraph</para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>Control+Home</keycap></para></entry>
<entry align="left" valign="top"><para>Beginning of the document</para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>Control</keycap>+End</para></entry>
<entry align="left" valign="top"><para>End of the document</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Control+G</para></entry>
<entry align="left" valign="top"><para>To the Line field in the status line
</para></entry></row></tbody></tgroup></informaltable>
<note>
<para>If your keyboard uses different key labels, ask your system administrator
to identify the corresponding keys.</para>
</note>
<sect2 id="UG.TextE.div.20" role="Procedure">
<title>To Go to a Specific Line</title>
<indexterm><primary>document</primary><secondary>going to specific line in</secondary></indexterm>
<indexterm><primary>navigating</primary><secondary>to specific line in document</secondary></indexterm>
<orderedlist><listitem><para>Display the status line (see <!--Original XRef
content: '&xd2;To Display the Status Line&xd3; on page&numsp;193'--><xref
role="SecTitleAndPageNum" linkend="UG.TextE.mkr.4">).</para>
</listitem><listitem><para>Press Control+G or click in the Line field of the
status line.</para>
</listitem><listitem><para>Type the line number you want to go to and press
Return.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.21" role="Procedure">
<title>To Scroll a Document</title>
<orderedlist><listitem><para>Select and drag the vertical scroll bar to view
more text. Use the horizontal scroll bar to view long lines.</para>
<para>You can also use the scrolling keys:</para>
<informaltable>
<tgroup cols="2" colsep="0" rowsep="0">
<colspec align="left" colwidth="143*">
<colspec align="left" colwidth="313*">
<tbody>
<row>
<entry align="left" valign="top"><para><literal>Key</literal></para></entry>
<entry align="left" valign="top"><para><literal>Scroll Movement</literal></para></entry>
</row>
<row>
<entry align="left" valign="top"><para><keycap>Page Up</keycap></para></entry>
<entry align="left" valign="top"><para>Up one page</para></entry></row>
<row>
<entry align="left" valign="top"><para><keycap>Page Down</keycap></para></entry>
<entry align="left" valign="top"><para>Down one page</para></entry></row>
<row>
<entry align="left" valign="top"><para><keycap>Control+Page Up</keycap></para></entry>
<entry align="left" valign="top"><para>Left one page</para></entry></row>
<row>
<entry align="left" valign="top"><para><keycap>Control+Page Down</keycap></para></entry>
<entry align="left" valign="top"><para>Right one page</para></entry></row>
</tbody></tgroup></informaltable>
</listitem></orderedlist>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.22">
<title>Selecting Text</title>
<indexterm><primary>selection, in Text Editor</primary></indexterm>
<indexterm><primary>selecting</primary><secondary>text</secondary></indexterm>
<indexterm><primary>text</primary><secondary>selecting</secondary></indexterm>
<para>Before using edit commands such as cut and paste, you must select the
text. You can select text using the mouse or the keyboard.</para>
<sect2 id="UG.TextE.div.23" role="Procedure">
<title>To Select Text with the Mouse</title>
<orderedlist><listitem><para>Click at the beginning of the text you want to
select.</para>
</listitem><listitem><para>Press and hold mouse button 1 and drag to the
end of the text.</para>
</listitem></orderedlist>
<para>To deselect text, click any area in the window.</para>
<note>
<para>To modify a selection you have made, press and hold the Shift key and
mouse button 1. Then drag forward or backward to adjust the amount of selected
text. Or, hold down the Shift key and one of the arrow keys to change the
selection.</para>
</note>
<para>You can also use these shortcuts for selecting text:</para>
<informaltable>
<tgroup cols="2" colsep="0" rowsep="0">
<colspec align="left" colwidth="68*">
<colspec align="left" colwidth="388*">
<tbody>
<row>
<entry align="left" valign="top"><para>Word</para></entry>
<entry align="left" valign="top"><para>Double-click the word</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Line</para></entry>
<entry align="left" valign="top"><para>Triple-click the line</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>All text</para></entry>
<entry align="left" valign="top"><para>Quadruple-click in the text</para></entry>
</row></tbody></tgroup></informaltable>
</sect2>
<sect2 id="UG.TextE.div.24">
<title>Secondary Selection</title>
<para>This method enables you select text and replace it with another selection,
which is used as the replacement text.</para>
<sect3 id="UG.TextE.div.25" role="Procedure">
<title>To Replace Text Using Secondary Selection</title>
<orderedlist><listitem><para>Select the text that you want to replace.</para>
</listitem><listitem><para>Move the pointer to the beginning of the text you
want to replace the first selection with. Hold down the Alt key and mouse
button 2 and drag to the end of the text you want to use.</para>
<para>The text is underlined.</para>
<note>
<para>If your keyboard does not have an Alt key, ask your system administrator
to identify the corresponding key.</para>
</note>
</listitem>
<listitem><para>Release the Alt key and mouse button.</para>
<para>The underlined text overwrites your first selection.</para>
</listitem></orderedlist>
</sect3>
</sect2>
<sect2 id="UG.TextE.div.26" role="Procedure">
<title>To Select Text with the Keyboard</title>
<informaltable>
<tgroup cols="2" colsep="0" rowsep="0">
<colspec align="left" colwidth="223*">
<colspec align="left" colwidth="277*">
<thead>
<row><entry align="left" valign="bottom"><para>Text to Select</para></entry>
<entry align="left" valign="bottom"><para>Action</para></entry></row></thead>
<tbody>
<row>
<entry align="left" valign="top"><para>Text block</para></entry>
<entry align="left" valign="top"><para>Move the cursor to the beginning of
the text block. Hold down the <keycap>Shift</keycap> key and an arrow key
to move the cursor to the end of the text block.</para></entry></row>
<row>
<entry align="left" valign="top"><para>Cursor to beginning of line</para></entry>
<entry align="left" valign="top"><para>Shift+Home</para></entry></row>
<row>
<entry align="left" valign="top"><para>Cursor to end of line</para></entry>
<entry align="left" valign="top"><para>Shift+End</para></entry></row>
<row>
<entry align="left" valign="top"><para>Cursor to beginning of paragraph</para></entry>
<entry align="left" valign="top"><para>Shift+Control+Up Arrow</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Cursor to end of paragraph</para></entry>
<entry align="left" valign="top"><para>Shift+Control+Down Arrow</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Cursor to beginning of document</para></entry>
<entry align="left" valign="top"><para>Shift+Control+Home</para></entry></row>
<row>
<entry align="left" valign="top"><para>Cursor to end of document</para></entry>
<entry align="left" valign="top"><para>Shift+Control+End</para></entry></row>
<row>
<entry align="left" valign="top"><para>All text</para></entry>
<entry align="left" valign="top"><para><keycap>Control</keycap>+<keycap>/</keycap></para></entry></row>
<row>
<entry align="left" valign="top"><para>Deselect all text</para></entry>
<entry align="left" valign="top"><para>Control+\</para></entry></row></tbody>
</tgroup></informaltable>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.27">
<title id="UG.TextE.mkr.9">Editing Text</title>
<para>Minor edits can be made using the editing keys. You may also want to
copy, move, or delete portions of text, find and change a word or phrase,
or check the spelling of your document.</para>
<sect2 id="UG.TextE.div.28">
<title>Editing Keys</title>
<indexterm><primary>Text Editor</primary><secondary>editing keys</secondary></indexterm>
<informaltable>
<tgroup cols="2" colsep="0" rowsep="0">
<colspec align="left" colwidth="134*">
<colspec align="left" colwidth="322*">
<tbody>
<row>
<entry align="left" valign="top"><para><literal>Key</literal></para></entry>
<entry align="left" valign="top"><para><literal>Action</literal></para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Backspace</para></entry>
<entry align="left" valign="top"><para>Deletes the character before the cursor
</para></entry></row>
<row>
<entry align="left" valign="top"><para>Delete</para></entry>
<entry align="left" valign="top"><para>Deletes the character following the
insertion cursor</para></entry></row>
<row>
<entry align="left" valign="top"><para>Control+Backspace</para></entry>
<entry align="left" valign="top"><para>Deletes the previous word</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Shift+Backspace</para></entry>
<entry align="left" valign="top"><para>Deletes characters from the cursor
to the beginning of the line</para></entry></row>
<row>
<entry align="left" valign="top"><para>Control+Delete (Control+Remove)</para></entry>
<entry align="left" valign="top"><para>Deletes all the characters from the
cursor to the end of the current line</para></entry></row>
<row>
<entry align="left" valign="top"><para>Insert</para></entry>
<entry align="left" valign="top"><para>Toggles Overstrike and Insert mode
</para></entry></row></tbody></tgroup></informaltable>
<para>Note that not all vendors' keyboards supply these keys.
Please see your local vendor's documentation for alternate key bindings.
</para>
</sect2>
<sect2 id="UG.TextE.div.29">
<title>Menu Shortcut Keys</title>
<indexterm><primary>Text Editor</primary><secondary>menu shortcut keys</secondary></indexterm>
<indexterm><primary>shortcut keys</primary><secondary>in Text Editor</secondary></indexterm>
<para>You can also use these shortcut keys when making edits.</para>
<informaltable>
<tgroup cols="2" colsep="0" rowsep="0">
<colspec align="left" colwidth="93*">
<colspec align="left" colwidth="363*">
<tbody>
<row>
<entry align="left" valign="top"><para>Control+C</para></entry>
<entry align="left" valign="top"><para>Copy selected text</para></entry></row>
<row>
<entry align="left" valign="top"><para>Control+X</para></entry>
<entry align="left" valign="top"><para>Cut selected text</para></entry></row>
<row>
<entry align="left" valign="top"><para>Control+V</para></entry>
<entry align="left" valign="top"><para>Paste selected text</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Control+F</para></entry>
<entry align="left" valign="top"><para>Find/Change text</para></entry></row>
<row>
<entry align="left" valign="top"><para>Control+Z</para></entry>
<entry align="left" valign="top"><para>Undo a cut, delete, clear, include,
copy, or paste command</para></entry></row></tbody></tgroup></informaltable>
</sect2>
<sect2 id="UG.TextE.div.30">
<title>UNIX Key Bindings</title>
<indexterm><primary>Text Editor</primary><secondary>UNIX (Emacs) key bindings</secondary></indexterm>
<para>UNIX<superscript>TM</superscript> key bindings enable you to use a set
of extended Emacs keys, such as Alt+B (back word) or Control+N (next line),
in Text Editor. To enable UNIX key bindings (which are set off by default)
you edit a file in your home directory.</para>
<sect3 id="UG.TextE.div.31" role="Procedure">
<title>To Enable UNIX Key Bindings</title>
<indexterm><primary>UNIX key bindings</primary></indexterm>
<orderedlist><listitem><para>Add the following line to the <computeroutput>.Xdefaults</computeroutput> file in your home directory:</para>
<programlisting>#include &ldquo;/usr/dt/app-defaults/<symbol role="Variable">language</symbol>/UNIXbindings&rdquo;
</programlisting>
<para>Replace <symbol role="Variable">language</symbol> with the name of your
language environment.</para>
<para>If the <computeroutput>.Xdefaults</computeroutput> file does not exist,
create the file in your home directory.</para>
</listitem>
<listitem><para>Log out of your current session.</para>
</listitem><listitem><para>Log in and restart Text Editor.</para>
</listitem></orderedlist>
<para>Some Text Editor menu accelerators conflict with UNIX key bindings.
When UNIX key bindings are enabled, Text Editor provides alternate menu
accelerators for these commands:</para>
<informaltable>
<tgroup cols="2" colsep="0" rowsep="0">
<colspec align="left" colwidth="171*">
<colspec align="left" colwidth="285*">
<tbody>
<row>
<entry align="left" valign="top"><para>Command</para></entry>
<entry align="left" valign="top"><para>Alternate Menu Accelerator</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Find/Change (Control+F)</para></entry>
<entry align="left" valign="top"><para>Control+S</para></entry></row>
<row>
<entry align="left" valign="top"><para>Paste (Control+V)</para></entry>
<entry align="left" valign="top"><para>Shift+Insert</para></entry></row>
<row>
<entry align="left" valign="top"><para>Print (Control+P)</para></entry>
<entry align="left" valign="top"><para>no alternate accelerator</para></entry>
</row>
<row>
<entry align="left" valign="top"><para>Undo (Control+Z)</para></entry>
<entry align="left" valign="top"><para>Control+_</para></entry></row></tbody>
</tgroup></informaltable>
<para>If you want to modify these menu accelerators, copy the contents of
the <computeroutput>/usr/dt/app-defaults/</computeroutput> <symbol role="Variable">language</symbol><computeroutput>/UNIXbindings</computeroutput> file into
your <computeroutput>.Xdefaults</computeroutput> file and then make your
changes.</para>
<note>
<para>When using UNIX key bindings, the Delete key deletes the previous character
rather than the character that follows the cursor.</para>
</note>
</sect3>
</sect2>
<sect2 id="UG.TextE.div.32" role="Procedure">
<title id="UG.TextE.mkr.10">To Set Overstrike Mode</title>
<para><indexterm><primary>overstrike mode, in Text Editor</primary></indexterm>As
you type, new characters are inserted. If you want to type over existing
characters, change to Overstrike mode.</para>
<itemizedlist remap="Bullet1"><listitem><para>Choose Overstrike from the Options
menu. To return to Insert mode, choose Overstrike again from the menu.</para>
</listitem><listitem><para><emphasis>Or</emphasis>, use the Insert key to
switch between Insert and Overstrike mode.</para>
<para>When Overstrike mode is on, the cursor changes to a block. If
you use Overstrike mode often, you may want to display the status line (see
<!--Original XRef content: '&xd2;To
Display the Status Line&xd3; on page&numsp;193'--><xref role="SecTitleAndPageNum"
linkend="UG.TextE.mkr.4">) because it indicates whether Overstrike mode is
on or off.</para>
</listitem></itemizedlist>
</sect2>
<sect2 id="UG.TextE.div.33" role="Procedure">
<title>To Type Over Text</title>
<orderedlist><listitem><para>Select the text.</para>
</listitem><listitem><para>Type the replacement text.</para>
<para>You can also choose Overstrike from the Options menu to turn off Insert
mode and type over the text directly.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.34" role="Procedure">
<title>To Delete Text</title>
<indexterm><primary>deleting</primary><secondary>text</secondary></indexterm>
<indexterm><primary>text</primary><secondary>deleting</secondary></indexterm>
<orderedlist><listitem><para>Select the text.</para>
</listitem><listitem><para>Choose Delete from the Edit menu or press the Delete
key.</para>
</listitem></orderedlist>
<para>Deleted text cannot be pasted, but it can be recovered with the Undo
command (see <!--Original XRef content: '&xd2;To Undo an Edit&xd3; on page&numsp;205'--><xref
role="SecTitleAndPageNum" linkend="UG.TextE.mkr.11">).</para>
<para>If you intend to paste the text that you delete, use the Cut command
(see <!--Original XRef content: '&xd2;To
Move Text (Cut and Paste)&xd3; on page&numsp;205'--><xref role="SecTitleAndPageNum"
linkend="UG.TextE.mkr.12">).</para>
</sect2>
<sect2 id="UG.TextE.div.35" role="Procedure">
<title>To Clear Text</title>
<para>The Clear command replaces the selected text with spaces or blank lines.
</para>
<orderedlist><listitem><para>Select the text to be cleared.</para>
</listitem><listitem><para>Choose Clear from the Edit menu.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.36" role="Procedure">
<title id="UG.TextE.mkr.11">To Undo an Edit</title>
<indexterm><primary>Text Editor</primary><secondary>using Undo in</secondary></indexterm>
<indexterm><primary>Undo, in Text Editor</primary></indexterm>
<orderedlist><listitem><para>Choose Undo from the Edit menu or press Control+Z.
</para>
<para>Undo reverses the last cut, paste, clear, delete, change, include, or
format operation.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.37" role="Procedure">
<title>To Copy Text</title>
<indexterm><primary>copying</primary><secondary>text</secondary></indexterm>
<indexterm><primary>text</primary><secondary>copying</secondary></indexterm>
<orderedlist><listitem><para>Select the text to be copied.</para>
</listitem><listitem><para>Choose Copy from the Edit menu or press Control+C.
</para>
<para>A copy of the text is stored on a clipboard where it can be accessed
or replaced by other applications.</para>
</listitem><listitem><para>Click where you want to insert the text.</para>
</listitem><listitem><para>Choose Paste from the Edit menu or press Control+V.
</para>
<para>You can also use drag and drop to copy text (see <!--Original XRef
content: '&xd2;To Copy Text Using Drag
and Drop&xd3; on page&numsp;208'--><xref role="SecTitleAndPageNum" linkend="UG.TextE.mkr.15">).
</para>
</listitem></orderedlist>
<note>
<para>Use this shortcut to copy a word or phrase: Select the text, move the
pointer to where you want to insert the text, and click mouse button 2. This
is a quick way to copy text into a dialog box.</para>
</note>
</sect2>
<sect2 id="UG.TextE.div.38" role="Procedure">
<title id="UG.TextE.mkr.12">To Move Text (Cut and Paste)</title>
<indexterm><primary>text</primary><secondary>cutting and pasting</secondary></indexterm>
<orderedlist><listitem><para>Select the text.</para>
</listitem><listitem><para>Choose Cut from the Edit menu or press Control+X.
</para>
<para>The text is erased from the document and stored on a clipboard where
it can be accessed or replaced by other applications.</para>
</listitem><listitem><para>Move the cursor to where you want to insert the
text.</para>
</listitem><listitem><para>Choose Paste from the Edit menu or press Control+V.
</para>
<para>You can also use drag and drop to move text (see <!--Original XRef
content: '&xd2;To Move Text Using Drag
and Drop&xd3; on page&numsp;208'--><xref role="SecTitleAndPageNum" linkend="UG.TextE.mkr.14">).
</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.39" role="Procedure">
<title>To Correct Misspelled Words</title>
<indexterm><primary>spelling, correcting in Text Editor</primary></indexterm>
<orderedlist><listitem><para>Choose Check Spelling from the Edit menu.</para>
<para>The Spell dialog box lists misspelled or unrecognized words.</para>
<figure>
<title>Spell dialog box</title>
<graphic id="UG.TextE.grph.5" entityref="UG.TextE.fig.9"></graphic>
</figure>
</listitem>
<listitem><para>Select the misspelled word in the Misspelled
Word list that you want to find and press Return. Or, just double-click the
word.</para>
<para>The next occurrence of the word is highlighted in your document.</para>
</listitem><listitem><para>Type the correct word into the Change To field.
</para>
</listitem><listitem><para>Click Change to correct a single occurrence.</para>
</listitem><listitem><para>To find and change additional occurrences, click
Find and then Change.</para>
<para><emphasis>Or</emphasis>, click Change All to replace all occurrences.
</para>
</listitem><listitem><para>Click Close when you are done.</para>
</listitem></orderedlist>
<note>
<para>The Check Spelling feature is only available for the English language.
</para>
</note>
</sect2>
<sect2 id="UG.TextE.div.40" role="Procedure">
<title id="UG.TextE.mkr.13">To Include a File</title>
<indexterm><primary>document</primary><secondary>including file in</secondary></indexterm>
<indexterm><primary>files</primary><secondary>including in Text Editor document</secondary></indexterm>
<para>You can insert a text file into your document using a menu command or
by dragging a file icon into the Text Editor window (see <!--Original XRef
content: '&xd2;To Include a File Using
Drag and Drop&xd3; on page&numsp;208'--><xref role="SecTitleAndPageNum" linkend="UG.TextE.mkr.16">).
</para>
<orderedlist><listitem><para>Position the cursor where you want to insert
the text file.</para>
</listitem><listitem><para>Choose Include from the File menu.</para>
<para>The Include a File dialog box lists files and folders on your system.
You can browse the documents listed, or change to a new folder to locate
other files on your system.</para>
<figure>
<title>Include a File dialog box</title>
<graphic id="UG.TextE.grph.6" entityref="UG.TextE.fig.10"></graphic>
</figure>
</listitem>
<listitem><para>Select the document you want to insert in the
Files list.</para>
</listitem><listitem><para>Press Return or click OK.</para>
</listitem></orderedlist>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.41">
<title>Using Drag and Drop</title>
<indexterm><primary>Text Editor</primary><secondary>drag and drop in</secondary></indexterm>
<indexterm><primary>text</primary><secondary>dragging</secondary></indexterm>
<indexterm><primary>text</primary><secondary>dropping</secondary></indexterm>
<indexterm><primary>dragging</primary><secondary>text</secondary></indexterm>
<indexterm><primary>dropping</primary><secondary>text</secondary></indexterm>
<indexterm><primary>files</primary><secondary>dropping in Text Editor document</secondary></indexterm>
<indexterm><primary>files</primary><secondary>including in document through drag and drop</secondary></indexterm>
<indexterm><primary>document</primary><secondary>including file through drag and drop</secondary></indexterm>
<indexterm><primary>drag and drop, in Text Editor</primary></indexterm>
<para>You can use drag and drop to move or copy text between Text Editor
documents or other applications. You can also include a file into your document
using drag and drop.</para>
<sect2 id="UG.TextE.div.42" role="Procedure">
<title id="UG.TextE.mkr.14">To Move Text Using Drag and Drop</title>
<orderedlist><listitem><para>Select the text that you want to move.</para>
</listitem><listitem><para>With the pointer on the selection, press and hold
mouse button 1, and drag to where you want to insert the text.</para>
</listitem><listitem><para>Release the mouse button.</para>
<para>The text is inserted into your document relative to the position of
the drag icon.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.43" role="Procedure">
<title id="UG.TextE.mkr.15">To Copy Text Using Drag and Drop</title>
<orderedlist><listitem><para>Select the text you want to copy.</para>
</listitem><listitem><para>With the pointer on the selection, press and hold
the Control key and mouse button 1, and drag to where you want to copy the
text.</para>
</listitem><listitem><para>Release the Control key and mouse button.</para>
<para>The text is copied relative to the position of the drag icon.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.44" role="Procedure">
<title id="UG.TextE.mkr.16">To Include a File Using Drag and Drop</title>
<para><indexterm><primary>dragging</primary><secondary>file to Text Editor</secondary></indexterm><indexterm><primary>dropping</primary><secondary>file in Text Editor</secondary></indexterm>When using drag and drop, the contents
of the file are copied into the Text Editor window at the position of the
insertion cursor. The original file remains intact.</para>
<orderedlist><listitem><para>Click in your document where you want to include
the file.</para>
</listitem><listitem><para>Drag the file icon that you want to include into
the Text Editor window.</para>
</listitem></orderedlist>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.45">
<title id="UG.TextE.mkr.17">Searching a Document</title>
<indexterm><primary>document</primary><secondary>searching</secondary></indexterm>
<indexterm><primary>search and replace, in Text Editor</primary></indexterm>
<para>You can search for a word or phrase in your document. The Find command
begins from the position of the insertion cursor and proceeds through the
entire document. You can automatically replace or delete occurrences found
in your document.</para>
<para>Searches are case sensitive. To find all occurrences, search for both
lowercase and uppercase instances.</para>
<sect2 id="UG.TextE.div.46" role="Procedure">
<title>To Find Text</title>
<indexterm><primary>text</primary><secondary>finding in Text Editor</secondary></indexterm>
<orderedlist><listitem><para>Choose Find/Change from the Edit menu or press
Control+F.</para>
<figure>
<title>Find/Change dialog box</title>
<graphic id="UG.TextE.grph.7" entityref="UG.TextE.fig.11"></graphic>
</figure>
</listitem>
<listitem><para>Type the text you want to find in the Find field.
</para>
</listitem><listitem><para>Press Return or click the Find button to locate
the next occurrence of the text.</para>
</listitem><listitem><para>To find additional occurrences, press Return or
click Find again.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.47" role="Procedure">
<title>To Find and Change Text</title>
<orderedlist><listitem><para>Choose Find/Change from the Edit menu or press
Control+F.</para>
</listitem><listitem><para>Type the text you want to find in the Find field.
</para>
</listitem><listitem><para>Type the replacement text in the Change To field.
</para>
</listitem><listitem><para>Press Return or click the Find button to locate
the next occurrence of the text.</para>
</listitem><listitem><para>Click Change to replace a single occurrence.</para>
</listitem><listitem><para>To find and change additional occurrences, click
Find and then Change.</para>
<para><emphasis>Or</emphasis>, click Change All to replace all occurrences.
</para>
<caution>
<para>There is no Undo for Change All.</para>
</caution>
</listitem>
<listitem><para>Click Close when you are done.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.48" role="Procedure">
<title>To Find and Delete Text</title>
<orderedlist><listitem><para>Choose Find/Change from the Edit menu or press
Control+F.</para>
</listitem><listitem><para>Type the text you want to delete in the Find field.
</para>
</listitem><listitem><para>Leave the Change To field blank.</para>
</listitem><listitem><para>Press Return or click Find to locate the next occurrence.
</para>
</listitem><listitem><para>Click Change to delete a single occurrence.</para>
</listitem><listitem><para>To find and change additional occurrences, click
Find and then Change.</para>
<para>Or, click Change All to replace all occurrences.</para>
</listitem><listitem><para>Click Close when you are done.</para>
</listitem></orderedlist>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.49">
<title id="UG.TextE.mkr.18">Formatting and Printing Documents</title>
<indexterm><primary>Text Editor</primary><secondary>formatting document in</secondary></indexterm>
<indexterm><primary>formatting</primary><secondary>document in Text Editor</secondary></indexterm>
<indexterm><primary>document</primary><secondary>formatting</secondary></indexterm>
<para>Once your editing is complete, format your document by choosing margins
and text alignment.</para>
<sect2 id="UG.TextE.div.50" role="Procedure">
<title>To Format a Document</title>
<indexterm><primary>Text Editor</primary><secondary>formatting document in</secondary></indexterm>
<indexterm><primary>margins, document</primary></indexterm>
<indexterm><primary>document</primary><secondary>margins</secondary></indexterm>
<indexterm><primary>justification, setting in Text Editor</primary></indexterm>
<indexterm><primary>document</primary><secondary>justifying text in</secondary></indexterm>
<indexterm><primary>text</primary><secondary>justifying</secondary></indexterm>
<orderedlist><listitem><para>Choose Settings from the Format menu.</para>
<figure>
<title>Format Settings dialog box</title>
<graphic id="UG.TextE.grph.8" entityref="UG.TextE.fig.12"></graphic>
</figure>
</listitem>
<listitem><para>Enter margins.</para>
<para>The default left margin is 0 and the right margin is dynamically set
to the width of the Text Editor window. Margins are specified as a number
of character columns.</para>
</listitem><listitem><para>Select left, right, justify (block style), or center
alignment.<indexterm><primary>text</primary><secondary>alignment</secondary>
</indexterm></para>
</listitem><listitem><para>Determine the scope of the formatting:</para>
<itemizedlist remap="Bullet2"><listitem><para>To format a single paragraph,
place the cursor in the paragraph, then click Paragraph.</para>
</listitem><listitem><para>To format the entire document, click All.</para>
</listitem></itemizedlist>
</listitem><listitem><para>After closing the dialog box, choose Paragraph
or All from the Format menu to apply the settings.</para>
</listitem></orderedlist>
</sect2>
<sect2 id="UG.TextE.div.51" role="Procedure">
<title id="UG.TextE.mkr.18a">To Print an Open Document with Default Options</title>
<indexterm><primary>Text Editor</primary><secondary>printing document with default options</secondary></indexterm>
<indexterm><primary>printing</primary><secondary>document with default options</secondary></indexterm>
<indexterm><primary>document</primary><secondary>printing with default options</secondary></indexterm>
<orderedlist><listitem><para>Open the document in Text Editor.</para>
</listitem><listitem><para>Choose Print from the File menu.
</para>
</listitem>
</orderedlist>
</sect2>
<sect2 id="UG.TextE.div.51a" role="Procedure">
<title id="UG.TextE.mkr.18b">To Print an Open Document with Specific Options</title>
<indexterm><primary>Text Editor</primary><secondary>printing document with specific options</secondary></indexterm>
<indexterm><primary>printing</primary><secondary>document with specific options</secondary></indexterm>
<indexterm><primary>document</primary><secondary>printing with specific options</secondary></indexterm>
<orderedlist><listitem><para>Open the document in Text Editor.</para>
</listitem><listitem><para>Choose Print... from the File menu or press Control+P.
</para>
<para>The Print dialog box appears.
</para>
<figure>
<title>Print dialog box</title>
<graphic id="UG.TextE.grph.9" entityref="UG.TextE.fig.13"></graphic>
</figure>
<itemizedlist remap="Bullet2"><listitem><para>To select a different printer,
type the new printer name in the Printer Name field.</para>
</listitem>
<listitem><para>To output multiple copies, type
the number of copies in the Copies field.
</para>
</listitem>
<listitem><para>To print to a file, click the Print to File checkbox
and type the path and filename for the file.
</para>
</listitem>
<listitem><para>To have long lines wrap to fit the page size,
click the Use Word Wrap checkbox.
</para>
</listitem>
<listitem><para>To set the margins
for the printed output, type the desired values in the Top, Left,
Right, and Bottom fields. You can specify margin values in
inches (in), centimeters (cm), or pixels (pi).
The default value for all margins is one inch.
If no unit value is specified, pixels are used.
</para>
<para>Your margin settings remain in effect until you change them. They are used when you
print with default options.
</para>
</listitem>
<listitem><para>To include headers and/or footers on the printed output,
choose the type of information you want for Top Left, Bottom Left,
Top Right, and/or Bottom Right. For each position, you can select:
</para>
<itemizedlist remap="Bullet2">
<listitem><para><literal>Date</literal>, to display the current date.
</para></listitem>
<listitem><para><literal>Document Name</literal>, to display the name of the document being printed.
</para></listitem>
<listitem><para><literal>Page Number</literal>, to display page numbers.
</para></listitem>
<listitem><para><literal>User Name</literal>, to display your user name.
</para></listitem>
<listitem><para><literal>None</literal>, to display nothing.
</para></listitem>
</itemizedlist>
<para>The following defaults are used:
</para>
<itemizedlist remap="Bullet2">
<listitem><para><literal>Top Left</literal>&mdash;None
</para></listitem>
<listitem><para><literal>Top Right</literal>&mdash;Document Name
</para></listitem>
<listitem><para><literal>Bottom Left</literal>&mdash;None
</para></listitem>
<listitem><para><literal>Bottom Right</literal>&mdash;Page Number
</para></listitem>
</itemizedlist>
<para>Your header and footer settings remain in effect until you change
them. They are used when you print with default options.
</para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>To set printer-specific options, click the Setup... button on the Print dialog box.
The Print Setup window appears. From this window, you can access
both Printer and Job options.
</para>
<figure>
<title>Print Setup window</title>
<graphic id="UG.TextE.grph.9a" entityref="UG.TextE.fig.13a"></graphic>
</figure>
<para>The Printer options dialog box lets you control such items as page orientation
(portrait or landscape), page size (legal, letter, etc.), one- or two-sided
printing, and which printer tray to use.
</para>
<para>The Job options dialog box lets you indicate whether
you want an email notification sent when your print job completes and
what text (if any) you want to appear on the banner page. You can also
specify print command options in the Print Command Options field.
</para>
<para>When finished with the Print Setup window, click OK to set your changes
and return to the Print dialog box.
</para>
<para>Your Print Setup settings remain in effect until you change
them. They are used when you print with default options.
</para>
</listitem>
<listitem>
<para>To send the open document to the printer from the
Print dialog box, click Print.</para>
</listitem>
</orderedlist>
</sect2>
<sect2 id="UG.TextE.div.52" role="Procedure">
<title>To Print a Closed Document</title>
<orderedlist><listitem><para>Display the document's file icon in File Manager.
</para>
</listitem><listitem><para>Drag the file icon to the Printer control in the
Front Panel.</para>
<para>The Print dialog box is opened.</para>
</listitem><listitem><para><emphasis>Optional.</emphasis> Set printing options.
</para>
</listitem><listitem><para>Click Print.</para>
</listitem></orderedlist>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.53">
<title>Recovering a File</title>
<indexterm><primary>restoring</primary><secondary>Text Editor file</secondary></indexterm>
<para>If Text Editor is interrupted due to a system error, it attempts to
save your changes in a recovery file in your current folder. The recovery
file is named <computeroutput>#</computeroutput> <symbol role="Variable">filename</symbol><computeroutput>#</computeroutput>, where <symbol role="Variable">filename</symbol> is the name of the document. If you had never named your
document, the recovery file name is <computeroutput>#UNTITLED#.</computeroutput></para>
<sect2 id="UG.TextE.div.54" role="Procedure">
<title>To Recover a File</title>
<orderedlist><listitem><para>Start Text Editor.</para>
</listitem><listitem><para>Open the recovery file.</para>
</listitem><listitem><para>Save the document using your original file name
or provide a new name for a previously unsaved document.</para>
</listitem></orderedlist>
</sect2>
</sect1>
<sect1 id="UG.TextE.div.55">
<title>Text Editor and Other Applications</title>
<indexterm><primary>Text Editor</primary><secondary>used in other applications</secondary></indexterm>
<indexterm><primary>applications</primary><secondary>using Text Editor with</secondary></indexterm>
<para>Other applications can use Text Editor as a tool to edit documents or
other types of information. Under certain conditions, an application may
choose to restrict your editing choices. In the example below<?Pub Caret>,
the File menu has been modified. The Save As command has been replaced with
a Copy To File command and the New and Open commands are not available.</para>
<figure>
<title>Text Editor with modified File menu</title>
<graphic id="UG.TextE.grph.10" entityref="UG.TextE.fig.14"></graphic>
</figure>
</sect1>
</chapter>
<!--fickle 1.14 mif-to-docbook 1.7 01/02/96 10:57:19-->

