I've been using code::blocks for a few months, yet I've not seen an autotext feature. Where is this please?
I think this doesn't do what you wanted.
Creating a plugin is beyond me at the moment I think. I downloaded the plugin sdk, took a quick look, and left it at that.
Well, if you have done that then you already have 75%
Note that you must always use the same libraries that were used to build Code::Blocks for plugins. So if you use RC2, the SDK is fine, but if you build your own Code::Blocks, use the libraries from there!
If you do not absolutely want fancy gimmicks, then you can probably do a basic version of what you want in less than 2 hours.
Use the plugin wizard, leave the type set to "tool", fill in your desired filenames etc. and hit "OK".
Then set your compiler and linker paths so the compiler/linker can find the headers and libaries. Try to compile.
If that goes well, open the source file and edit the function
Execute().
Then you want to do:
cbStyledTextCtrl* control = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor()->GetControl();
wxString text = control->GetSelectedText();
if(text.IsEmpty())
return 0;
// do your string replacement magic here...
You will have to select that plugin from the plugins menu to run it, and it has no configuration or other fancy stuff, but hey, you have a start. You can always add better features later.