Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: killerbot on October 24, 2005, 01:58:05 pm

Title: Matching Brace Plug-In
Post 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 ?

Title: Re: Matching Brace Plug-In
Post by: mandrav on October 24, 2005, 03:16:45 pm
Thanks Lieven :)
I guess I 'll add the functionality to the core.
Title: Re: Matching Brace Plug-In
Post by: killerbot on October 25, 2005, 05:43:19 pm
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.


Title: Re: Matching Brace Plug-In
Post by: killerbot on October 26, 2005, 09:34:11 am
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
Title: Re: Matching Brace Plug-In
Post by: kisoft on October 26, 2005, 10:16:02 am
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.

Title: Re: Matching Brace Plug-In
Post by: killerbot on December 17, 2005, 06:54:53 pm
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]