Skip to content

Filetypes are only recognised with simple extensions #1921

@Peppertop

Description

@Peppertop

I have a large number of files that are 99% JavaScript, but are processed by .Net code before they're served, so have a couple of lines of C# at the top. I've given them all filenames of the form *.js.aspx but when I try to use that in filetype_extensions.conf it has no effect and they're still considered to be XML files (per an earlier line in that file). The filetype_extensions.conf file contains this:

[Extensions]
XML=*.xml;*.sgml;*.xsl;*.xslt;*.xsd;*.xhtml;*.aspx;
Javascript=*.js;*.js.aspx;

It appears to me that Geany only recognises simple file extensions (i.e. just the bit after the last dot in the filename) rather than allowing for anything more complex. It would be great if this could be extended to support multi-part file extensions that include more than one dot.

Output from geany -V running on Ubuntu Mate 18.04.

geany 1.32 (built on 2018-01-08 with GTK 3.22.26, GLib 2.54.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions