Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Дмитро on May 03, 2017, 01:56:38 pm

Title: How to develop a new plugin?
Post by: Дмитро on May 03, 2017, 01:56:38 pm
Kind all day and night!

I want a plugin that would edit and remove stray '\ 302' in programs and so on and so on.

I have no idea how to plug. I do not know how to use plugins. How is it better that such a plug-in?
Title: Re: How to develop a new plugin?
Post by: BlueHazzard on May 06, 2017, 10:06:25 am
a possible start to develop a plugin is to create a plugin project with the wizard. This will give you a start.
Then you should read the plugin development things in the wiki. There is written quite a lot that can help you.
Also a lot help is if you start reading the code of existing plugins. What i can read from your post you want to create a plugin that searches for text and replaces it. Then i would read the source code of the incrementalsearch plugin: https://sourceforge.net/p/codeblocks/code/HEAD/tree/trunk/src/plugins/contrib/IncrementalSearch/
this plugin is not so big, so you can read and understand the code about it.

If you simply want to replace/remove all '\ 302' characters, why don't you simply use search and replace for this?

[Edit:] This ticket will help you if you want to debug your plugin: https://sourceforge.net/p/codeblocks/tickets/481/
Title: Re: How to develop a new plugin?
Post by: Ronnachai on October 16, 2017, 12:45:39 pm
If it does not change the plugin to replace the old is a better solution offline.