Source Editor - Collapse and Expand Code

Some XML files may be very complex, especially if you view their source. Heretto CCMS enables you to collapse and expand elements in the Source Editor.

Collapsing some code parts enables you to focus on a given part of the code. By default, all elements are expanded when you open a file in the Source Editor. The following example shows a concept topic with every element expanded.

Figure 1. Expanded Elements
An example of a concept topic opened in the Source Editor with all elements expanded.

Imagine that you want to focus only on the first section element in this concept topic. You can collapse irrelevant elements to limit distractions and increase readability. The following example shows the same concept topic with some elements collapsed, in this case the second section element.

Figure 2. Collapsed Element
A concept topic opened in Source Editor with the second section element collapsed.