blob: f76b2d2ed9b88fad9f0ee519479991a23368cb28 [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>
<head>
<link rel="stylesheet" type="text/css" href="../org.eclipse.wst.doc.user/common.css" />
<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="skipspace"> <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="skipspace"><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="skipspace"><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="skipspace"><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="skipspace"><span>Click <span class="uicontrol">OK</span> to save your preferences and close
the page.</span></li>
</ol>
</div>
<div><p><b class="relconceptshd">Related concepts</b><br />
<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><br />
</p>
<p><b class="reltaskshd">Related tasks</b><br />
<a href="tsrcedt025.html" title="">Setting preferences for structured
text editors</a><br />
</p>
</div><p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>