Bug 126673

Summary: code folding not really working with php
Product: [Applications] kate Reporter: Martin Ereth <martin.ereth>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Martin Ereth 2006-05-03 14:59:52 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Unlisted Binary Package
OS:                Linux

The code folding for php fuctions or code blocks (the small plus sign on the left of the editor) isn't working properly. 

It should fold code blocks by searching for the corresponding closing curly bracket ({}) instead of guessing the end. Empty lines should not be a ending point of a code folding activity.

Because code folding is dependent on the written language it should behave right for each language. After knowing (chosen or guessed) what type of language is open, quanta is able to offer code foldings the right way.

Thanks for your work!
Martin Ereth
Comment 1 András Manţia 2006-05-03 18:11:14 UTC
Code folding is done by the Kate part => reassigning.
Comment 2 András Manţia 2006-05-03 18:11:33 UTC
Code folding is done by the Kate part => reassigning.
Comment 3 Dominik Haumann 2006-05-03 18:20:53 UTC
...which raises the question, whether KTextEditor needs a code folding API. KDevelop parses C++ code pretty good now, from what I've heard, so it could set folding too. Same applies for Quanta.
Comment 4 Thomas Friedrichsmeier 2007-12-07 16:15:13 UTC
This report is a bit thin on details what exactly goes wrong, and under what circumstances, but I strongly suspect it's a duplicate of bug #103257 . 

Marking as such. If it's not, please add more detail.

*** This bug has been marked as a duplicate of 103257 ***