Differences

This shows you the differences between two versions of the page.

Link to this comparison view

config:puppet [2015/04/08 23:57] (current)
colombanw created
Line 1: Line 1:
 +====== Puppet configuration filetype ======
  
 +Experimental [[http://​www.geany.org/​manual/#​custom-filetypes|custom filetype]] for [[https://​docs.puppetlabs.com/​puppet/​latest/​reference/​lang_summary.html|Puppet configuration files]].
 +
 +<file properties ~/​.config/​geany/​filedefs/​filetypes.Puppet.conf>​
 +[styling=Perl]
 +
 +[keywords]
 +# https://​docs.puppetlabs.com/​puppet/​latest/​reference/​lang_reserved.html
 +primary=and case class default define else elsif false if in import inherits node or true undef unless
 +
 +[lexer_properties=Perl]
 +
 +[settings=Perl]
 +lexer_filetype=Perl
 +
 +extension=pp
 +
 +[indentation]
 +#width=4
 +# 0 is spaces, 1 is tabs, 2 is tab & spaces
 +#type=1
 +</​file>​
 +
 +And alter your //​filetype_extensions.conf//​ to add the new Puppet filetype. ​ Beware: as Puppet and Psacl share the ''​.pp''​ extension, you'll have to remove if from the Pascal line if you want it handled as Puppet.
 +<file properties ~/​.config/​geany/​filetype_extensions.conf>​
 +[Extensions]
 +...
 +# you need to remove *.pp from Pascal, so redefine it without *.pp
 +Pascal=*.pas;​*.inc;​*.dpr;​*.dpk;​
 +Puppet=*.pp;​
 +...
 +
 +[Groups]
 +...
 +Misc=...;​Puppet;​
 +...
 +</​file>​
 +
 +{{tag>​configure puppet filetype}}
Print/export