20Dec/0811
Add a file extension to gedit in Ubuntu
I needed .ctp files to open with PHP syntax highlighting in gedit. After searching around online for a while I found the answer on the ubuntu forums.
Add
<glob pattern="*.ctp"/>
to the
<mime -type type="application/x-php"></mime>
declaration in the /usr/share/mime/packages/freedesktop.org.xml file and then run:
update-mime-database /usr/share/mime
in the console. Restart gedit and now everything works great!