title: How can I create a custom date in "snippets" in the Geany text editor?
body: <p>I often use the Geany text editor to write programming code. I recently knew that we can insert a code snippet in Geany automatically using some keybindings and I liked the idea of that.</p>
  
  <p>So, I went through some of the basics of the snippets in the Geany manual.</p>
  
  <p>And I tried to do this: A required snippet for an <a href="https://en.wikipedia.org/wiki/GNU_Octave" rel="nofollow noreferrer">Octave</a> script is:  </p>
  
  <pre><code>#!/usr/bin/octave -qf
  % Author   : Bhishan Poudel
  % Date     : 
  </code></pre>
  
  <p>I_like_this_to_be_inserted_automatically</p>
  
  <p>My attempt so far:</p>
  
  <p>We have to edit the configuration file called "snippets.conf" which can be accessed like this:</p>
  
  <p>Menu <em>Tools</em> &rarr; <em>Configuration Files</em> &rarr; <em>snippets.conf</em> </p>
  
  <p>Or <code>~/.config/geany/snippets.conf</code>.</p>
  
  <p>Then, I first checked the file type for Octave scripts:</p>
  
  <pre><code>geany --ft-names 
  </code></pre>
  
  <p>I see the filetype is <code>[Matlab/Octave]</code>. So, I added the following code there.  </p>
  
  <pre><code>[Matlab/Octave]
  pre=#!/usr/bin/octave -qf \n% Author    : Bhishan Poudel \n% Date      : {date}\n\n
  </code></pre>
  
  <p>Note: to find the shebang path for octave installation directory, type <code>which octave</code></p>
  
  <p>Then to implement the code I created a file called <code>a.m</code> and opened it in Geany. Then the command to try this snippet is *pre<kbd>Tab</kbd> (type <code>pre</code> followed by <kbd>Tab</kbd>) then the output is:  </p>
  
  <pre><code>#!/usr/bin/octave -qf
  % Author    : Bhishan Poudel
  % Date      : 2016-05-23
  </code></pre>
  
  <p>How can we change the date format to <em>May 23, 2016</em>?</p>
  
  <p>Some useful links are following:<br>
  <a href="http://www.geany.org/manual/0.18.1/index.html#user-definable-snippets" rel="nofollow noreferrer">http://www.geany.org/manual/0.18.1/index.html#user-definable-snippets</a>  </p>