kprice | 9c922d8 | 2006-08-30 22:07:19 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
| 2 | <!--Arbortext, Inc., 1988-2005, v.4002-->
|
| 3 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
|
| 4 | "task.dtd">
|
| 5 | <!-- ArborText, Inc., 1988-2002, v.4002-->
|
| 6 | <task id="tjprefs" xml:lang="en-us">
|
| 7 | <title>Defining HTML file preferences</title>
|
| 8 | <prolog><metadata>
|
| 9 | <keywords>
|
| 10 | </keywords>
|
| 11 | </metadata></prolog>
|
| 12 | <taskbody>
|
| 13 | <context> <p><indexterm>HTML files<indexterm>editing<indexterm>preferences</indexterm></indexterm></indexterm><indexterm>DOCTYPE declaration<indexterm>adding automatically</indexterm></indexterm><indexterm>HTML files<indexterm>editing<indexterm>preferences</indexterm></indexterm></indexterm><indexterm>DOCTYPE declaration<indexterm>adding automatically</indexterm></indexterm>
|
| 14 | To define general HTML file preferences, complete the following
|
| 15 | steps::</p></context>
|
| 16 | <steps>
|
| 17 | <step><cmd>From the <uicontrol>Window</uicontrol> menu, select <uicontrol>Preferences</uicontrol>.</cmd>
|
| 18 | </step>
|
| 19 | <step><cmd>In the Preferences window, select <menucascade><uicontrol>Web and
|
| 20 | XML</uicontrol><uicontrol>HTML Files</uicontrol></menucascade>.</cmd></step>
|
| 21 | <step><cmd>Specify the following settings related to saving an HTML source
|
| 22 | page. The defaults are recommended and should only be modified when there
|
| 23 | is a specific reason to do so. </cmd><info><dl><dlentry>
|
| 24 | <dt>Line delimiter</dt>
|
| 25 | <dd>Specify the appropriate EOL character for your environment. The default
|
| 26 | is <uicontrol>No translation</uicontrol>.</dd>
|
| 27 | </dlentry><dlentry>
|
| 28 | <dt>Add this suffix</dt>
|
| 29 | <dd>Specify a default suffix for files that you save. The default is <userinput>html</userinput>.</dd>
|
| 30 | </dlentry><dlentry>
|
| 31 | <dt>Encoding, IANA, (Use workbench default)</dt>
|
| 32 | <dd>Specify the default encoding (code page) for files that you create. The
|
| 33 | default is the Workbench's encoding preference. </dd>
|
| 34 | </dlentry><dlentry>
|
| 35 | <dt>Insert DOCTYPE declaration</dt>
|
| 36 | <dd>Optionally, you can automatically add a DOCTYPE declaration to HTML files.
|
| 37 | The default DOCTYPE is determined when you create an HTML file or a JSP file
|
| 38 | using a wizard. If you add the DOCTYPE declaration, you should include at
|
| 39 | least a Public ID specification, and, optionally, a System ID.</dd>
|
| 40 | </dlentry><dlentry>
|
| 41 | <dt>Insert GENERATOR with META tag</dt>
|
| 42 | <dd>Optionally, select the check box to specify GENERATOR in a META tag in
|
| 43 | the HTML file header.</dd>
|
| 44 | </dlentry><dlentry>
|
| 45 | <dt>Loading files</dt>
|
| 46 | <dd>Specify the default encoding (code page) for files that you open. The
|
| 47 | default is the Workbench's encoding preference. Deselect the <uicontrol>Use
|
| 48 | workbench default</uicontrol> check box to select another encoding. <note>Encoding
|
| 49 | detection (when loading files) is performed in the following order: <ul>
|
| 50 | <li>Locate the encoding name embedded in the document.</li>
|
| 51 | <li>When no encoding is embedded in the document, an automatic encoding detector
|
| 52 | attempts to determine encoding used in the document.</li>
|
| 53 | <li>If the encoding still cannot be determined, the encoding defined in the <uicontrol>Encoding</uicontrol> field
|
| 54 | is used.</li>
|
| 55 | </ul> </note> </dd>
|
| 56 | </dlentry></dl> </info></step>
|
| 57 | <step><cmd>Click <uicontrol>Apply</uicontrol> then <uicontrol>OK</uicontrol> to
|
| 58 | save your changes.</cmd></step>
|
| 59 | </steps>
|
| 60 | </taskbody>
|
| 61 | </task>
|