4.8. Other types of markup

Apart from elements and entity references, the following types of markup are supported by epcEdit:

4.8.1. Marked sections

The content of a marked section is displayed between marked section tags that contain the status of the marked section.

Figure 4-2. Marked section tags

Marked sections are inserted into a document by using the Insert MS command from the Extra menu. Any text that is selected will be moved into the marked section.

The content of a marked section can be edited like any other part of the document with the restrictions imposed by the type of the marked section.

A marked section is deleted from a document by selecting a region containing the marked section and deleting the selected region or selecting Delete Marked Section from the Extra menu. The same operation is available by right-clicking on one of the marked section tags and selecting Delete Marked Section from the context menu.

If the content of the marked section is allowed to appear outside of a marked section, it is possible to remove a marked section by selecting Delete Marked Section from the Extra menu or by right-clicking on one of the marked section tags and selecting Remove Marked Section from the context menu.

4.8.2. Comments

Comments in a document are shown by a pair of comment tags.

Figure 4-3. Comment tags

Comments are created with the Insert comment command from the Extra menu. Any selected text will be become part of the comment.

The text of the comment can be edited like any other text, but it is not possible to insert any markup inside of a comment.

Comments are deleted by selecting a region containing the start and end tag of the comment and deleting the selected region or by selecting Delete Comment from the Extra menu. The same operation is available by right-clicking on one of the comment tags and selecting Delete Comment from the context menu.

If the content of a comment is allowed to occur outside of the comment, the comment tags can be removed by selecting Remove Comment from the Extra menu or by right-clicking on one of the comment tags and selecting Remove Comment from the context menu.

4.8.3. Processing instructions

Like comments, processing instructions (PIs) are displayed by a pair of PI tags. The beginning of the PI text appears in the start tag of the PI and the end tag of the PI is empty.

Figure 4-4. PI tags

PIs are entered or modified with the Insert PI and Edit PI from the Extra menu.

PIs are deleted by selecting a region containing the start and end tag of the comment and deleting the selected region or by selecting Delete PI from the Extra menu. The same operation is available by right-clicking on one of the PI tags and selecting Delete PI from the context menu.

epcEdit displays a start and end tag for the PI so that it is possible to unambiguously select a PI by positioning the insertion cursor between the start and end tags. It is not possible to insert any text or markup between the start or end tags of the PI.