User forums > Using Code::Blocks
[REQUEST][DONE thanx to Wxlearner] Now hide BLACK FOLD LINES in the editor!
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:
--- 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);
--- End code ---
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.
--- End quote ---
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.
--- End quote ---
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.
--- End quote ---
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:
--- 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);
--- End code ---
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.
--- End quote ---
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
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version