Author Topic: Syntax hightlighting for make files not named 'makefile'  (Read 7091 times)

MRawlings

  • Community Member
  • Posts: 26
  • Hero Points: 2
Syntax hightlighting for make files not named 'makefile'
« on: January 22, 2007, 12:52:56 PM »
Hi,
I can't find the answer to this to-date.

How do I enable syntax highlighting for makefiles that are not named 'makefile'?

We have several different names for makefile and use make -f<file-name> extensively.

Does anyone know the sequence of options windows I need to traverse?

Thanks,

Mark

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: Syntax hightlighting for make files not named 'makefile'
« Reply #1 on: January 22, 2007, 02:39:32 PM »
SlickEdit uses extensions to recognize a document of a particular type. Without an identifying extension, you have to set the document mode manually. From the main menu, select Document > Select Document Mode and then pick "Makefile" from the list.

Even though you name your makefiles with a variety of names, is it possible to end them all with ".mak"? If so, you can avoid the manual setting of Document Mode.

MRawlings

  • Community Member
  • Posts: 26
  • Hero Points: 2
Re: Syntax hightlighting for make files not named 'makefile'
« Reply #2 on: January 22, 2007, 06:36:11 PM »
Thanks I'll look at the document mode.

How does slickedit recognise Makefile and IMakefiles that don't have a file extension?

Mark

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: Syntax hightlighting for make files not named 'makefile'
« Reply #3 on: January 22, 2007, 07:00:30 PM »
I think there's a list of well known makefile names that we have in a variable somewhere. I'd have to check.