Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: killerbot on October 24, 2005, 01:58:05 pm
-
Dear all,
I have created a new plug-in which allows you to jump to the matching brace.
I provided menu entries in : Edit-menu and the right-click context menu in the editor pane.
The shortcut is : ctrl-shift-b, just like it is in Dev-cpp.
The sources, together with a compiled dll (compiled on WinXP SP2, wxWindows 2.4.2) can be found here :
http://users.pandora.be/lieven.de.cock/CodeBlocks/MatchingBrace.zip .
For the windows folks, just copy the dll into <Code::Blocks-dir>\share\plugins
I hope you like it, I will provide some more info in a tutorial on the wiki on how the code actually works (so you get to know some api functions).
TO DO for version 1.1: when there is no editor open, the menu entries should be disabled and should become enabled again when a new editor is present.
kind regards,
Lieven
PS : Yiannis feel free to add this as core functionality, it is kind of overkill maybe to have a plug-in for such a small "added" functionality ?
-
Thanks Lieven :)
I guess I 'll add the functionality to the core.
-
It is not compatible with 1.0RC2 due to wxWindows, I will provide an updated version, just for educational purposes, since the real functionality will be inserted in the core.
-
Dear all,
I have upgraded the plug-in for RC2.
You can download it at :
http://users.pandora.be/lieven.de.cock/CodeBlocks/MatchingBraceForRC2.zip
Enjoy,
Lieven
-
Dear all,
I have upgraded the plug-in for RC2.
You can download it at :
http://users.pandora.be/lieven.de.cock/CodeBlocks/MatchingBraceForRC2.zip
Enjoy,
Lieven
Thanks, I download this version and compile for SVC (RC2) version C::B.
It's work, great!
I must edit a project options for compile:
Custom variables:
CB_SDK=C:\codeblocks
on
CB_SDK=C:\Devel\codeblocks\src
Accent on "\src" here.
Directories/Compiler:
$(CB_SDK)\sdk\include
on
$(CB_SDK)\sdk
$(CB_SDK)\sdk\include\tinyxml
on
$(CB_SDK)\sdk\include
$(CB_SDK)\sdk\include\wxscintilla\include
on
$(CB_SDK)\sdk\wxscintilla\include
Building Ok. Copy dll and use it.
-
For those RC2 users : now link in the forum directly.
Lieven
PS : Consider this plug-in to be obsolete now for svn head users, this functionality is now in the core of CB.
[attachment deleted by admin]