Protein PDB/CIF text file reader that can fold a same section into one line
Programs that work with PDB and mmCIF files may present the structure as a tree, for example:



(this is a Find dialog from ccp4MG)

but I'd be surprised if a text editor had such a feature. Normally, you don't edit PDB files in a text editor.