https://bugs.kde.org/show_bug.cgi?id=419125
Bug ID: 419125 Summary: Code folding seems broken Product: kile Version: 2.9.93 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: editor Assignee: michel.lud...@kdemail.net Reporter: ville.aa...@gmail.com Target Milestone: --- Created attachment 126956 --> https://bugs.kde.org/attachment.cgi?id=126956&action=edit A minimal test case for bug SUMMARY Code folding seems to be broken in Kile. For example, \begin{document} will catch the first \end section as the end of the document. Supposedly, structures such as : % BEGIN something . . . % END something should be foldable, but are not (according to this: https://tex.stackexchange.com/questions/306546/code-folding-in-kile ). % BEGIN and % END are highlighted in blue, but no folding is possible; there will not be any folding notes available. I can not find any official documentation describing such feature, however it would be immensely useful to be able to fold structure of the document away. Also, it would be very useful to e able to fold away the preamble (part before \begin{document}. This is not possible at the moment. A minimal test case / file is attached. STEPS TO REPRODUCE 1. a) Add any section after \begin{document} with \end{whatever} 1. b) add a comment with % BEGIN something and later a comment % END something OBSERVED RESULT 1. a) observe clicking > (arrow / triangle) next to \begin{document} will fold until \end{whatever} 1. b) No folding node will be added at % BEGIN EXPECTED RESULT 1. a) Clicking folding note at \begin{document} should fold until \end{document}. It should not fold prematurely at \end{whatever} 1. a) % BEGIN ... % END should be usable and cause folding nodes to appear. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.18-2 (available in About System) KDE Frameworks 5.67.0 Qt 5.14.1 (käännetty versiolla 5.14.1) xcb-ikkunointijärjestelmä ADDITIONAL INFORMATION Kile 2.9.93 -- You are receiving this mail because: You are watching all bug changes.