Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
indentation guilds highlight
blueshake:
Hello :
I found that indentation guilds can not highlight in codeblock.So I did a little work for it .
--- Code: ---Index: sdk/cbeditor.cpp
===================================================================
--- sdk/cbeditor.cpp (revision 5678)
+++ sdk/cbeditor.cpp (working copy)
@@ -2269,7 +2269,12 @@
ch == _T('}') || ch == _T(']') || ch == _T(')'))
{
if (newPos != wxSCI_INVALID_POSITION)
+ {
control->BraceHighlight(currPos, newPos);
+ int currColum = control->GetColumn(currPos);
+ int newColum = control->GetColumn(newPos);
+ control->SetHighlightGuide((currColum < newColum) ? currColum :newColum);
+ }
else
control->BraceBadLight(currPos);
}
--- End code ---
[attachment deleted by admin]
ollydbg:
Really Cool!
I would test it in my local copy.
I suggest you can file a "patch" in the berlios page.
geiermeier:
Now that someone mentions it, this is really a missing feature. I've been using my finger on the screen to memorize indentations a lot of times with CB. I hope the colour will be customizable?
blueshake:
it's a shame to say that I don't know how to make a patch actually .even I read the the article about it in wiki.the color can be changed if you change the brace highlight color .
ollydbg:
◎blueshake
1, register a user in BerliOS
2, add a patch entry in this page
http://developer.berlios.de/patch/?group_id=5358
:D
Navigation
[0] Message Index
[#] Next page
Go to full version