Page 1 of 1

Document type for files with no extension

Posted: Wed Jun 04, 2008 6:52 pm
by cficklin
Is it possible to configure Zeus to have a Document Type based on the name of a file and not the extension. I have a couple types of file that are extensionless. Most notably is 'Makefile' I can't seem to figure out how to have it defined with anything other than default.

Posted: Thu Jun 05, 2008 1:17 am
by jussij
Is it possible to configure Zeus to have a Document Type based on the name of a file and not the extension.

Unfortunately not. They will all end up in the default document type :(
I have a couple types of file that are extensionless. Most notably is 'Makefile' I can't seem to figure out how to have it defined with anything other than default.
And there in lies the problem. I don't think there as any easy way to have Zeus know the extensionless makefile from any other extensionless file.

But I am open to suggestions ;)

Cheers Jussi

Posted: Thu Jun 05, 2008 1:25 am
by cficklin
my suggestion would be to support a period '.' in the field. so I could specify 'Makefile.' to mean this is an extensionless file named Makefile. You could also support a period in front, but that would be superfluous to what is already there.

This could also lead to finer grained formatting for particular files. Say somebody wants main.c to be formatted differently than the rest of the C files. I couldn't imagine why, but it was a thought.

Really, just support a period at the end to mean an extensionless file and it'd help me.

Posted: Fri Jun 06, 2008 1:00 am
by jussij
I'll look to get some sort of file mapping feature added to Zeus in time for the next patch release ;)

Cheers Jussi