<blockquote>
<p><a href="https://github.com/elextr" class="user-mention">@elextr</a> , I am sure a for-loop could be used to generate a template at compile-time. I have not tried templating in C. However, in Python3, developers can create a list (special Python array) containing the license names. Then, the for-loop would dynamically generate the needed code. Perhaps, something like this can be done in C/C++ so that Geany developers can just add the license file and an array-entry.</p>
</blockquote>

<p>As <a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a> has already said, the "best" way of doing this is for the menu to be constructed from the files in the system and user <code>data/templates</code> directories.</p>

<p>As I have said before, the file creation templates work this way, the menu is populated from the files in <code>data/templates/files</code> and the user <code>config/templates/files</code> directories so that means there is some existing code for you to re-use if you want to try this.</p>

<blockquote>
<p><a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a> , so my name will be added (via a script)? Will my name be in the "Credits"? Would you like me to manually update the "Credits"?</p>
</blockquote>

<p>See my comment elsewhere about this.  Unless <a href="https://github.com/b4n" class="user-mention">@b4n</a> contradicts me I don't think we actually have a published process for updating credits.  Maybe now is the time to automate it since the contributors list hasn't been updated since Matthew Brush was added in Jan 2011, and I find it hard to believe there have been no new contributors since then.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/752#issuecomment-156000547">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ5MIzl3A3iy5QhqPvQbjFBPZVIUJks5pFBblgaJpZM4Gf__f.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/752#issuecomment-156000547"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>