Dear community,
it's ready: My first plugin for Code::Blocks
called "Tabs versus Spaces". Find it attached.
--> What is does
I often get source code files that have mixed tabs and spaces and/or have trailing tabs/spaces on each line. This makes it somethimes hard to compare files since they seem to differ but in fact are basically the same. My plugin provides an easy-to-use interface to convert tabs into spaces and via verca and/or remove trailing tabs/spaces from source code files (in projects).
--> How to compile/install
If this plugin is placed under [CodeBlocks_CVS]\plugins\contrib\TabVsSpace in the source-code distribution of Code::Blocks it should compile fine (relative path's are set). Don't forget to setup "WX_DIR" under custom variables correctly. The update script ([CodeBlocks_CVS]\update*) will autmatically cover TabsVsSpace for distribution.
--> Help wanted
There are 2 known issues where I would like to ask for help:
1.) If a file is opened in the editor that is being changed it should be reloaded automatically. However - I did not found out how a) regognise whether a file is opened in the editor or not b) whether it has pending (unsaved) changes and c) how to force a reload if required.
2.) Unfortunately I have never used the wxWidgets framework before. The settings dialog for the plugin is a bit ugly but I couldn't find out how to place the controls in a way that they are on the same line (especially the statictext and the checkbox control next to it are quite ugly for now.
Comments and help are appreciated.
With regards,
Morten.
Ps.: Is there a common place where to store 3rd party plugins?
Update: An issue has been detected in the intial version. Please read future posting for an updated version.