Page 1 of 1

[IDE] Additional Templating Suggestions

Posted: Thu Oct 06, 2011 9:19 pm
by Zach
Hi,

I had a couple more wishes that I would like to see for the IDE. They are mostly cosmetic so I admit they are probably trivial, but I don't know of another way to implement the behavior except manually, which only compounds the "problem"/time spent on manual changes when the number of files in a project increases..

I am guessing that most of us, if not all, keep some kind of file information in a header at the top of their file. I personally use a very detailed Header format, which quickly allows me to see information about a specific file such as, Project Name, File Name, Author, Date Created (initial day 1 save), as well as the Copyright info / license / open or closed source state under which the file is resides, and what version of PureBasic it was coded/compiled under.

One thing I would like to have been able to do, is to include other data as well. Such as the date of the last save (Last Edited: XX/XX/XXXX @ XX:XXam/pm).
That is probably the biggest thing I would like to be able to do, as I currently don't know of any way to do it other than trying to write my own program to modify the files after I have saved them for the work-day...

However I think it would also be nice to have access to the actual data in some of the Compiler Constants as well, for those who might want to use that in the source for their own means.. I know we have the ability to create up to 4 custom constants, but that's not really the same as what I am asking; I am talking about using the constants in the source file to insert the actual Value they contain, not to "check" the value as part of a logic decision.

I don't know if this is possible or not with Scintilla, but I hope it is. I also hope it would be an easy change that could be considered, however I recognize it is rather miniscule compared to other feature requests and bug fixes.

I mainly miss this functionality because of my use of it, in Microsoft Office Applications like Visio & Publisher, and such. Being able to insert dynamic data that updates itself automatically can be a great time saver.

Why is this worth it?
I honestly can't answer for anyone but myself. I think it would make Templating file headers that contain project information a lot easier.. I mean who wants to go back and change a dozen or more files because they just noticed a typo in their template? Since my understanding of the code templates is they simply paste the data into the file, and don't actively update said files based on changes to the actual template..

Being able to update templates based on files that use them, would be a boon. It would almost be unnecessary with constants that updated themselves automatically, too. If you change your project name? No problem! Update the name in the template, and the Template updates all the files for you..

I'm sure others could probably come up with creative uses for a much more robust/powerful template system if we had it..