Download XML Editor 11.2 User Manual for Eclipse

Transcript
Authoring in the tagless editor
• In other cases the text nodes are wrapped.
Also, when formatting and indenting an element that is not in a space-preserve context,
additional Line Separators and white-spaces are added as follows:
• Before a text node that starts with a white-space.
• After a text node that ends with a white-space.
• Before and after CSS block nodes.
• If the current node has an ancestor that is a CSS table element.
Editing documents
You can insert space characters in any text nodes. Line breaks are permitted only in spacepreserve elements. Tabs are marked in the space-preserve elements with a little marker.
Note
CDATA sections, comments, processing instructions have by default the white-space CSS property set to "pre"
unless overridden in the CSS file you are using. Also they are considered to be block nodes.
Minimize differences between versions saved on different computers
The number of differences between versions of the same file saved by different content authors on different computers
can be minimized by imposing the same set of formatting options when saving the file, for all the content authors. An
example for a procedure that minimizes the differences is:
1.
Create an <oXygen/> project file that will be shared by all content authors.
2.
Set your own preferences in the following panels of the Preferences dialog: Editor / Format and Editor / Format
/ XML.
3.
Save the preferences of these two panels in the <oXygen/> project by selecting the button Project Options in
these two panels.
4.
Save the project and commit the project file to your versioning system so all the content authors can use it.
5.
Make sure the project is opened in the Project view and open your XML files in the Author mode and save them.
6.
Commit the saved XML files to your versioning system.
When other content authors will change the files only the changed lines will be displayed in your diff tool instead of
one big change that does not allow to see the changes between two versions of the file.
Change Tracking
Track Changes is a way to keep track of the changes you make to a document. You can activate change tracking for
the current document by choosing Edit+Track Changes or by clicking the Track Changes button located on the Author
toolbar. When Track Changes is enabled your modifications will be highlighted using a distinctive color. The name
of the author who is currently making changes and the colors can be customized from the Track Changes preferences
page.
190