blob: b069e85dfaa8e1a47f12590134bc975e1189e45c [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="Setting annotation preferences for markup languages" />
<meta name="abstract" content="This documentation describes how to set annotation preferences for Web and XML files. The annotation preferences include whether to analyze the syntactic validity of your file while you are typing and what colors to use to highlight errors, warnings, tasks, search results, bookmarks, and other text." />
<meta name="description" content="This documentation describes how to set annotation preferences for Web and XML files. The annotation preferences include whether to analyze the syntactic validity of your file while you are typing and what colors to use to highlight errors, warnings, tasks, search results, bookmarks, and other text." />
<meta content="annotation preferences, markup language settings, markup languages, setting annotation preferences" name="DC.subject" />
<meta content="annotation preferences, markup language settings, markup languages, setting annotation preferences" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="csrcedt004.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt025.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tsrcedt001" 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>Setting annotation preferences for markup languages</title>
</head>
<body id="tsrcedt001"><a name="tsrcedt001"><!-- --></a>
<h1 class="topictitle1">Setting annotation preferences for markup languages</h1>
<div><p>This documentation describes how to set <dfn class="term">annotation preferences</dfn> for
Web and XML files. The annotation preferences include whether to analyze the
syntactic validity of your file while you are typing and what colors to use
to highlight errors, warnings, tasks, search results, bookmarks, and other
text.</p>
<div class="section"> <p>By default, when you edit in a structured text editor, your source
code is validated as you type it in. Like other Eclipse-based editors, the
structured text editors for markup languages flag warnings and errors in the
source code in the editor area. The warnings and errors also show up in the
Tasks view when you save the file.</p>
<div class="note"><span class="notetitle">Note:</span> Highlighting is fully dynamic
with the exception of search results. Search results are highlighted based
upon what has been saved to disk.</div>
<div class="tip"><span class="tiptitle">Tip:</span> You can improve a
structured text editor's performance by turning off the real-time validation.</div>
<p>To
set annotation preferences, complete the following steps:</p>
</div>
<ol>
<li class="stepexpand"><span>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span>
</span>.</span> A Preferences window appears.
</li>
<li class="stepexpand"><span>In the Preferences window, click <span class="menucascade"><span class="uicontrol">Workbench</span>
&gt; <span class="uicontrol">Editors</span></span>.</span></li>
<li class="stepexpand"><span>Select one of the following options:</span>
<ul>
<li>To turn off real-time syntax validation, click <span class="uicontrol">Structured
Text Editor</span> and uncheck the <span class="uicontrol">Analyze annotations while
typing</span> box.</li>
<li>To control other annotation settings, click <span class="uicontrol">Annotations</span> and
select your annotation preferences.</li>
</ul>
</li>
<li class="stepexpand"><span>Click <span class="uicontrol">OK</span> to save your preferences and close
the page.</span></li>
</ol>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="csrcedt004.html" title="Structured text editor is any of several text editors that you can use to edit various markup languages such as HTML, JavaScript, or XML.">Structured text editors for markup
languages</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="tsrcedt025.html" title="">Setting preferences for structured
text editors</a></div>
</div>
</div>
</body>
</html>