2

我正在尝试在 Windows 上将 .ctp 文件添加到 gedit,因为我有一个使用 cake php 框架的项目。我喜欢添加 .ctp 文件以像 .php 文件一样进行解释。如何在 Windows 上实现这一点?

谢谢

4

1 回答 1

7

您必须编辑文件php.langC:\Program Files\gedit\share\gtksourceview-2.0\language-specs\ 更改行

<property name="globs">*.php;*.php3;*.php4;*.phtml;*.phtml</property>

<property name="globs">*.php;*.php3;*.php4;*.phtml;*.phtml;*.ctp</property>

并重新启动 gedit

于 2010-11-21T20:18:45.807 回答