blob: 772f1238f67d277e332bcc8dd43db6d1b15bdfbf [file] [log] [blame]
kprice9c922d82006-08-30 22:07:19 +00001<?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">
2<html lang="en-us" xml:lang="en-us">
3<head>
4<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kpricea99d2212008-04-23 22:51:09 +00005<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
kprice9c922d82006-08-30 22:07:19 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<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))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Defining HTML file preferences" />
kprice96ee3b52008-05-15 00:05:07 +000012<meta content="DOCTYPE declarations, adding automatically, HTML, editing preferences" name="DC.subject" />
13<meta content="DOCTYPE declarations, adding automatically, HTML, editing preferences" name="keywords" />
kprice9c922d82006-08-30 22:07:19 +000014<meta content="XHTML" name="DC.Format" />
15<meta content="tjprefs" name="DC.Identifier" />
16<meta content="en-us" name="DC.Language" />
17<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
syeshindeaaffd2005-11-17 19:29:47 +000018<title>Defining HTML file preferences</title>
syeshin30fe03d2005-09-01 14:44:04 +000019</head>
20<body id="tjprefs"><a name="tjprefs"><!-- --></a>
kprice9c922d82006-08-30 22:07:19 +000021
22
syeshin30fe03d2005-09-01 14:44:04 +000023<h1 class="topictitle1">Defining HTML file preferences</h1>
kprice9c922d82006-08-30 22:07:19 +000024
25
26<div>
kprice96ee3b52008-05-15 00:05:07 +000027<div class="section"> <p> To define general
28HTML file preferences, complete the following steps:</p>
syeshin30fe03d2005-09-01 14:44:04 +000029</div>
kprice9c922d82006-08-30 22:07:19 +000030
31<ol>
32<li class="stepexpand"><span>From the <span class="uicontrol">Window</span> menu, select <span class="uicontrol">Preferences</span>.</span>
33</li>
34
35<li class="stepexpand"><span>In the Preferences window, select <span class="menucascade"><span class="uicontrol">Web and
36XML</span> &gt; <span class="uicontrol">HTML Files</span></span>.</span></li>
37
lmandel49d6a1a2006-01-23 07:32:18 +000038<li class="stepexpand"><span>Specify the following settings related to saving an HTML source
syeshin30fe03d2005-09-01 14:44:04 +000039page. The defaults are recommended and should only be modified when there
kprice9c922d82006-08-30 22:07:19 +000040is a specific reason to do so. </span> <dl>
41<dt class="dlterm">Line delimiter</dt>
42
syeshin30fe03d2005-09-01 14:44:04 +000043<dd>Specify the appropriate EOL character for your environment. The default
kprice9c922d82006-08-30 22:07:19 +000044is <span class="uicontrol">No translation</span>.</dd>
45
46
lmandel49d6a1a2006-01-23 07:32:18 +000047<dt class="dlterm">Add this suffix</dt>
kprice9c922d82006-08-30 22:07:19 +000048
syeshin30fe03d2005-09-01 14:44:04 +000049<dd>Specify a default suffix for files that you save. The default is <kbd class="userinput">html</kbd>.</dd>
kprice9c922d82006-08-30 22:07:19 +000050
51
lmandel49d6a1a2006-01-23 07:32:18 +000052<dt class="dlterm">Encoding, IANA, (Use workbench default)</dt>
kprice9c922d82006-08-30 22:07:19 +000053
syeshin30fe03d2005-09-01 14:44:04 +000054<dd>Specify the default encoding (code page) for files that you create. The
syeshin30fe03d2005-09-01 14:44:04 +000055default is the Workbench's encoding preference. </dd>
kprice9c922d82006-08-30 22:07:19 +000056
57
lmandel49d6a1a2006-01-23 07:32:18 +000058<dt class="dlterm">Insert DOCTYPE declaration</dt>
kprice9c922d82006-08-30 22:07:19 +000059
syeshin30fe03d2005-09-01 14:44:04 +000060<dd>Optionally, you can automatically add a DOCTYPE declaration to HTML files.
syeshin30fe03d2005-09-01 14:44:04 +000061The default DOCTYPE is determined when you create an HTML file or a JSP file
lmandel49d6a1a2006-01-23 07:32:18 +000062using a wizard. If you add the DOCTYPE declaration, you should include at
63least a Public ID specification, and, optionally, a System ID.</dd>
kprice9c922d82006-08-30 22:07:19 +000064
65
lmandel49d6a1a2006-01-23 07:32:18 +000066<dt class="dlterm">Insert GENERATOR with META tag</dt>
kprice9c922d82006-08-30 22:07:19 +000067
syeshin30fe03d2005-09-01 14:44:04 +000068<dd>Optionally, select the check box to specify GENERATOR in a META tag in
syeshin30fe03d2005-09-01 14:44:04 +000069the HTML file header.</dd>
kprice9c922d82006-08-30 22:07:19 +000070
71
lmandel49d6a1a2006-01-23 07:32:18 +000072<dt class="dlterm">Loading files</dt>
kprice9c922d82006-08-30 22:07:19 +000073
syeshin30fe03d2005-09-01 14:44:04 +000074<dd>Specify the default encoding (code page) for files that you open. The
kprice9c922d82006-08-30 22:07:19 +000075default is the Workbench's encoding preference. Deselect the <span class="uicontrol">Use
76workbench default</span> check box to select another encoding. <div class="note"><span class="notetitle">Note:</span> Encoding
77detection (when loading files) is performed in the following order: <ul>
78<li>Locate the encoding name embedded in the document.</li>
79
syeshin30fe03d2005-09-01 14:44:04 +000080<li>When no encoding is embedded in the document, an automatic encoding detector
syeshin30fe03d2005-09-01 14:44:04 +000081attempts to determine encoding used in the document.</li>
kprice9c922d82006-08-30 22:07:19 +000082
83<li>If the encoding still cannot be determined, the encoding defined in the <span class="uicontrol">Encoding</span> field
syeshin30fe03d2005-09-01 14:44:04 +000084is used.</li>
kprice9c922d82006-08-30 22:07:19 +000085
syeshin30fe03d2005-09-01 14:44:04 +000086</ul>
87 </div>
88 </dd>
kprice9c922d82006-08-30 22:07:19 +000089
syeshin30fe03d2005-09-01 14:44:04 +000090</dl>
91 </li>
kprice9c922d82006-08-30 22:07:19 +000092
93<li class="stepexpand"><span>Click <span class="uicontrol">Apply</span> then <span class="uicontrol">OK</span> to
syeshin30fe03d2005-09-01 14:44:04 +000094save your changes.</span></li>
kprice9c922d82006-08-30 22:07:19 +000095
syeshin30fe03d2005-09-01 14:44:04 +000096</ol>
kprice9c922d82006-08-30 22:07:19 +000097
syeshin30fe03d2005-09-01 14:44:04 +000098</div>
kprice9c922d82006-08-30 22:07:19 +000099
100
101</body>
102</html>