Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Austin Hastings on October 12, 2010, 11:53:23 pm
-
Howdy,
I've been doing some work in PL/D (http://www.digitalmars.com/d/2.0/index.html) recently, and so I created a New File wizard that creates new D source files.
This plugs in to the new-file menu, that pops up when you press Ctrl+N in a file.
It has graphics and everything. (Woo-hoo!)
(http://github.com/aghast/d_source/raw/master/wizard.png)
Sadly, I couldn't find a way to do file templating in the context of the New file wizard - I know there's an xml based delivery mechanism for the new project wizard, but couldn't find anything that looked helpful in the docs for file wizards.
As a result, the d_source wizard has a hard-coded standard file template inside the script. I'd love it if someone could point me at a way to copy the contents of a template file in a script - that is, to copy and modify the contents of .../d_source/files/source_file_template.d into the script, so I can edit it and store it in the new editor window.
Anyway, the bundle is d_source at github (http://github.com/aghast/d_source) if you want it.
Cheers,
=Austin
-
What is "PL/D" ? The language is called D, or "the D Programming Language".
But a "New File" wizard entry for it could be added if really needed, I suppose.
-
Update:
I've made the wizard smarter about generating the header, and so now it tries to guess the module name
from the file path.
Also, I found a CB/wxString/Squirrel bug. :)
=Austin