Page 1 of 1

Doc class for specific files

Posted: Wed Oct 23, 2002 6:03 pm
by Ian
Hi,

I'd like to be able to add files called 'MakeFile' to a doc class which highlights make syntax. I can do this by adding '*.' to the class, but then *any* file gets make syntax highlighting. I'd like to leave *. associated with plain text files, and specify just Makefile as for the make class. Is this possible? Putting 'makefile' or 'makefile.' doesn't work.

Ian

Re: Doc class for specific files

Posted: Wed Oct 23, 2002 8:38 pm
by Andreas
Use
Makefile

and make sure that no other class below (in the list) matches (with *. or whatever).

The list is read from end to start and the first matching pattern decides where the doc goes.

I have set it up like that:
the class is called ZMakefiles and matches Makefile

The Z at the beginning of the class name brings the class to the end of the list....

Re: Doc class for specific files

Posted: Thu Oct 24, 2002 9:32 am
by Ian
Great,

Thanks for the quick answer!

ian