[Geany] Adding a new file type?

Lex Trotman elextr at xxxxx
Thu Jul 19 09:41:10 UTC 2012


On 19 July 2012 19:04, Laszlo Nagy <gandalf at shopzeus.com> wrote:
>
>   Hello,
>
> Next thing I would like to do is to add some syntax coloring.
>
> I have copied these:
>
> /usr/share/geany/filetype_extensions.conf to
> ~/.config/geany/filetype_extensions.conf
> /usr/share/geany/filetypes.c to ~/.config/geany/filedefs/filetypes.ssdl
>
> Then under [extensions] section of  ~/.config/geany/filetype_extensions.conf
> I have added this line:
>
> SSDL=*.ssdl;
>
>
> Then I have restarted Geany, but the new file type is not recognized, and it
> is not listed in the menu. (If I select the "C" source code file type
> manually then the file will have different colors.)
>
> What else do I need to do to recognize the new format?

Unless you are going to code it into Geany you need to make it a
custom filetype, see
http://www.geany.org/manual/current/index.html#custom-filetypes

Cheers
Lex

>
> Thanks,
>
>   Laszlo
>
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany



More information about the Users mailing list