Syntaxhighlighting for .ctp files in Eclipse

Published on and tagged with cakephp  configuration  eclipse

CakePHP 1.2 uses a new file extension for view files: .ctp (which stands for Cake Template). By default, there is no syntaxhighlighting in Eclipse for files with such an extension. So we have to manually associate .ctp with PHP. In Eclipse 3.2 we can do that in the following preferences page (it should be similar in Eclipse 3.1.x):

Preferences Dialog of Eclipse

30 comments baked

Bake a comment

(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License