The following actions can be applied on the text content of the XML editor:
contextual menu of current
editor > Source > Escape Selection ... - Escapes a range of characters by replacing them with the corresponding
character entities.
contextual menu of current
editor > Source > Unescape Selection ... - Replaces the character entities with the corresponding characters.
contextual menu of current
editor > Source > Indent selection (Ctrl
+ I)( (Cmd + I on Mac
OS)) - Corrects the indentation of the selected block of lines if it does not
follow the current indenting preferences of the
user.
contextual menu of current
editor > Source > Format and Indent Element
(Ctrl + Shift + I) - Pretty prints the element that surrounds the caret position.
contextual menu of
current editor > Source > Insert XInclude - Shows a dialog that allows you to browse and select the content to be
included and generates automatically the corresponding XInclude instruction.
contextual menu of current
editor > Source > Import entities list - Shows a dialog that allows you to select a list of files as sources for
external DTD entities. The internal subset of the DOCTYPE declaration of your document will
be updated with the chosen entities. For instance, if choosing the file
chapter1.xml and chapter2.xml, the following
section is inserted in the DOCTYPE:
<!ENTITY chapter1 SYSTEM "chapter1.xml">
<!ENTITY chapter2 SYSTEM "chapter2.xml">
contextual menu of current
editor > Join and normalize - The action works on the selection. It joins the lines by replacing the
line separator with a single space character. It also normalizes the whitespaces by
replacing a sequence of such characters with a single space.