Espresso

Code Folding

Whether you are coding HTML or PHP, your code will have large chunks of content that can be logically grouped together. In HTML, these are your various tags. In PHP and other programming languages they are your functions, classes, and conditional blocks.

For most languages, when Espresso reads your file to color it, it also breaks it into these chunks. They are what you fold, and they are what the outline and the path bar show.

Folding

Code folding allows you to hide sections of your code that you are not actively editing, to make it easier to focus on the portions that need your attention.

To see what can be folded, move the pointer over the line numbers. The folding ribbon appears, shaded to show the sections of the code. Click an arrow or a shaded segment in the ribbon to fold that code.

Click a closed arrow or the ...button to unfold the code.

From the keyboard, use the View ⟩ Code Folding menu:

The portions of your code that can be folded vary from language to language; some third party language plug-ins may not support code folding at all.

The Navigator

Earlier versions of Espresso listed a document's structure in the Navigator, at the side of the window. Its place has been taken by the outline, which opens from Edit ⟩ Show Outline (control 6), and by the path bar at the foot of the editor.