Source Actions

The following actions are available from the Document > Source menu or the Source submenu when invoking the contextual menu in Text mode:
To Upper Case
Converts the content selection to upper case characters.
To Lower Case
Converts the content selection to lower case characters.
Capitalize Lines
It capitalizes the first letter found on every new line that is selected. Only the first letter is affected, the rest of the line remains the same. If the first character on the new line is not a letter then no changes are made.
Join and Normalize Lines
For the current selection, this action 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.
Shift Right Tab
Shifts the currently selected block to the right.
Shift Left Shift Tab
Shifts the currently selected block to the left.
Escape Selection ...
Escapes a range of characters by replacing them with the corresponding character entities.
Unescape Selection ...
Replaces the character entities with the corresponding characters.
Indent selection Ctrl I (Command I on OS X)
Corrects the indentation of the selected block of lines if it does not follow the current indenting preferences.
Format and Indent Element Ctrl Shift I
Pretty prints the element that surrounds the current caret position.
Insert XInclude
Displays a dialog that allows you to browse and select the content to be included and automatically generates the corresponding XInclude instruction.
Note: In the Author mode, this dialog presents a preview of the inserted document as an author page in the preview tab and as a text page in the Source tab. In the Text mode, the Source tab is presented.
Import entities list
Displays 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, choosing the files chapter1.xml and chapter2.xml inserts the following section in the DOCTYPE:
     <!ENTITY chapter1 SYSTEM "chapter1.xml">
     <!ENTITY chapter2 SYSTEM "chapter2.xml"> 
Format and Indent
Performs a format and indent (pretty print) action on the current document.
Document > Source > Lock / Unlock the XML Tags
Disables or enables editing of XML tags.

The following actions are only available from the Source submenu when invoking the contextual menu in Text mode:

Document > Source > Insert new line after
This useful action has the same result with moving the caret to the end of the current line and pressing the ENTER key.
Canonicalize
Opens the Canonicalize dialog that allows you to select a canonicalization algorithm to standardize the format of the document.
Sign
Opens the Sign dialog that allows you to configure a digital signature for the document.
Verify Signature
Allows you to specify the location of a file to verify its digital signature.