Bug 126673 - code folding not really working with php
Summary: code folding not really working with php
Status: RESOLVED DUPLICATE of bug 103257
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-03 14:59 UTC by Martin Ereth
Modified: 2007-12-07 16:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***