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

None
open
nobody
texmakerx (141)
2
2015-07-10
2012-05-25
Anonymous
No

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.

Discussion

  • 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