blob: 1fca55782f184cec2cc12c24193c94a4ceb5396d [file] [log] [blame]
kprice9c922d82006-08-30 22:07:19 +00001<?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">
2<html lang="en-us" xml:lang="en-us">
syeshin17ed4a62005-07-25 17:10:24 +00003<head>
kprice9c922d82006-08-30 22:07:19 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kprice02ec4b02008-05-14 23:26:58 +00005<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
kprice9c922d82006-08-30 22:07:19 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<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))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Setting annotation preferences for markup languages" />
12<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." />
13<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." />
kprice02ec4b02008-05-14 23:26:58 +000014<meta content="annotations, markup language settings, markup languages, setting annotation preferences" name="DC.subject" />
15<meta content="annotations, markup language settings, markup languages, setting annotation preferences" name="keywords" />
kprice9c922d82006-08-30 22:07:19 +000016<meta scheme="URI" name="DC.Relation" content="csrcedt004.html" />
17<meta scheme="URI" name="DC.Relation" content="tsrcedt025.html" />
18<meta content="XHTML" name="DC.Format" />
19<meta content="tsrcedt001" name="DC.Identifier" />
20<meta content="en-us" name="DC.Language" />
21<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
syeshin17ed4a62005-07-25 17:10:24 +000022<title>Setting annotation preferences for markup languages</title>
syeshin379dd3e2005-08-26 04:28:44 +000023</head>
syeshin17ed4a62005-07-25 17:10:24 +000024<body id="tsrcedt001"><a name="tsrcedt001"><!-- --></a>
25
kprice9c922d82006-08-30 22:07:19 +000026
syeshin17ed4a62005-07-25 17:10:24 +000027<h1 class="topictitle1">Setting annotation preferences for markup languages</h1>
kprice9c922d82006-08-30 22:07:19 +000028
29
30
31
syeshin17ed4a62005-07-25 17:10:24 +000032<div><p>This documentation describes how to set <dfn class="term">annotation preferences</dfn> for
33Web and XML files. The annotation preferences include whether to analyze the
34syntactic validity of your file while you are typing and what colors to use
35to highlight errors, warnings, tasks, search results, bookmarks, and other
kprice9c922d82006-08-30 22:07:19 +000036text.</p>
37
38<div class="section"> <p>By default, when you edit in a structured text editor, your source
syeshin17ed4a62005-07-25 17:10:24 +000039code is validated as you type it in. Like other Eclipse-based editors, the
40structured text editors for markup languages flag warnings and errors in the
41source code in the editor area. The warnings and errors also show up in the
42Tasks view when you save the file.</p>
kprice9c922d82006-08-30 22:07:19 +000043<div class="note"><span class="notetitle">Note:</span> Highlighting is fully dynamic
syeshin17ed4a62005-07-25 17:10:24 +000044with the exception of search results. Search results are highlighted based
45upon what has been saved to disk.</div>
kprice9c922d82006-08-30 22:07:19 +000046<div class="tip"><span class="tiptitle">Tip:</span> You can improve a
syeshin17ed4a62005-07-25 17:10:24 +000047structured text editor's performance by turning off the real-time validation.</div>
48<p>To
49set annotation preferences, complete the following steps:</p>
50 </div>
kprice9c922d82006-08-30 22:07:19 +000051
52<ol>
53<li class="stepexpand"><span>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span>
54</span>.</span> A Preferences window appears.
55</li>
56
57<li class="stepexpand"><span>In the Preferences window, click <span class="menucascade"><span class="uicontrol">Workbench</span>
58 &gt; <span class="uicontrol">Editors</span></span>.</span></li>
59
60<li class="stepexpand"><span>Select one of the following options:</span>
61<ul>
62<li>To turn off real-time syntax validation, click <span class="uicontrol">Structured
syeshin17ed4a62005-07-25 17:10:24 +000063Text Editor</span> and uncheck the <span class="uicontrol">Analyze annotations while
64typing</span> box.</li>
kprice9c922d82006-08-30 22:07:19 +000065
syeshin17ed4a62005-07-25 17:10:24 +000066<li>To control other annotation settings, click <span class="uicontrol">Annotations</span> and
67select your annotation preferences.</li>
kprice9c922d82006-08-30 22:07:19 +000068
syeshin17ed4a62005-07-25 17:10:24 +000069</ul>
kprice9c922d82006-08-30 22:07:19 +000070
syeshin17ed4a62005-07-25 17:10:24 +000071</li>
kprice9c922d82006-08-30 22:07:19 +000072
73<li class="stepexpand"><span>Click <span class="uicontrol">OK</span> to save your preferences and close
syeshin17ed4a62005-07-25 17:10:24 +000074the page.</span></li>
kprice9c922d82006-08-30 22:07:19 +000075
syeshin17ed4a62005-07-25 17:10:24 +000076</ol>
kprice9c922d82006-08-30 22:07:19 +000077
syeshin17ed4a62005-07-25 17:10:24 +000078</div>
kprice9c922d82006-08-30 22:07:19 +000079
80<div><div class="relconcepts"><strong>Related concepts</strong><br />
81<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
82languages</a></div>
syeshinaaa21932005-09-22 17:13:22 +000083</div>
kprice9c922d82006-08-30 22:07:19 +000084<div class="reltasks"><strong>Related tasks</strong><br />
85<div><a href="tsrcedt025.html" title="">Setting preferences for structured
86text editors</a></div>
87</div>
88</div>
89
syeshin17ed4a62005-07-25 17:10:24 +000090</body>
91</html>