Keeping my download/plugins directory synch’ed

Just a tip I'm posting here, more as a reminder for myself when I publish my next plugin, maybe it can be useful to a few :

My actual wordpress plugins directory (wp-content/plugins) contains plugins I'm working on, and plugins I've published. Here is my way of creating in my download directory (download/plugins) a synched unprocessed .php highlighted copy of a plugin, as well as a .txt version. For example, my download directory contains a live non-working replica of my ip2nation plugin :

  1. In my /download/plugins dir, I create a file with the same name as the plugin : wp_ozh_ip2nation.php
    1. <?php
    2. $file = "/home/physical/path/to/wp-content/plugins/wp_ozh_ip2nation.php";
    3. highlight_file($file);
    4. ?>
  2. Then the .txt version :
    1. ln -s /home/path/to/wp-content/plugins/wp_ozh_ip2nation.php wp_ozh_ip2nation.txt

This way, changes I make to the real plugin are automatically duplicated to the non-working version anyone can see and download. Another way would be of course to use some file to show source like for example at Huddled Masses, but I wanted something more minimalistic (beware of his source.php, it's not compatible with most PHP installation and needs a few rewrite)