![]() |
Currently, the BeIDE add-ons are stored in files and projects that refer to them as "plugins." These names may change (to "add-ons") in a later release. |
Three add-ons accompany the BeIDE release.
The source code for these add-ons is available in the samples directory.
ShellPlugin lets you add shell scripts to your project.  Each script is executed at one of three stages in the build cycle:  just before the build starts, after a compile stage, or after the build is finished.  By deft employment of project targets and file extensions, you can register a different script to be run at each of the three stages.  For example, to add a script (target) that runs before a compile, you do this:
Extension: | sh1 (or an extension of your choosing) |
Tool Name: | sh |
Flags: | Precompile Stage |
To add script targets for the other stages, simply specify unique file extensions for each stage.  At the various stages of the build, the appropriate scripts will be executed.
![]() |
The Flags: field includes a Link Stage item.  This stage doesn't apply to shell scripts.  The three legitimate stage settings are Precompile Stage, Compile Stage and PostLink Stage. |
The MWBResPlugin runs the mwbres resource-generating tool on your text-based resource files (or restext files) during a project build.  The tool merges the new resources into your application.  To use the add-on, do this:
Extension: | r (or an extension of your choosing) |
Tool Name: | mwbres |
Flags: | PostLink Stage |
For more information on creating a restext file, see The mwbres Tool.
To use the Commenter add-on, select some text and then choose Add-ons > Commenter.  C++ style comment marks ("//") are added to the beginning of each line in the selection.  To remove the comments, hold down Shift when choosing the add-on.