blob: 001e6919405c453853a643c512317abd3fea58e7 [file] [log] [blame]
kprice9c922d82006-08-30 22:07:19 +00001<?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>
14To define general HTML file preferences, complete the following
15steps::</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
20XML</uicontrol><uicontrol>HTML Files</uicontrol></menucascade>.</cmd></step>
21<step><cmd>Specify the following settings related to saving an HTML source
22page. The defaults are recommended and should only be modified when there
23is 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
26is <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
33default 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.
37The default DOCTYPE is determined when you create an HTML file or a JSP file
38using a wizard. If you add the DOCTYPE declaration, you should include at
39least 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
43the 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
47default is the Workbench's encoding preference. Deselect the <uicontrol>Use
48workbench default</uicontrol> check box to select another encoding. <note>Encoding
49detection (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
52attempts 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
54is used.</li>
55</ul> </note> </dd>
56</dlentry></dl> </info></step>
57<step><cmd>Click <uicontrol>Apply</uicontrol> then <uicontrol>OK</uicontrol> to
58save your changes.</cmd></step>
59</steps>
60</taskbody>
61</task>