Chapter 5. Controlling the document display

There are two ways to influence how the content of a document is displayed by epcEdit:

There are four display options that can be modified from the main menu or by clicking on one of the display buttons at the lower left corner of the document pane.

Tags

The display of markup tags can be disabled by selecting View->Tags from the main menu or by clicking on the Show Tags button in the document pane.

Clicking the button or invoking the menu command toggles the state of the tag display, i.e. it turns the display of markup tags on if they are currently off and it turns them off in they are currently on.

Attributes

Attributes and their values can be hidden or shown inside the markup tags by selecting View->Attributes from the main menu or by clicking on the Show Attributes button in the document pane.

Entity names

Entity references can be shown by entity name or as a replacement string (if defined). The current display setting for entity references can be modified by selecting View->Entity Names from the main menu or by clicking on the Entity Names button in the document pane.

Whitespace

Ignorable white space (i.e. blanks and tabs) that occur at locations where they will be discarded by an SGML/XML system are normally shown as empty space. This display can be changed by selecting View->Whitespace chars from the main menu or by clicking on the View Whitespace button in the document pane.

Among these options, the tags status has special significance: By turning the tags off, you will see the document text without any markup tags. Depending on the style sheet settings, this view of your document may be close to what you can expect from the printed or online version of your document.

While tags are turned off, it is difficult to see how any editing operations interfere with the markup of your document. epcEdit tries to assist you in editing your document while tags are turned off by informing you about any changes of the context of the insertion cursor. If you move the insertion cursor from one element to another while tags are turned off, the element path at the bottom of the document pane will be highlighted for a few moments to inform you about the context change.

When you move the insertion cursor to the left or right with the arrow keys while tags are turned off and the cursor moves from one element into an adjacent element, the element path is highlighted and the insertion cursor remains on the same screen position. Pressing the same arrow key again will move the insertion cursor to the next (or previous) character position.

5.1. Screen width

epcEdit will use the available width of the document window to display the content of your document in order to maximize the amount of visible information. This means that the screen width of the document window controls the line wrapping of your document.

It is possible to tell epcEdit to wrap lines at a preset right margin and use a left margin when displaying a document. This allows you to view your document with a page-like layout. The relevant settings for this layout are defined in the Page Layout dialog.

Follow these steps to turn the page layout mode on:

Showing page layout

  1. Select File->Page Layout... from the main menu to display the page layout dialog.

  2. Adjust the settings for the desired page layout and press the Ok button.

  3. Select View->Page Layout from the main menu to turn the page layout mode on. Select this option again to turn page layout mode off.

The page layout mode affects only the horizontal text flow. Page breaks are determined when a document is printed.