In large source files, I often place a comment before each new section (or subsection) e.g.
%===CONTRIBUTION===================================================================================
\subsection{Contribution}
This helps find bits of paper when quickly scrolling through stuff, but when I collapse the section above my nice divider comment is folded away. It would be nice if the editor could check if the last line of an area to be folded is a comment and then move the boundary of what is folded up one line. Note, visual studio and, I believe eclipse, both do this.
Tim Hoffmann
2012-06-21
The blocking and folding is done by the editor component (QCodeEdit). The complete language folding and highlighting is specified in tex.qnfa. I don't think this can be adapted with reasonable effort to include the above case.
You may consider using the structure view for navigation instead of manually scrolling through the document.