On Wed, 25 Feb 2009 10:39:27 -0600, Thomas Stover thomas@wsinnovations.com wrote:
This may already be implemented, and if so sorry. In the same manor that a file named 'Makefile' is auto detected for a specific syntax type, files named 'SConstruct' (scons files) should be auto detected to python syntax. This would be awesome, and save a few mouse clicks.
Not directly implemented as such but you can Geany easily to do this for you:
create a file ~/.config/geany/filetype_extensions.conf (or ~/.geany/filetype_extensions.conf if your on Geany 0.15 or older)
with the following content:
[Extensions] Python=*.py;*.pyw;SConstruct;
This adds SContruct as a valid filetype name pattern for Python files and after restarting Geany or using Tools->Reload Configuration Geany should recognise these files as Python.
Regards, Enrico