Your biggest problem is a technical one - not a programming one.
You could write the editor quite easily in either DBC or DBP and generate a DBA source code file. Where you'll come unstuck is the creation of an exe from that DBA file.
For the PC (Windows/DirectX), you would need a compiler. You already have it when you have Dark Basic, but for
your program to make use of it you would have to ship it with your game designer and this would be illegal without a special arrangement with TGC.
As for other platforms like Mac and Linux, you would need platform-specific compilers for those too and to the best of my knowledge they don't (and probably never will) exist - primarily because DirectX only exists in Windows.
So, the best answer to your question is that it can't be done with DB.
The best you could do is write a game creator that would create DB source code that other users could run in DB - but they would have to actually own DB for it to be any use to them.
[Edit] Doh! Just noticed this has already been covered in the other thread. The method and technicalities are the same for DBC and DBP so please don't spam...
TDK_Man