Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334634

Summary: Makefile editor fails to colorize when file is not named Makefile or *.mk
Product: [Tools] CDT Reporter: Jate Sujjavanich <jsujjavanich>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, iondiode, josh.davidson, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jate Sujjavanich CLA 2011-01-18 08:21:52 EST
Build Identifier: 20100917-0705

The Makefile editor will open certain files but not syntax colorize. I tested by copying a known good Makefile to various names. I then right-clicked, chose "Open With", "Other...", "Makefile Editor".

linux_Makefile, Makefile.test are not colorized
*.mk is colorized

If the file is recognized as a Makefile, the selection for Other...\Makefile Editor does not have to be made because it's already selected by default.


Reproducible: Always

Steps to Reproduce:
1. Rename a Makefile which takes syntax coloring to a name which does not match the pattern *.mk or Makefile.
2. Open the file using the Makefile editor.
Comment 1 Andrew Gvozdev CLA 2012-02-12 13:32:39 EST
*** Bug 371317 has been marked as a duplicate of this bug. ***
Comment 2 Andrew Gvozdev CLA 2012-02-12 13:36:39 EST
I think this request is probably valid but as a workaround try to specify content type of your file in Preferences->General->Content Types then select content type as Text->Makefile.
Comment 3 Josh Davidson CLA 2012-02-13 23:32:52 EST
Adding via General->Content types does work, but oddly adding via General->Editors->File Associations does not.