| <?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> |
| <head> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2005 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 |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| <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="skipspace"> <p>To define general HTML file preferences, complete the following |
| |
| steps:</p> |
| </div> |
| <ol><li class="skipspace"><span>From the <span class="uicontrol">Window</span> menu, select <span class="uicontrol">Preferences</span>.</span></li> |
| <li class="skipspace"><span>In the Preferences window, select <span class="menucascade"><span class="uicontrol">Web and |
| |
| XML</span> > <span class="uicontrol">HTML Files</span></span>.</span></li> |
| <li class="skipspace"><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="bold">Line delimiter</dt> |
| <dd>Specify the appropriate EOL character for your environment. The default |
| |
| is <span class="uicontrol">No translation</span>.</dd> |
| <dt class="bold">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="bold">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="bold">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="bold">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="bold">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="skipspace"><span>Click <span class="uicontrol">Apply</span> then <span class="uicontrol">OK</span> to |
| |
| save your changes.</span></li> |
| </ol> |
| </div> |
| <div><p><b class="relconceptshd">Related concepts</b><br /> |
| <a href="cwwedtvw.html" title="">Workbench integration with Web editors</a><br /> |
| </p> |
| </div> |
| </body> |
| </html> |