Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Windows 上将 .ctp 文件添加到 gedit,因为我有一个使用 cake php 框架的项目。我喜欢添加 .ctp 文件以像 .php 文件一样进行解释。如何在 Windows 上实现这一点?
谢谢
您必须编辑文件php.lang 以C:\Program Files\gedit\share\gtksourceview-2.0\language-specs\ 更改行
php.lang
C:\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