rizidoro
rizidoro

Reputation: 13418

how to add file extension on gedit (windows version)

I´m trying to add a .ctp file to gedit on windows, because I have a project that use cake php framework. I like to add .ctp files to be interpreted like .php files. How to achieve this on windows ?

Thanks

Upvotes: 2

Views: 773

Answers (1)

ynh
ynh

Reputation: 2939

You must edit the file php.lang in C:\Program Files\gedit\share\gtksourceview-2.0\language-specs\ change the the line

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

to

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

and restart gedit

Upvotes: 7

Related Questions