News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!

Started by foldingBLACKlinesSUCK, March 14, 2007, 08:18:06 PM

Previous topic - Next topic

foldingBLACKlinesSUCK

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!]
ScreenShot of Visual C++ Editor[Better!]

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]:


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....

saddam le pion


kkez

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.
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.

foldingBLACKlinesSUCK

Quote from: 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.
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]

saddam le pion

Quote from: kkez on March 14, 2007, 08:48:36 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.

idhan

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 :-)

courage

Quote from: foldingBLACKlinesSUCK on March 14, 2007, 08:18:06 PM
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.

Biplab

I wanted to reply your last thread. But it was closed.

Quote from: foldingBLACKlinesSUCK on March 14, 2007, 08:18:06 PM
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.

Quote from: saddam le pion on March 14, 2007, 09:11:14 PM
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.

Quote from: foldingBLACKlinesSUCK on March 14, 2007, 08:18:06 PM
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.
Be a part of the solution, not a part of the problem.

saddam le pion

Quote from: Biplab on March 15, 2007, 05:09:22 AM
Quote from: saddam le pion on March 14, 2007, 09:11:14 PM
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.

courage

Quote from: saddam le pion on March 15, 2007, 07:20:05 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?

wxLearner

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: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.
You can download the patched wxcintilla.dll here and extract it into your Code::Blocks folder. I've tested it with the latest nightly.

ascxaxsvcbsxbbqvcxqsbcvxs

Quote from: wxLearner on March 15, 2007, 03:07:33 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.

Quote from: wxLearner on March 15, 2007, 03:07:33 PM
it makes the folding in Code::Blocks looks like in this screenshot.
You can download the patched wxcintilla.dll here and extract it into your Code::Blocks folder. I've tested it with the latest nightly.
Well done!

courage

Quote from: wxLearner on March 15, 2007, 03:07:33 PM
You can download the patched wxcintilla.dll here and extract it into your Code::Blocks folder. I've tested it with the latest nightly.

Thanks a lot!  :)

foldingBLACKlinesSUCK

Quote from: 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: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.
You can download the patched wxcintilla.dll here 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!

idhan

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