Page 1 of 1

Gnu Makefiles in TextPad...

Posted: Thu Dec 07, 2000 1:21 pm
by Ian Evans
I'm trying to create a document class so I can use syntax highlighting in Gnu Makefiles. I've downloaded gnumake.syn, and have created a new document class, but I can't figure out how to make the extensions recognize a Makefile.

The problem appears to be the Makefile having no extension. "Makefile" on its own does not highlight, nor does "*Makefile", "*Makefile*", etc.

Is there any way to associate files with no extension to a document class?

-ian

Re: Gnu Makefiles in TextPad...

Posted: Thu Dec 07, 2000 1:46 pm
by Andreas
The problem might be the order in which the classes are checked (bottom to top).
I just tried it, if I call the document class "Makefile" it gets "Text" highlighting, but if I call it "ZMakefile" I get Makefile highlighting.
(My Text class recognizes among others *.)

HTH,
Andreas

Re: Gnu Makefiles in TextPad...

Posted: Thu Dec 07, 2000 2:00 pm
by Ian Evans
Ok, that worked. Thanks.

Perhaps a good feature for the next version of TP would be the ability to re-order the document classes without having to rename them to appear alphabetically. Something like up/down arrows to change the order in which classes are checked.

Re: Gnu Makefiles in TextPad...

Posted: Fri Dec 08, 2000 6:09 am
by moderator
Or you could just delete the *. in "Files in class Text" (Configure, Preferences, Document Classes, Text).

Regards

Heidi-Marie

Re: Gnu Makefiles in TextPad...

Posted: Fri Dec 08, 2000 6:29 am
by Andreas
Btw, is there an easy way to change a document class name?
The only way I found is close all Textpads, change the name in registry and restart Textpad.

Andreas

Re: Gnu Makefiles in TextPad...

Posted: Fri Dec 08, 2000 6:42 am
by Andreas
Just found it myself - it works when no files are open.
In Configure/Preferences, select document classes in tree, then select a class in the list and click on it again, type new name.
Andreas