kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 2 | <!--Arbortext, Inc., 1988-2006, v.4002-->
|
| 3 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
|
| 4 | "task.dtd">
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 5 | <task id="txedtsrc" xml:lang="en-us">
|
| 6 | <title>Editing in the Source view</title>
|
| 7 | <titlealts>
|
| 8 | <searchtitle>Editing in the Source view</searchtitle>
|
| 9 | </titlealts>
|
| 10 | <shortdesc>You can use the Source view to view and work with a file's source
|
| 11 | code directly.</shortdesc>
|
| 12 | <prolog><metadata>
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 13 | <keywords><indexterm>XML editor<indexterm>Source view</indexterm></indexterm>
|
| 14 | </keywords>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 15 | </metadata></prolog>
|
| 16 | <taskbody>
|
| 17 | <context><p> The Source view has many text editing features, such as:</p><dl>
|
| 18 | <dlentry>
|
| 19 | <dt>Syntax highlighting</dt>
|
| 20 | <dd>Each tag type is highlighted differently, enabling you to easily find
|
| 21 | a certain kind of tag for editing. In addition, syntax highlighting is valuable
|
| 22 | in locating syntax errors. For example, if you begin a comment in the middle
|
| 23 | of the document with <codeph><!--</codeph> everything until the next <codeph>--></codeph> is
|
| 24 | considered a comment, and will be highlighted accordingly. The large highlighted
|
| 25 | area will indicate that you need to add <codeph>--></codeph> to close the
|
| 26 | comment.<p>You can customize the syntax highlighting. Refer to the related
|
| 27 | tasks for more information.</p></dd>
|
| 28 | </dlentry></dl><dl><dlentry>
|
| 29 | <dt>Unlimited undo and redo</dt>
|
| 30 | <dd>These options allow you to incrementally undo and redo every change made
|
| 31 | to a file for the entire editing session. For text, changes are incremented
|
| 32 | one character or set of selected characters at a time.</dd>
|
| 33 | </dlentry><dlentry>
|
| 34 | <dt>Content assist</dt>
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 35 | <dd>Content assist helps you finish tags and insert macros. Refer to the related
|
| 36 | task for more details.</dd>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 37 | </dlentry><dlentry>
|
| 38 | <dt>Template</dt>
|
| 39 | <dd>You can access templates (using content assist) to help you quickly add
|
| 40 | regularly-used tagging combinations. Refer to the related task for more details.</dd>
|
| 41 | </dlentry><dlentry>
|
| 42 | <dt>Node selection</dt>
|
| 43 | <dd>Based on the location of your cursor (or selection in the Outline view),
|
| 44 | the node selection indicator highlights the line numbers that include a node
|
| 45 | (for example, an element or attribute), in the vertical ruler in the left
|
| 46 | area of the Source view.</dd>
|
| 47 | </dlentry><dlentry>
|
| 48 | <dt>Pop-up menu options</dt>
|
| 49 | <dd>From the editor's pop-up menu, you have many of the same editing options
|
| 50 | available as you do from the workbench <b>Edit</b> menu. You can select menu
|
| 51 | options such as: <uicontrol>Cleanup Document,</uicontrol> to open the <uicontrol>Cleanup</uicontrol>
|
| 52 | dialog, which contains settings to update a document so that it is well-formed
|
| 53 | and formatted and <uicontrol>Format,</uicontrol> which formats either the
|
| 54 | entire document or selected elements.</dd>
|
| 55 | </dlentry><dlentry>
|
| 56 | <dt>"Smart" double clicking</dt>
|
| 57 | <dd>You can use double-click to select attribute values, attribute-value pairs,
|
| 58 | and entire tag sets to quickly update, copy, or remove content.</dd>
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 59 | </dlentry></dl><p>To open an XML file to edit, right-click the file in the
|
| 60 | Navigator view and select <uicontrol>Open With > XML Editor</uicontrol>. Click
|
| 61 | the <uicontrol>Source</uicontrol> to see the Source view.</p><p>Edit the code
|
| 62 | as necessary, using any of the available features. As you move the cursor
|
| 63 | within your XML file (or select items from the Outline view), the node selection
|
| 64 | indicator will highlight the line numbers that encompass the node (for example,
|
| 65 | an element or attribute). You can use smart double-clicking behavior to select
|
| 66 | attribute values, attribute-value pairs, and entire tag sets to quickly update,
|
| 67 | copy, or remove content. <?Pub Caret?>If desired, validate and save the XML
|
| 68 | file.</p></context>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 69 | <result><p>Any changes you make in the Source view are also reflected in the
|
| 70 | Design view and the Outline view.</p></result>
|
| 71 | </taskbody>
|
| 72 | </task>
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 73 | <?Pub *0000003781?>
|