Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 3078  / 2 Years ago, mon, october 10, 2022, 10:04:49

I have recently installed Sublime text 2 and I must say it's one of the best text editors I've ever used or even seen in use.



So I managed to install everything and added to the unity menu and also change all the entries of gedit.desktop to sublime.desktop and it works just fine for most files, but I realised that some files still open in gedit, for example PHP files. I checked the default list for PHP, but there isn't anything in there.



How would I set the default for opening PHP files?






Also, Sublime doesn't show up in them properties menu where I can usually select the default program.



I'm using Ubuntu 12.10.


More From » php

 Answers
0

I think you didn't install the Sublime package via PPA. You might have downloaded the source.



Here is the steps to install the Sublime package via PPA



sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update

sudo apt-get remove sublime-text*
sudo apt-get install sublime-text


After installing this Right Click on any php file now you will be able to see "Open with Sublime Text 2" or choose "Open with Other Application" and select "Sublime" from the list.



Hope this helps.


[#34691] Tuesday, October 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nquirewha

Total Points: 256
Total Questions: 109
Total Answers: 122

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
;