blob: 471b837b5d345505d582a5b012d57b18f3f5f30d [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--Arbortext, Inc., 1988-2005, v.4002-->
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
"..\dtd\task.dtd">
<task id="tsrcedt001" xml:lang="en-us">
<title>Setting annotation preferences for markup languages</title>
<titlealts>
<navtitle>Setting annotation preferences</navtitle>
</titlealts>
<shortdesc>This documentation describes how to set <term>annotation preferences</term> 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.</shortdesc>
<prolog><metadata>
<keywords><indexterm>annotation preferences<indexterm>markup language settings</indexterm></indexterm><indexterm>markup languages<indexterm>setting annotation preferences</indexterm></indexterm>
</keywords>
</metadata></prolog>
<taskbody>
<context> <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><note>Highlighting is fully dynamic
with the exception of search results. Search results are highlighted based
upon what has been saved to disk.</note><note type="tip">You can improve a
structured text editor's performance by turning off the real-time validation.</note><p>To
set annotation preferences, complete the following steps:</p> </context>
<steps>
<step><cmd>Click <menucascade><uicontrol>Window</uicontrol><uicontrol>Preferences</uicontrol>
</menucascade>.</cmd><stepresult>A Preferences window appears.</stepresult>
</step>
<step><cmd>In the Preferences window, click <menucascade><uicontrol>Workbench</uicontrol>
<uicontrol>Editors</uicontrol></menucascade>.</cmd></step>
<step><cmd>Select one of the following options:</cmd>
<choices>
<choice>To turn off real-time syntax validation, click <uicontrol>Structured
Text Editor</uicontrol> and uncheck the <uicontrol>Analyze annotations while
typing</uicontrol> box.</choice>
<choice>To control other annotation settings, click <uicontrol>Annotations</uicontrol> and
select your annotation preferences.</choice>
</choices>
</step>
<step><cmd>Click <uicontrol>OK</uicontrol> to save your preferences and close
the page.</cmd></step>
</steps>
</taskbody>
<related-links>
<linkpool type="concept">
<link href="csrcedt004.dita"><linktext>Structured text editors for markup
languages</linktext></link>
</linkpool>
<linkpool type="task">
<link href="tsrcedt025.dita"><linktext>Setting preferences for structured
text editors</linktext></link>
</linkpool>
</related-links>
</task>