[Geany-devel] removing filetype templates

Nick Treleaven nick.treleaven at xxxxx
Wed Nov 12 13:29:27 UTC 2008


On Tue, 11 Nov 2008 19:50:41 +0000
eht16 at users.sourceforge.net wrote:

> Revision: 3212
>           http://geany.svn.sourceforge.net/geany/?rev=3212&view=rev
> Author:   eht16
> Date:     2008-11-11 19:50:40 +0000 (Tue, 11 Nov 2008)
> 
> Log Message:
> -----------
> Add a file template for LaTeX (patch by Herbert Voss, thanks).

> TEMPLATES_CREATE_FILE(fname, templates_filetype_html); break; case
> GEANY_FILETYPES_RUBY:	TEMPLATES_CREATE_FILE(fname,
> templates_filetype_ruby); break; case GEANY_FILETYPES_PYTHON:
> TEMPLATES_CREATE_FILE(fname, templates_filetype_python); break;
> +			case GEANY_FILETYPES_LATEX:
> TEMPLATES_CREATE_FILE(fname, templates_filetype_latex); break;
> default: break; }
>  		TEMPLATES_READ_FILE(fname, &ft_templates[ft_id]);

BTW, I think we could remove filetype templates and just use custom
file templates instead - they might confuse users into thinking only
one template per filetype was supported.

When doing this, I think we shouldn't hard code the creation of
default template files, but install them as data files. The advantage
would be the user can delete them after installation if they want.

Not sure when I'll get time to do this, but just wanted to mention it.

Regards,
Nick



More information about the Devel mailing list