title: Custom syntax highlighting in Geany
body: <p>I am trying to create custom syntax highlighting for Kivy '.kv' files in the Geany editor. Although the specific filetype seems irrelavant to the issue I'm having, as any efforts I make at getting syntax highlighting to work for a custom filetype results in a completely non-highlighted file. I believe I have done my homework on this, and nothing seems to work.</p>
  
  <p>I have added the following to ~/.config/geany/filetype_extensions.conf</p>
  
  <pre><code>Kivy=*.kv;
  </code></pre>
  
  <p>I also have a custom type definition file named 'filetypes.Kivy.conf' in ~/.config/geany/filedefs/. I have tried basing this file off several of the stock type definition files in /usr/share/geany/ and the file never gets any syntax highlighting applied in Geany. Right now, just for experimentation's sake, my 'filetypes.Kivy.conf' file looks like this:</p>
  
  <pre><code># For complete documentation of this file, please see Geany's main documentation
  [settings]
  # default extension used when saving files
  extension=kv
  
  # single comments, like # in this file
  comment_single=#
  
  [keywords]
  # all items must be in one line
  primary=size canvas
  secondary=pos size
  
  [indentation]
  width=4
  # 0 is spaces, 1 is tabs, 2 is tab &amp; spaces
  type=0
  </code></pre>
  
  <p>This is very loosly based on the stock XML definition file, but like I said I've tried many other stock files. In many cases I only changed the 'extension=' value to kv and still no highlighting was applied, <i>even though going to Document>Set Filetype in Geany and choosing virtually any random filetype (besides my custom entry) would yeild some sort of highlighting within my .kv file.</i> This is even the case when using the unmodified contents of a stock definition which otherwise works fine on my .kv file when specifically selected in Geany!</p>
  
  <p><i>Also, the Kivy filetype is listed and selected by default in Document>Set Filetype within Geany</i>, so I must be doing something right here!</p>
  
  <p>I realize this similar question has been asked, but the solutions seem irrelavent to my case, as I've tried every related topic on this and many other sites. <b>My Geany version is 1.22</b> and I'm running Arch Linux. This is driving me nuts - any suggestions?</p>
  
  <p>Thank you!</p>