#292 Dont fold last line of a section of its a comment

texmakerx (141)

In large source files, I often place a comment before each new section (or subsection) e.g.


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

    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.

  • Tim Hoffmann

    Tim Hoffmann - 2015-06-29
    • status: open --> wont-fix
    • Group: -->
  • Benito van der Zander

    • status: wont-fix --> open
  • Benito van der Zander

    Everything is possible with QCodeEdit


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks