blob: fb63bd2663a340d10d59edadab0b31aec9f7be65 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<!-- /*******************************************************************************
* 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
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Setting annotation preferences for markup languages</title>
<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>
set annotation preferences, complete the following steps:</p>
<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>
<li class="skipspace"><span>Click <span class="uicontrol">OK</span> to save your preferences and close
the page.</span></li>
<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><b class="reltaskshd">Related tasks</b><br />
<a href="tsrcedt025.html" title="">Setting preferences for structured
text editors</a><br />