Doc class for specific files

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Ian

Doc class for specific files

Post 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
Andreas

Re: Doc class for specific files

Post 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....
Ian

Re: Doc class for specific files

Post by Ian »

Great,

Thanks for the quick answer!

ian
Post Reply