Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: foldingBLACKlinesSUCK on March 14, 2007, 08:18:06 pm

Title: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: foldingBLACKlinesSUCK on March 14, 2007, 08:18:06 pm
Thankx to Wxlearner for his help... Download the dll from his post below!  :D

ScreenShot of Code::Blocks Editor[Good, But My request for change will make it the best!]  (http://img359.imageshack.us/my.php?image=problembw6.jpg)
ScreenShot of Visual C++ Editor[Better!] (http://img508.imageshack.us/img508/5598/vcexpress05ch6.jpg)

1) Do you really like the DARK BLACK lines after folded blocks, Aren't they distracting?
2) Can really focus on what you do?
3) Doesn't it make the interface cluttery?
I felt so... I absolutely donot know what scintella is, nor do I want to! I need to resume my work.. so I hope someone undertakes my request!  :(

Please... I kindly request you all to cast a vote honestly.... Everyone should enjoy their his right to suffrage!  :D
Actual Poll above, So Speak OUT there!
These are the previous votes[from locked thread]:
(http://img476.imageshack.us/img476/5614/votehr5.jpg) (http://imageshack.us)

I hope this post looks kind & like a request....[I'm still revising this post...]
PS: I am currently in the process of gathering all threads related to this topic!


Sorry, Due to lack of sleep, my previous topic might have appeared rampant to  you all....
Title: Re: Request for removal of BLACK FOLD LINES. Come Speak out! U've the right to v
Post by: saddam le pion on March 14, 2007, 08:42:48 pm
You are right, the code is hard to read.
Title: Re: Request for removal of BLACK FOLD LINES. Come Speak out! U've the right to v
Post by: kkez on March 14, 2007, 08:48:36 pm
I do want (and love) the black fold line. It's the fastest way to see if a block is folded or not.

By seeing your code, you might get less black lines if you put a newline between the function's last parenthesis and the curly bracket.
Code
void function() 
{ //...

Apart from my opinion, this is a feature request you should ask to scintilla's team. I kindly request you to know things before asking.
Title: Re: Request for removal of BLACK FOLD LINES. Come Speak out! U've the right to v
Post by: foldingBLACKlinesSUCK on March 14, 2007, 08:53:10 pm
I do want (and love) the black fold line. It's the fastest way to see if a block is folded or not.

By seeing your code, you might get less black lines if you put a newline between the function's last parenthesis and the curly bracket.
Code
void function() 
{ //...

Apart from my opinion, this is a feature request you should ask to scintilla's team. I kindly request you to know things before asking.

i would always protect my original source, That's just the PUBLIC graphics.c (if you are familiar with what it is! I donot program for P.C's but portable's).

Just like other editor, in order to distinguish between a folded block without a line, this would be better:
[PIC in 1st post edited]
Title: Re: Request for removal of BLACK FOLD LINES. Come Speak out! U've the right to v
Post by: saddam le pion on March 14, 2007, 09:11:14 pm
It's the fastest way to see if a block is folded or not.

Personally, i only look at the minus/plus sign; it is enough. The black lines are an annoyance; in fact, they are one of the reasons why i use another IDE (2 in fact) in parallel with CB, because they have not these lines.

This debate around these black lines remind me of another very similar debate: the table borders in html code.
For this debate, the lines presence or not, and their best size have been scientifically, carefully studied. It has been proven that they are an annoyance, and must be removed in almost any case. Afterward, a dedicated website has been created to explain everything.
What is also interesting, is that the scientific reasons why table borders must not be present in html code, are fully appliable to our debate about black lines in CB.
Title: Re: Request: Option to hid BLACK FOLD LINES. Come Speak out! U've the right to v
Post by: idhan on March 15, 2007, 12:06:05 am
Its clear that for some user the black fold lines are useful and for others not. Personally I don't like this feature. I prefer the visual studio style.

Quote
void metod1()
{..}
 int data()
{..}

The best solution is to be an optional feature, that way all the users get what they need :-)
Title: Re: REQUEST: An Option to hide BLACK FOLD LINES. Speak out! U've the right to vo
Post by: courage on March 15, 2007, 02:28:26 am
I felt so... I absolutely donot know what scintella is, nor do I want to! I need to resume my work.. so I hope someone undertakes my request!  :(

Hmm...... I think to support different options might be a long way to go. :?
Please see scintella screenshot (http://scintilla.sourceforge.net/SciTEImage.html).
Title: Re: REQUEST: An Option to hide BLACK FOLD LINES. Speak out! U've the right to vo
Post by: Biplab on March 15, 2007, 05:09:22 am
I wanted to reply your last thread. But it was closed.

I felt so... I absolutely donot know what scintella is, nor do I want to! I need to resume my work.. so I hope someone undertakes my request!  :(

FYI, wxScintilla (A derivative of Scintilla) is one of the core components of Code::Blocks (C::B). This is NOT Developed or Maintained by C::B team. We'll take up and fix a problem, iff the problem is in implementation of wxScintilla in C::B. We're not bothered about fixing any bugs or adding any new features in Scintilla or wxScintilla. It's beyond our scope.

So if you don't want to understand the problem and just yell on us that it sucks!!, any moderator will close your threads as the threads are very aggressive in nature.

Personally, i only look at the minus/plus sign; it is enough. The black lines are an annoyance; in fact, they are one of the reasons why i use another IDE (2 in fact) in parallel with CB, because they have not these lines.

Most commercial editors (MSVC, Borland Editors) do not use Scintilla and it could be one of the reasons that you don't see them.

If you are talking about wxDevC++, it's not using Scintilla (AFAIK). They use JVCL.

1) Do you really like the DARK BLACK lines after folded blocks, Aren't they distracting?
2) Can really focus on what you do?
3) Doesn't it make the interface cluttery?
To sum up, AFAIK, it's a problem in Scintilla. There's no such easily accessible function which can allow us to change it easily. So if it really bothers you, do the following.

1. First, request Scintilla team to add this feature in their upcoming releases.
2. Once they add it, then make a request to wxScintilla team to update their release.
3. After wxScintilla has been updated, put a post here.

Try some other Scintilla based Text Editors and IDE, the behaviour would be same; you'll see the black lines.
Title: Re: REQUEST: An Option to hide BLACK FOLD LINES. Speak out! U've the right to vo
Post by: saddam le pion on March 15, 2007, 07:20:05 am
Personally, i only look at the minus/plus sign; it is enough. The black lines are an annoyance; in fact, they are one of the reasons why i use another IDE (2 in fact) in parallel with CB, because they have not these lines.

Most commercial editors (MSVC, Borland Editors) do not use Scintilla and it could be one of the reasons that you don't see them.

Surely they don't use Scintilla; but the main point is that these companies carefully study everything. If they all choose NOT to put black line, it is NOT because their devs or someone else didn't like these lines.
As as pointed in my last post, they study scientifically how the brains react and take into account the presence or not of these lines. They concluded that the lines add supplementary work to the brain. The more there are lines on a screen, the more supplementary work for the brain. That means lesser time for the brain to think about everything else.
Title: Re: REQUEST: An Option to hide BLACK FOLD LINES. Speak out! U've the right to vo
Post by: courage on March 15, 2007, 07:33:28 am
The more there are lines on a screen, the more supplementary work for the brain. That means lesser time for the brain to think about everything else.

You are definitely right!
But we should request Scintilla team to support, shouldn't we?
Title: Re: REQUEST: An Option to hide BLACK FOLD LINES. Speak out! U've the right to vo
Post by: wxLearner on March 15, 2007, 03:07:33 pm
Hello,
personally I don't know, what folding is good for in an IDE like Code::Blocks. I think, the symbols browser is a much better solution to have an overview. If you compile Code::Blocks yourself, it isn't hard to patch Scintilla yourself. The location to look at, is the block starting at line 2915 in src/sdk/wxscintilla/src/scintilla/src/Editor.cxx. If you don't want to do it yourself, I've applied a small patch, so now the block looks like this:
Code
PRectangle rcFoldLine = rcLine;
rcFoldLine.top = rcFoldLine.bottom - 1;

rcFoldLine.right = xStart + 4;
surface->FillRectangle(rcFoldLine, vs.styles[STYLE_DEFAULT].fore.allocated);

rcFoldLine.left = rcFoldLine.right + 4;
rcFoldLine.right += 8;
surface->FillRectangle(rcFoldLine, vs.styles[STYLE_DEFAULT].fore.allocated);

rcFoldLine.left = rcFoldLine.right + 4;
rcFoldLine.right += 8;
surface->FillRectangle(rcFoldLine, vs.styles[STYLE_DEFAULT].fore.allocated);
and it makes the folding in Code::Blocks looks like in this screenshot (http://img139.imageshack.us/img139/6667/cbfoldzu9.jpg).
You can download the patched wxcintilla.dll here (http://fileho.com/download/64b40f279334/wxscintilla.7z.html) and extract it into your Code::Blocks folder. I've tested it with the latest nightly.
Title: Re: REQUEST: An Option to hide BLACK FOLD LINES. Speak out! U've the right to vo
Post by: ascxaxsvcbsxbbqvcxqsbcvxs on March 15, 2007, 03:37:37 pm
I think, the symbols browser is a much better solution to have an overview.
You're right; but the folding without black lines is also nice.

it makes the folding in Code::Blocks looks like in this screenshot (http://img139.imageshack.us/img139/6667/cbfoldzu9.jpg).
You can download the patched wxcintilla.dll here (http://fileho.com/download/64b40f279334/wxscintilla.7z.html) and extract it into your Code::Blocks folder. I've tested it with the latest nightly.
Well done!
Title: Re: REQUEST: An Option to hide BLACK FOLD LINES. Speak out! U've the right to vo
Post by: courage on March 15, 2007, 04:04:18 pm
You can download the patched wxcintilla.dll here (http://fileho.com/download/64b40f279334/wxscintilla.7z.html) and extract it into your Code::Blocks folder. I've tested it with the latest nightly.

Thanks a lot!  :)
Title: Re: REQUEST: An Option to hide BLACK FOLD LINES. Speak out! U've the right to vo
Post by: foldingBLACKlinesSUCK on March 15, 2007, 05:29:52 pm
Hello,
personally I don't know, what folding is good for in an IDE like Code::Blocks. I think, the symbols browser is a much better solution to have an overview. If you compile Code::Blocks yourself, it isn't hard to patch Scintilla yourself. The location to look at, is the block starting at line 2915 in src/sdk/wxscintilla/src/scintilla/src/Editor.cxx. If you don't want to do it yourself, I've applied a small patch, so now the block looks like this:
Code
PRectangle rcFoldLine = rcLine;
rcFoldLine.top = rcFoldLine.bottom - 1;

rcFoldLine.right = xStart + 4;
surface->FillRectangle(rcFoldLine, vs.styles[STYLE_DEFAULT].fore.allocated);

rcFoldLine.left = rcFoldLine.right + 4;
rcFoldLine.right += 8;
surface->FillRectangle(rcFoldLine, vs.styles[STYLE_DEFAULT].fore.allocated);

rcFoldLine.left = rcFoldLine.right + 4;
rcFoldLine.right += 8;
surface->FillRectangle(rcFoldLine, vs.styles[STYLE_DEFAULT].fore.allocated);
and it makes the folding in Code::Blocks looks like in this screenshot (http://img139.imageshack.us/img139/6667/cbfoldzu9.jpg).
You can download the patched wxcintilla.dll here (http://fileho.com/download/64b40f279334/wxscintilla.7z.html) and extract it into your Code::Blocks folder. I've tested it with the latest nightly.

EXCELLENT. Indeed Awsome... I was just in the process of looking through all the sources myself thinking that this would too be ignored... AWSOME once again...
Thanx, I am now a happy coder for Portables! Hope this gets stickied to help other if they too donot like these lines!

I thank this great community... The interface now looks A LOT better! :)
 
Thanks alll! Happy  :D

NEW  UPDATE: NOW I prefer Code::Blocks to VS2005's Editor!
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: idhan on March 16, 2007, 12:22:10 pm
Hi,

I have install CB using the last debian package for kubuntu, but how can I apply this patch????
I really want to use the same configuration, if I need to compile wxWidgets with the patch, someone can explain me step by step how to do that? because using the debian packages is automatic and I haven't see any CB code.

thanks a lot
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: thomas on March 16, 2007, 12:46:13 pm
I have install CB using the last debian package for kubuntu, but how can I apply this patch????
You cannot. If you want to apply this patch, you must compile Code::Blocks yourself from sources (and apply the patch to the respective part of the sources before that).
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: idhan on March 16, 2007, 12:51:21 pm
yes, but if I have to compile CB how can I do that was my next question, can you help me with that??
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: Pecan on March 16, 2007, 01:02:49 pm
yes, but if I have to compile CB how can I do that was my next question, can you help me with that??
   //-- Wiki Index
    CodeBlocks Wiki Index (http://wiki.codeblocks.org/index.php?title=Special:Allpages)
   //-- Wiki Main Page
     CodeBlocks Wiki Main Page (http://wiki.codeblocks.org/index.php?title=Main_Page)


Search the wiki index for "compiling" '"installing" "cookbook" etc
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: thomas on March 16, 2007, 01:17:57 pm
Basically it is as easy as ./bootstrap && ./configure && make && sudo make install

But there is a better way using fakeroot and debbuild... I don't remember the exact commands, though.
This way would produce a .deb package that you can install and uninstall cleanly.
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: ascxaxsvcbsxbbqvcxqsbcvxs on March 16, 2007, 02:19:31 pm
Surely they don't use Scintilla; but the main point is that these companies carefully study everything. If they all choose NOT to put black line, it is NOT because their devs or someone else didn't like these lines.
As as pointed in my last post, they study scientifically how the brains react and take into account the presence or not of these lines. They concluded that the lines add supplementary work to the brain. The more there are lines on a screen, the more supplementary work for the brain. That means lesser time for the brain to think about everything else.

Interesting explanation! we need these kind
I like specially the "supplementary work to the brain": that's exactly what i feel when reading code with the black lines, even before reading your post!  :D
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: phil_stennett on June 01, 2007, 10:19:21 am
Can someone please repost the dll or send it to me as the link is broken.
Thanks!
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: wxLearner on June 01, 2007, 11:29:32 am
I've reuploaded it here (http://www.savefile.com/files/770796).
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: foldingBLACKlinesSUCK on June 13, 2007, 07:55:48 pm
I've reuploaded it here (http://www.savefile.com/files/770796).

Thanks... Also Reenables support for the new dll...

-Another Happy CodeBlocks user!  :lol:
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: foldingBLACKlinesSUCK on September 02, 2007, 06:37:17 pm
I've reuploaded it here (http://www.savefile.com/files/770796).

Thanks... Also Reenables support for the new dll...

-Another Happy CodeBlocks user!  :lol:

Can anyone re-upload it?
Accidentally replaced the whole folder which replaced wxscintilla.dll!
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: foldingBLACKlinesSUCK on September 13, 2007, 09:56:37 pm
Pleeease... Can anyone patch the source ?  :? and build it.... KINDLY. Plz

Wxpack... and wxscintilla and wxwidgets, I simply can't get it to work  :(
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: JGM on January 05, 2008, 02:52:49 am
just for reference here is a better solution than patching wxscintilla, since it already provides some functions that make the work to hide the underlines when folding, the problem was that it was to hidden and not documented clearly.

Here is the solution
http://forums.codeblocks.org/index.php/topic,7543.0.html
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: foldingBLACKlinesSUCK on July 21, 2008, 09:43:35 pm
Totally eliminating underlines makes it very hard to pick out braces  :(

Does anyone have the upload by wxLearner (The updated link is broken) ?
or Could anyone patch wxScintilla please?   :o

My project has gone to such deep depths that I am NOT able to focus at all. Kindly help  :)

Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: JGM on July 22, 2008, 07:20:42 pm
Try using the folded line indicators as your guides (also try changing indicator style, it may help you another style), thats what I do and I don't get lost in long code.
Title: Re: [REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
Post by: foldingBLACKlinesSUCK on July 22, 2008, 10:42:52 pm
Try using the folded line indicators as your guides (also try changing indicator style, it may help you another style), thats what I do and I don't get lost in long code.

Since the beginning I had a problem with those black lines.

Even totally eliminating lines it is very hard to follow along with the code.

Can you compile wxScintilla with patches in first page?  :oops:

--

I will meanwhile try posting in sourceforge forum of wxScintilla.  :?