Page 1 of 1
Copyright notice macro / for open source
Posted: Fri Feb 13, 2009 2:00 pm
by josh
What programs can automatically insert copyright docblocks? Or do we have to do by hand ( if releasing opensource code )
Re: Copyright notice macro / for open source
Posted: Fri Feb 13, 2009 2:14 pm
by Weirdan
Can't your editor do that?
Re: Copyright notice macro / for open source
Posted: Fri Feb 13, 2009 3:01 pm
by josh
Umm it has regular expressions... What editors do do this and whats the feature called?
Re: Copyright notice macro / for open source
Posted: Fri Feb 13, 2009 3:05 pm
by Benjamin
I think you do that by editing the default template added to php files whenever you create one. I'm not sure if there is an editor that can add these to an existing codebase.
Re: Copyright notice macro / for open source
Posted: Fri Feb 13, 2009 3:22 pm
by josh
Gotchya, I'm half way done now anyways, thanks for the responses
Re: Copyright notice macro / for open source
Posted: Fri Feb 13, 2009 5:04 pm
by alex.barylski
I believe editors would call them comment stubs or templates.

Re: Copyright notice macro / for open source
Posted: Fri Feb 13, 2009 5:07 pm
by arjan.top
look at phing, it should have support for adding text to files
Re: Copyright notice macro / for open source
Posted: Fri Feb 13, 2009 5:15 pm
by josh
True, I need to learn more about phing then. I'm messin with docbook and all that too