In my project, I have a series of *.tpl files that I would like to interpret Eclipse as PHP code. I managed to get syntax highlighting to work correctly for these files by adding the *.tpl in Preferences -> General -> Editors -> Content Types . However, this does not seem to allow checking / checking for syntax error either.
Thus, I would like Eclipse show me errors in a line in the editor, and also indicate any errors / warnings in files in PHP Explorer - for files with the .tpl extension. Nothing is happening right now.
I also tried adding *.tpl to Preferences -> General -> Editors -> File Associations . I tried to press F5 in various relevant places and tried to restart Eclipse . The folder with *.tpl files is a subdirectory of the source folder. Other subdirectories of this source folder work correctly (although they have .php files). I do not know what else to do. Please, help!
Thanks!
source share