News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

New Folding Issue

Started by Vampyre_Dark, July 21, 2006, 03:32:11 AM

Previous topic - Next topic

tiwag

Quote from: PhyloGenesis on July 24, 2006, 09:19:15 AM
If there are residual problems, (such as the folder no longer finds the close brace) let me know, I'll do a more detailed check and get back on how to do it.

try and debug it and then post a patch at berlios


jeancf

I am using the latest nightly and folded code still shows only opening braces. Has this been implemented? Or is it an option that should be enabled somewhere maybe?

This is a really important feature for me as looking at the folded code with all these unclosed braces makes me very uncomfortable ;-) Seriously, keeping the closing brace visible when the code is folded would improve readability a lot.

Thanks,

/~jc

joubertdj

The trick is that at each where the "{" and "}" character is...
It has nothing to do with AStyle (I thought it did, but I was wrong)
Within the scintilla source directory is a file called LexCPP.cxx You will probably have to go and edit this file so that it will have an additional check clause if the "{" and "}" characters are alone on a line, then it should be the previous non-white line that needs to be the fold header...

:lol:

{EDIT} This just means allot of coding and debugging...

joubertdj

#18
 :oops: Okay so here is a silly question maybe... how do I identify the language that the current editor is handling regarding lexing and folding?

[EDIT] :oops: My Bad... found it ... duh

mandrav

What is the 'language' that you 're referring to? Isn't cbEditor::GetLanguage( ) enough?
Be patient!
This bug will be fixed soon...

joubertdj

 :lol: That was actually what I was looking for... Hehehehe

jeancf

Hi,

I would really like to see this improved code folding implemented but I checked the latest nightly build and it is not. Do I need to post a bug for somebody to look at it?

/~jc