Display CTP Files as PHP Files in PHPStorm

Lloyd Banks picture Lloyd Banks · Feb 14, 2013 · Viewed 22.9k times · Source

I have a project running on CakePHP. All of my views are stored as ctp files. How do I render my ctp files so I have the same visual formatting that's present when I look at a file that is stored as a PHP file? In Notepad++, I was able to do this by selecting from the 'Language' toolbar option. Is there a similar feature in PHPStorm?

Answer

CrazyCoder picture CrazyCoder · Feb 14, 2013

File | Settings | File Types, assign this extension to the PHP Files.