The best part is that the File Navigator can provide this magic for any kind of text file. All it needs is a file navigation scheme. EditPad Pro ships with a large number of such file navigation schemes for many different file types. For many file formats, multiple schemes are provided. E.g. for HTML files, there's a scheme showing just the headings, and another showing all HTML tags.
If your favorite file type is not supported, or its scheme doesn't work the way you want, you can create your own fine navigation scheme for that file type. After creating your scheme, you can upload it to this web site (see below) and share it with other people. If you're lucky, somebody else may have already created a file navigation scheme to your liking. In that case, you can simply download and install that scheme.