Panic’s Coda Bookmarks In Code Navigator

It is mentioned on the Panic site, but it took me ages to find it.

You can add bookmarks or tags to a file that will appear on Coda’s code navigator. Most of the time it’s as simple as an !

CSS:
/* !bookmark */

HTML:
<!-- !bookmark -->

Javascript:
/* !bookmark */ or // !bookmark

PHP:
/* !bookmark */ or // !bookmark

You can of course replace the word bookmark with anything you like.

For a full list:
http://www.panic.com/coda/developer/quicktip/5.php

Solution to Firefox 3.0.8 Search Bar Bug – Enter Not Working

A long time ago, back when I used Firefox 1.5 the enter key stopped working in all forms. I had to use shift-enter to submit and get new lines. Back then I was a little less geeky and I just reinstalled and faced the loss of all my extension and bookmarks. Well it happened again recently, but this time with 3.0.8 and only for the Firefox search bar and I wasn’t so keen to throw in the towel this time.

Continue reading “Solution to Firefox 3.0.8 Search Bar Bug – Enter Not Working”

Virtual Hosts for PHP5 on OS X 10.5 Leopard

I just spent a good hour trying to work out why virtual hosts wasn’t working for me on my local machine. Turns out I needed to:

1) Enable virtual hosts by uncommenting the line

Include /private/etc/apache2/extra/httpd-vhosts.conf

in httpd.conf

2) Add the line

NameVirtualHost 127.0.0.1

to httpd.conf. I put it under the line

Listen 80

for now.

then…

Continue reading “Virtual Hosts for PHP5 on OS X 10.5 Leopard”