Help > Authoring > Using Markup > Setting Markup-Related Preferences
  
Setting Markup-Related Preferences
You can set editing conditions that affect markup. Some are controlled by preferences, which you set using the Tools > Preferences dialog box. Others are menu commands that you can enable or disable. The following list describes each setting or command affecting markup and how to set it.
You can enforce context rules. Context rules ensure all markup is inserted in the proper context. To turn on context rules, go to Tools > Context Rules.
If you disable context rules (for example, to open a file out-of-context), you will need to fix any incorrect markup to produce a valid document.
Insert Required Elements setting provides automatic insertion of required elements, such as inserting both chapter and title tags when chapters require title tags. To turn on required tags, go to Tools > Preferences, choose the Edit category and check Insert Required Elements.
If you insert an element tag with attributes, you can open the Modify Attributes dialog box automatically. To turn on prompting for attributes, go to Tools > Preferences, choose the Edit category and check Prompt for Attributes.
When modifying attribute values for an element tag, you can force the Modify Attributes dialog box to remain open until you enter all the required attribute values. To turn on required attributes editing, go to Tools > Preferences, choose the Edit category and check Force Required Attributes Entry.
You can ensure that both the start and end tags of a tag pair are always selected when highlighting. To turn on balanced tag selection, go to Tools > Preferences, choose the Edit category and check Keep Selection Tag Balanced.
To delete a highlighted selection automatically as you type or insert a tag, you can enable Typing Replaces Selection. To turn on selection replacement, go to Tools > Preferences, choose the Edit category and check Typing Replaces Selection.