On Wed, 14 May 2008 14:48:30 +0100, Colin Turner <[EMAIL PROTECTED]> wrote:

Hi,

> Geany does not detect a format for debian/rules files, which
> unfortunately means if you have configured to use spaces rather than
> tabs, and don't explicitly tell it you are dealing with a makefile,
> it mangles things by using spaces rather than tabs. It would be nice

this happens also when the file was recognized as a Makefile. But
can simply change the indent type per file with Document->Indent
Type->Tabs.
Maybe this get improved in the future to force Tab indentation for
Makefiles.

> if it could recognise a rules file by the shebang line.

I just added shebang detection for "make" in current SVN version. So,
Debian's rules files are detected as Makefiles.

But you can also achieve this by changing the filetype extensions.
Create a file ~/.geany/filetype_extensions.conf and add the following
two lines:


[Extensions]
Make=*.mak;*.mk;GNUmakefile;makefile;Makefile;makefile.*;Makefile.*;rules;



(note the last pattern "rules", details about this can be found in the
manual)

Then restart Geany and it should detect the rules file as a Makefile.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc

Attachment: pgpLujY54T9M7.pgp
Description: PGP signature

Reply via email to