Allow me to rant before I get to the actual content of this post (if you prefer not to read it, skip right ahead to steps on solving the problem):
My foray into the world of Ubuntu since installing it in my Acer Aspire One did not come smoothly.
No, I’m not talking about its installation, which was a breeze. Nor was it about hardware compatibility; the Ubuntu Netbook Remix (UNR) distribution made sure that all my hardware worked immediately.
My actual challenge was to choose the right software that would fit my needs, and they were many! Holy cow, if I knew how many free software was out there for Linux, I would have switched sooner!
My main chagrin about a few of these software is its user-friendliness, not in terms of software usability, but in terms of documentation.
Take, for example, getting KompoZer to open PHP files. I did the usual configuration of having all files with the .php extension to open with KompoZer, but KompoZer defiantly denies it and kept prompting me to select a different program (you know, the equivalent of Open With… in Windows).
I found that the KompoZer extension called HandCoder would do the trick; all I needed to do was to download HandCoder from its site and add it via KompoZer’s addon manager.
The problem was… there was no fracking download link! Instead, there was only one link with the word “download”, which points to HTML Tidy, which I was not interested at all. I was hard-pressed to find the place to download it, only to find hours later (through a very short description somewhere within the page of some other KompoZer / Nvu extension description) that there is actually a link there, although not very obvious. Alright, I better stop ranting or else I won’t be able to finish this blog post.
- In the Files and Folders view, right-click on any PHP file.
- Select Open With / KompoZer. Or, if you don’t see KompoZer listed, go to Other Application and browse to /usr/bin/kompozer.
- Visit the HandCoder website, and click on one of the flags (based on your language preference) to download the XPI file (or just click here to start the download). Click on the flag to download — hah, who freaking knew?! Remember where you save it.
- Open KompoZer. In the menu, select Tools / Add-ons.
- In the the Add-ons window, click the Install button on the bottom.
- Navigate to the location in your computer where you saved it, select the HandCoder XPI file, and click the Open button.
- Once you see HandCoder listed under the Extensions section, close the KompoZer program and reopen KompoZer again.
You should now be able to open PHP files with Kompozer in Ubuntu.