Author Topic: New Folding Issue  (Read 14444 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: New Folding Issue
« Reply #15 on: July 24, 2006, 04:37:49 pm »
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


Offline jeancf

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: New Folding Issue
« Reply #16 on: December 14, 2006, 11:12:46 am »
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

Offline joubertdj

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: New Folding Issue
« Reply #17 on: December 14, 2006, 12:52:48 pm »
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...

Offline joubertdj

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: New Folding Issue
« Reply #18 on: December 14, 2006, 02:58:31 pm »
 :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
« Last Edit: December 14, 2006, 03:03:45 pm by joubertdj »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: New Folding Issue
« Reply #19 on: December 14, 2006, 03:04:47 pm »
What is the 'language' that you 're referring to? Isn't cbEditor::GetLanguage( ) enough?
Be patient!
This bug will be fixed soon...

Offline joubertdj

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: New Folding Issue
« Reply #20 on: December 14, 2006, 03:21:17 pm »
 :lol: That was actually what I was looking for... Hehehehe

Offline jeancf

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: New Folding Issue
« Reply #21 on: April 10, 2007, 10:46:09 am »
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