blob: 65ab12d8654d66e43484c7eddfbad3c26bce6368 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Defining HTML file preferences" />
<meta content="XHTML" name="DC.Format" />
<meta content="tjprefs" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Defining HTML file preferences</title>
</head>
<body id="tjprefs"><a name="tjprefs"><!-- --></a>
<h1 class="topictitle1">Defining HTML file preferences</h1>
<div>
<div class="section"> <p>
To define general HTML file preferences, complete the following
steps::</p>
</div>
<ol>
<li class="stepexpand"><span>From the <span class="uicontrol">Window</span> menu, select <span class="uicontrol">Preferences</span>.</span>
</li>
<li class="stepexpand"><span>In the Preferences window, select <span class="menucascade"><span class="uicontrol">Web and
XML</span> &gt; <span class="uicontrol">HTML Files</span></span>.</span></li>
<li class="stepexpand"><span>Specify the following settings related to saving an HTML source
page. The defaults are recommended and should only be modified when there
is a specific reason to do so. </span> <dl>
<dt class="dlterm">Line delimiter</dt>
<dd>Specify the appropriate EOL character for your environment. The default
is <span class="uicontrol">No translation</span>.</dd>
<dt class="dlterm">Add this suffix</dt>
<dd>Specify a default suffix for files that you save. The default is <kbd class="userinput">html</kbd>.</dd>
<dt class="dlterm">Encoding, IANA, (Use workbench default)</dt>
<dd>Specify the default encoding (code page) for files that you create. The
default is the Workbench's encoding preference. </dd>
<dt class="dlterm">Insert DOCTYPE declaration</dt>
<dd>Optionally, you can automatically add a DOCTYPE declaration to HTML files.
The default DOCTYPE is determined when you create an HTML file or a JSP file
using a wizard. If you add the DOCTYPE declaration, you should include at
least a Public ID specification, and, optionally, a System ID.</dd>
<dt class="dlterm">Insert GENERATOR with META tag</dt>
<dd>Optionally, select the check box to specify GENERATOR in a META tag in
the HTML file header.</dd>
<dt class="dlterm">Loading files</dt>
<dd>Specify the default encoding (code page) for files that you open. The
default is the Workbench's encoding preference. Deselect the <span class="uicontrol">Use
workbench default</span> check box to select another encoding. <div class="note"><span class="notetitle">Note:</span> Encoding
detection (when loading files) is performed in the following order: <ul>
<li>Locate the encoding name embedded in the document.</li>
<li>When no encoding is embedded in the document, an automatic encoding detector
attempts to determine encoding used in the document.</li>
<li>If the encoding still cannot be determined, the encoding defined in the <span class="uicontrol">Encoding</span> field
is used.</li>
</ul>
</div>
</dd>
</dl>
</li>
<li class="stepexpand"><span>Click <span class="uicontrol">Apply</span> then <span class="uicontrol">OK</span> to
save your changes.</span></li>
</ol>
</div>
</body>
</html>