| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE html | |
| PUBLIC "-//IETF//DTD HTML 4.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html><head><!-- /******************************************************************************* | |
| * 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 | |
| *******************************************************************************/ --> | |
| <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="section"> <p>To define general HTML file preferences, complete the following | |
| steps::</p> | |
| </div> | |
| <ol><li class="stepexpand"><span>From the <b>Window</b> menu, select <b>Preferences</b>.</span></li> | |
| <li class="stepexpand"><span>In the Preferences window, select <span class="menucascade"><b>Web and | |
| XML</b> > <b>HTML Files</b></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 <b>No translation</b>.</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 <b>Use | |
| workbench default</b> 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 <b>Encoding</b> field | |
| is used.</li> | |
| </ul> | |
| </div> | |
| </dd> | |
| </dl> | |
| </li> | |
| <li class="stepexpand"><span>Click <b>Apply</b> then <b>OK</b> to | |
| save your changes.</span></li> | |
| </ol> | |
| </div> | |
| <div></div> | |
| </body></html> |