This menu item is available only when the "Edit source" add-on has been installed.
The "Edit source" add-on adds an " " item at the end of the menu. Selecting this item replaces the current styled or tree view by a source view of the document being edited.
The source view of a document shows the contents of the save file which would be created by XXE for this document (same automatic indentation, same named character entities, etc).
The source view of a document embeds an advanced text editor having the following capabilities.
Syntax highlighting.
Element folding.
Auto-completion (after pressing Ctrl+SPACE) for element names, attribute names, attribute enumerated values and named character entities.
"Not well-formed" errors are reported in really time.
Limitations:
Validity errors are not reported in really time.
Auto-completion suggests all the child element names regardless of whether this would make the parent element invalid. For example, auto-completion will suggest child element title
even when the chapter
parent element already has a title
.
In addition to the keyboard shortcuts found in all text editors, the source view also supports the following shortcuts:
Keyboard Shortcut | Description |
---|---|
Ctrl+SPACE (Ctrl even on the Mac) | Auto-completion for element names, attribute names, attribute enumerated values and named character entities.
|
Ctrl+F (Cmd on the Mac) | Find. Press Ctrl+Shift+F to find backwards. |
Ctrl+G | Find again. Press Ctrl+Shift+G to find again backwards. |
Ctrl+M | Replace. Press Ctrl+Shift+M to replace backwards. |
Ctrl+Shift+L | Goto line. |