Folding

Notepad++ supports so called folding for your text documents. This means that certain lines of your text can be hidden based on certain traits. This works well for structured languages such as C++ or XML . Blocks of texts are 'parented' to others and by folding them (also called collapsing) only the first line is visible. This works well if you want a quick glance at your document and skim for a relevant position. Unfolding the text (a.k.a. Expanding or Uncollapsing) shows the text again.

You can recognize text that can be folded by looking at the fold margin on the left. This margin shows icons and line to indicate the structure of the text (the appearance of the margin can be changed, see Styler Configurator and Preferences). The current lexer determines the structure (see Languages). By default, the fold margin shows boxes and lines to indicate the structure. A box with a minus sign () indicates the text can be collapsed. Inversely, a box with a plus sign () indicates the text can be expanded. Folded text is additionally indicated with a horizontal line where the text is collapsed. The first line of the collapsed text will always remain visible. Lines on the fold margin indicate that the textlines they run by are foldable. Vertical lines () indicate multiple lines that can be folded together as a group, which is terminated with a small horizontal line() or a box.

There are multiple ways to fold text.

To unfold folded text, use any of the following measures: p>Also note that if any change occurs in folded text, it will automatically unfold to show the text.